Subject:
|
RE: persistent var's in IC
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Wed, 9 Dec 1998 09:14:42 GMT
|
Original-From:
|
Joe Martin <joema@mpx.com#spamcake#.au>
|
Viewed:
|
1123 times
|
| |
| |
I had a similar problem using the freeware IC and I found that things like
the position in the code at which the persistent array was initialised made
a difference. Eg put the initialisation of the array right at the beginning
of your code, this helped in my case but it also causes the array values to
remain in memory at the same location even when the code is recompiled thus
preserving thier values over multiple downloads.
Joe Martin
-----Original Message-----
From: Gansler Mike (K1-Fh/ESC1) [mailto:Mike.Gansler@Bosch-Brakes.com]
Sent: Wednesday, 9 December 1998 5:42 AM
To: handyboard@media.mit.edu
Subject: persistent var's in IC
Has anyone had problames with the Handyboard, IC 3.2 and 'persistent'
variables?
the following declaration works fine :
persistent float i;
but using an array:
persistent float battery_voltage[ 320 ];
always causes an error while downloading :
IC> load charge.c
Reloading charge.c.
Initializing interrupts
Downloading 1552 bytes (addresses 8000-860F): 1552 loaded
Downloading 76 bytes (addresses 8610-865B): 76 loaded
Downloading 1627 bytes (addresses 865C-8CB6): 1627 loaded
Board synchronization error: sent 119, received 12
Unloading charge.c.
#done
Otherwise, I very rarely see any "Board synchronization" problems
with downloading, and the above is very repeatable, leading me to
believe IC doesn't like the persistent float array.
Thanks.
Michael T. Gansler
BOSCH -- K1-Fh/ESC1 -- VDC Systems
(248) 848-2489
(248) 553-1986 Fax
email: Mike.Gansler@bosch-brakes.com
--
MIME ATTACHMENTS DISCARDED:
1. Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Length: 4516
|
|
Message is in Reply To:
| | persistent var's in IC
|
| Has anyone had problames with the Handyboard, IC 3.2 and 'persistent' variables? the following declaration works fine : persistent float i; but using an array: persistent float battery_voltage[ 320 ]; always causes an error while downloading : IC> (...) (26 years ago, 8-Dec-98, to lugnet.robotics.handyboard)
|
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|