|
|
|
|
|
by Shanedora
2819 days ago
|
|
I'm very new to this concept of bootloaders for embedded processors so bare with me. The answer that best aligns to your question is "trying to initialize the processor prior to running to application code". Some of the critical tasks I would like my bootloader to cover are...
1) Initialize critical parts of the processor (oscillators, clock branches, peripheral enables, etc..)
2) Initialize a few peripherals like UART to provide some useful "readable" output during this process Some additional "would be nice" features I would like to do are...
1) Load an application from a SD card
2) Parse over the application executable for validity purposes |
|
Your request #1 is on the mark: you want to cold-boot the chip and get the various necessary registers in place to accomplish #2, which is set up some of the peripherals to begin working.
So you have two choices:
1) Start reading the TRM and writing assembly code to do this, then read the TRM again and understand the boot sequence to figure out how and where to load the code.
or...
2) Read existing code to learn from someone else's work, because they did the exact same thing at some earlier point in time.