Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/12/02 08:30
Read: times


 
#24309 - Startup code SDCC versus Keil
Hi, I noticed a lot of you have experience with the Keil compiler, with which I can get code for the 89c668 working very good.
Reasonable large source, including i2c to different devices, serial communication with a Motorola M18 etc.

However, I needed to modify the startup.a51 to disable external memory (the 668 has 64K flash, and 8Kb ram) to get things working, no problems here.

When using sdcc, I've created the _sdcc_external_startup() function, where the EXTRAM bit is cleared, no problems here either.

Anyway, it looks like the sdcc compiler produces code which crashes. This would probably be a problem with the stack, but my knowledge about this processor is too limited to fix this.

Does anyone have pointers how I should setup the xram-loc, iram-size, stack-loc, code-loc etc with this processor?
I've read the 8051 memory faq at turbobit.com, and the sdcc manual, but it doesn't help me much.

When compiling the code in model-large, with stack-after-data, it produces code where the isr's are working, but after a few seconds, the main loop crashes :(

Anyone with suggestions, how I should setup these memory locations, or how to debug it?

List of 8 messages in thread
TopicAuthorDate
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      

Back to Subject List