Home > other >  Keil5 architecture (M3 in the startup code debugging
Keil5 architecture (M3 in the startup code debugging

Time:09-29

Need to used is to write a STM32F103 homework, application function part is already written
But at the entrance to the program needs to write their own a piece of code to replace the original in the startup code __mian () function, which is completed __scatterload () and __rt_entry () function: responsible for the RW/RO output section from loading domain address is copied to the run domain, and completed the initialization of ZI run domain; Is responsible for the initialization of the stack, complete library functions initialization,
So want to learn the original startup code in the debug __mian () how to write, however, after open the debug to __main () after loading address to register R0 1, click on the step through but there was no response, will not jump to __mian (), help you



In R0 register the address where I go out to find, also found no __scatterload () and __rt_entry () (see the disassembly of 0 x080000ec) the content of the



Because __mian () is the compiler automatically generated, so only in debug interface in the disassembly view __main ()
  • Related