This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

supervisor mode

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

Parents
  • 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

Reply
  • 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

Children