We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
How do I tell the Keil C compiler/linker to place certain C-procedures in specific parts of memory?
Example:
The procedure below must be placed at an address above 0x4000.
void ADC_start(){ /*......lots of code.....*/ }
I am using a Cypress CY7C68013A that can only load 16KB from flash to in-chip memory at startup. The rest of the program must be loaded to external memory after startup, so I need to make sure that procedures not used in the startup-parts are placed above 0x4000.
Thank you.
Kind regards,
Carsten Olsen
Try the search function on this site.
The question has been asked - and answered - many times before.