Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

Discussion Groups | BasicX | Re: Where is code stored in EEPROM

Discussion forum for the BasicX family of microcontroller chips.

Where is code stored in EEPROM - lerougegorge - Sep 13 11:58:00 2004

Hello,
Quick question: is the BasicX binary execution code stored at the
beginning or the end of the EEPROM? Manual warns against overwriting
the program code, but doesn't say where it is stored. Thanks in advance.

Robin





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )


Re: Where is code stored in EEPROM - Don Kinzer - Sep 13 14:17:00 2004

--- In , "lerougegorge" <lerougegorge@y...>
wrote:
> Quick question: is the BasicX binary execution code stored at the
> beginning or the end of the EEPROM? Manual warns against
> overwriting the program code, but doesn't say where it is stored.

The contents .bxb file is sent to the BX chip during downloading.
The BX chip stores the byte values it receives in code memory
(external EEPROM) starting at address 0. Note that the .bxb file is
essentially a binary image of what will be in the external EEPROM
after downloading.

If you know what you're doing, you can append data to the .bxb file
and it will end up in the EEPROM. Of course, the next time that you
compile, your appended data will no longer be in the .bxb file.

There is some discussion of the .bxb contents and an example of
appending data to it at:
http://stage.itp.tsoa.nyu.edu/~jn429/playsound




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: Re: Where is code stored in EEPROM - Richard Friedrich - Sep 13 14:32:00 2004

I believe you can also specify the starting address of where it is loaded

richard
----- Original Message -----
From: "Don Kinzer" <>
To: <>
Sent: Monday, September 13, 2004 2:17 PM
Subject: [BasicX] Re: Where is code stored in EEPROM >
> --- In , "lerougegorge" <lerougegorge@y...>
> wrote:
> > Quick question: is the BasicX binary execution code stored at the
> > beginning or the end of the EEPROM? Manual warns against
> > overwriting the program code, but doesn't say where it is stored.
>
> The contents .bxb file is sent to the BX chip during downloading.
> The BX chip stores the byte values it receives in code memory
> (external EEPROM) starting at address 0. Note that the .bxb file is
> essentially a binary image of what will be in the external EEPROM
> after downloading.
>
> If you know what you're doing, you can append data to the .bxb file
> and it will end up in the EEPROM. Of course, the next time that you
> compile, your appended data will no longer be in the .bxb file.
>
> There is some discussion of the .bxb contents and an example of
> appending data to it at:
> http://stage.itp.tsoa.nyu.edu/~jn429/playsound >
> Yahoo! Groups Links






(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: Where is code stored in EEPROM - Don Kinzer - Sep 13 22:50:00 2004

--- In , "Richard Friedrich" <rfriedrich@e...>
wrote:
> I believe you can also specify the starting address of where it is
loaded

How does one do that?




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: Re: Where is code stored in EEPROM - Richard Friedrich - Sep 14 7:57:00 2004

here is a portion of an application where I wanted to load data into a
memory starting location (7000). I loads a series of 7 bytes (5x7 display
font) into a specific location in eeprom. This is table data that never
changes. The reason I loaded it into the middle of the memory is that I
didnt want to put it into the main program that I was developing and
download it everytime. Unless you tell it otherwise, the program data loads
into low memory starting at zero. I could download the various changes to
the main program many times and never over-write the data just because I
placed the data high enough in memory so that my program would never be big
enough to over-write the data. Not at all elegant in terms of memory
management but it works.

The puteeprom command is what you are looking for.

I haven't look at this stuff for several years - maybe there are changes in
the new compilers.

Richard

for z = 0 to 127
call puti(z)
call putstr(spa)
call putstr(spa)
for y = 1 to 7 ' flash eeprom
sss=7000+y+(clng(z)*7)
tp=cbyte(ch(cint(y),z+1))
call puteeprom(sss,tp,1)
'call putl(sss)
call putb(tp)
call putstr(spa)
'call newline()
'call delay(0.01)
next
call newline()
next ----- Original Message -----
From: "Don Kinzer" <>
To: <>
Sent: Monday, September 13, 2004 10:50 PM
Subject: [BasicX] Re: Where is code stored in EEPROM > --- In , "Richard Friedrich" <rfriedrich@e...>
> wrote:
> > I believe you can also specify the starting address of where it is
> loaded
>
> How does one do that? > Yahoo! Groups Links




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

RE: Re: Where is code stored in EEPROM - Stephen Whittle - Sep 14 8:47:00 2004

If you compile using the bxTokenizer, you can set the Floor (lowest address at which to start loading the program) to any address you like (by default its 0).

Steve ;-)

-----Original Message-----
From: Don Kinzer [mailto:]
Sent: 14 September 2004 04:51
To:
Subject: [BasicX] Re: Where is code stored in EEPROM --- In , "Richard Friedrich" <rfriedrich@e...>
wrote:
> I believe you can also specify the starting address of where it is
loaded

How does one do that?
Yahoo! Groups Sponsor

ADVERTISEMENT
<http://us.ard.yahoo.com/SIG=129iolp9h/M=295196.4901138.6071305.3001176/D=groups/S=1706554205:HM/EXP=1095220268/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com> click here
<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=:HM/A=2128215/rand=938085832 _____

> .
This email is intended only for the above named addressee(s). The information contained in this email may contain information which is confidential. The views expressed in this email are personal to the sender and do not in any way reflect the views of the company. If you have received this email and you are not a named addressee, please contact the sender and then delete it from your system. [Non-text portions of this message have been removed]




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

RE: Re: Where is code stored in EEPROM - Stephen Whittle - Sep 14 11:04:00 2004

Sorry, should have mentioned that you need VB to compile using bxTokenizer

-----Original Message-----
From: Stephen Whittle [mailto:]
Sent: 14 September 2004 14:47
To:
Subject: RE: [BasicX] Re: Where is code stored in EEPROM If you compile using the bxTokenizer, you can set the Floor (lowest address at which to start loading the program) to any address you like (by default its 0).

Steve ;-)

-----Original Message-----
From: Don Kinzer [mailto:]
Sent: 14 September 2004 04:51
To:
Subject: [BasicX] Re: Where is code stored in EEPROM --- In , "Richard Friedrich" <rfriedrich@e...>
wrote:
> I believe you can also specify the starting address of where it is
loaded

How does one do that?
Yahoo! Groups Sponsor

ADVERTISEMENT
< http://us.ard.yahoo.com/SIG=129iolp9h/M=295196.4901138.6071305.3001176/D=groups/S=1706554205:HM/EXP=1095220268/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com> click here
< http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=:HM/A=2128215/rand=938085832 _____

> .
This email is intended only for the above named addressee(s). The information contained in this email may contain information which is confidential. The views expressed in this email are personal to the sender and do not in any way reflect the views of the company. If you have received this email and you are not a named addressee, please contact the sender and then delete it from your system. [Non-text portions of this message have been removed]
Yahoo! Groups Sponsor

ADVERTISEMENT
<http://us.ard.yahoo.com/SIG=129i0u50n/M=295196.4901138.6071305.3001176/D=groups/S=1706554205:HM/EXP=1095256545/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com> click here
<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=:HM/A=2128215/rand=358246285 _____

> .
This email is intended only for the above named addressee(s). The information contained in this email may contain information which is confidential. The views expressed in this email are personal to the sender and do not in any way reflect the views of the company. If you have received this email and you are not a named addressee, please contact the sender and then delete it from your system. [Non-text portions of this message have been removed]




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )