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.
ExecFuncPtr exception_table[] = {#pragma import(__use_two_region_memory) (ExecFuncPtr)&Image$$ARM_LIB_STACK$$ZI$$Limit, (ExecFuncPtr)&__main, /* Initial PC, set to entry point */ NMIException, HardFaultException, MemManageException, BusFaultException, UsageFaultException, 0, 0, 0, 0, /* Reserved */ SVCHandler, DebugMonitor, 0, /* Reserved */ PendSVC, SysTickHandler, /* Configurable interrupts start here...*/ InterruptHandler, InterruptHandler, InterruptHandler, /* Some dummy default interrupt handlers */
HiI am working with Cortex M3 derivative. I got problems with the Stack initialization.
Yes the value is 0x08100000 at beginning.This is done automatically, I used the example vector table:ExecFuncPtr exception_table[] = {#pragma import(__use_two_region_memory) (ExecFuncPtr)&Image$$ARM_LIB_STACK$$ZI$$Limit, (ExecFuncPtr)&__main, /* Initial PC, set to entry point */ NMIException, HardFaultException, MemManageException, BusFaultException, UsageFaultException, 0, 0, 0, 0, /* Reserved */ SVCHandler, DebugMonitor, 0, /* Reserved */ PendSVC, SysTickHandler, /* Configurable interrupts start here...*/ InterruptHandler, InterruptHandler, InterruptHandler, /* Some dummy default interrupt handlers */
The RAM is implemented physically from 0x0800.0000 to 0x0800.ffff
ok, now I see... thank you for the hint ;-)