| ??? 06/12/02 21:10 Read: times |
#24379 - RE: Startup code SDCC versus Keil |
!EA is VCC, according to (page 6) of the data sheet, to enable the internal memory (which would be rom I guess).
According to my datasheet (page 21), the EXTRAM bit in AUXR is set by default, so I've added the following to my code: unsigned char _sdcc_external_startup () { AUXR = AUXR&0xfd; // disable external memory return 0; } -Very elegant option by the way, to do things before main() is started - Anyway, I really guess it has something to do with RAM. using just a couple (about 4) local variables in my main, and about 10 for my i2c isr, I do manage to run code, and get things output to my lcd display (using i2c). However, when I enter a: char buf[32]; in the main, it gets screwed up. I've tried a lot of options, memory models, xram-movc, no-reg-params, but I keep getting negative results. The ugly part is, all this code DID work with a 80c552, using external ram! However, using the 89c668, I haven't got things working ok, but a friend, who uses Keil, DOES get it working, just by setting a couple of checkboxes to enable internal ram etc. :( Eric |
| Topic | Author | Date |
| Startup code SDCC versus Keil | 01/01/70 00:00 | |
| RE: Startup code SDCC versus Keil | 01/01/70 00:00 | |
| RE: Startup code SDCC versus Keil | 01/01/70 00:00 | |
| RE: Startup code SDCC versus Keil | 01/01/70 00:00 | |
| RE: Startup code SDCC versus Keil | 01/01/70 00:00 | |
| RE: Startup code SDCC versus Keil | 01/01/70 00:00 | |
| RE: Startup code SDCC versus Keil | 01/01/70 00:00 | |
RE: Startup code SDCC versus Keil | 01/01/70 00:00 |



