Hello,
is it quite normal, that a arm9 microcontroller starts in the supervisor mode? How could I changed the mode into user mode? Or is it better to work in the supervisor mode?
I've only the startup file and a short main.c file
#include <stdio.h> int main(void) { while(1); }
In the startup file I only can see that every mode will be initialized.
best regards tobi
Now I get another stupid error - I have one section for one c-file (only +RW, +ZI) and the +RO data of this section where placed by the compiler to the default address 0x0000000. I thought that it would be enough to create one region with *(+RO) where all RO data would be stored????
LOAD_FLASH 0x10000000 0xFFFFFF ; start address and length { EXTERN_FLASH 0x10000000 0xFFFFFF { RM9200.o (RESET, +First) *(+RO) } SRAM 0x20000000 0xFFFFFF { timer.o (+RW,+ZI) } BUFFER_SRAM 0x21000000 EMPTY 0x2000000 { } INTERN_RAM 0x200000 0xFFFFF { *(+RW,+ZI) } }
tobi
If I wrote
timer.o (+RO)
in the executing section EXTERN-FLASH
I get the warning, that the compiler will removed unused sections (timer.o (RO)).
But I want to have all RO data from the c-file timer.c within the external flash.