As you may have read, I got my sdram running fine. Meanwhile I testet some other peripherals.
Today I tried to put the HEAP in the SDRAM.
Now I need your help! Here is what I've tried so far:
Played around with the "Placing data and the heap in external SDRAM" App-Note...
Then I copied the linker file and crt0.S file from the framework to my project. I told the linker "-nostartfiles" and "-TmyLinkerfile". This works... Behaviour is the same as before.
After that I created the void _init_startup(void) function and added "call _init_startup" to crt0.S at the position, where it is in the AppNote-version.
The problem here is: it seems as the _init_startup function is not executed. When I call _init_startup(); at the beginning von main() it runs fine.
Before this is not solved, I can't go ahead.
Any ideas? Maybe it's because I'm working with a C++ project.
Thanks a lot! Greetings
P.S. I have the UC3A0512, AVRStudio2.1, Framework 1.4