??? 08/24/04 06:19 Read: times |
#76313 - RE: Warning: Suncoast 70691HEX Board(8051) Responding to: ???'s previous message |
hi,
Fault: the bootloader removes code spacing when loading the EEPROM, meaning that all data tables and C functions and ASM subroutines (as well as .ORG directives in A51) not immediately following the main routine are rendered useless. Generally, you should not use absolute addressing for constant data placement. Anyway, if you need with it really (what I doubt at), then I see the easy way to fix the problem you indicated, with Keil ASM. The idea is simple: use macro which fills unused area with some value, for example: ; ; end of program code ; ; here is the macro: REPT 0x1000-$ DB 0x00 ENDM ; here is constant data at absolute address: ORG 0x1000 STRING: DB 'hello',0x00 ENDWith such way the gap will be removed from output file and the problem gone out. I do not know the name of such macro in assembler you use - look in its manual. Regards, Oleg |
Topic | Author | Date |
Warning: Suncoast 70691HEX Board(8051) | 01/01/70 00:00 | |
RE: Warning: Suncoast 70691HEX Board(8051) | 01/01/70 00:00 | |
RE: Warning: Suncoast 70691HEX Board(805 | 01/01/70 00:00 | |
RE: Warning: Suncoast 70691HEX Board(8051) | 01/01/70 00:00 | |
RE: Warning: Suncoast 70691HEX Board(8051) | 01/01/70 00:00 | |
RE: Warning: Suncoast 70691HEX Board(8051) | 01/01/70 00:00 | |
RE: Warning: Suncoast 70691HEX Board(8051) | 01/01/70 00:00 | |
On the Ideas Posted Above... | 01/01/70 00:00 | |
bad design is best teacher | 01/01/70 00:00 | |
RE: bad design is best teacher | 01/01/70 00:00 | |
RE: Warning: Suncoast 70691HEX Board(8051) | 01/01/70 00:00 | |
Bootloader PROM, etc... | 01/01/70 00:00 | |
resequencing a hex file![]() | 01/01/70 00:00 |