I have a very small test program for a EZ-USB FX that switches a LED on. If I compile the code using "sdcc --code-loc 0x0000 firmware.c", everything works fine. I would like to run the code segment from external memory, eg. "sdcc --code-loc 0x4000 firmware.c", but this doesn't work. It only works when the code starts at 0x000.
If I look at the .map and .mem files, everything looks like I expected it to be (the code segment starts at 0x4000 instead of 0x0000). Is there something else that I need to look at?