mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 08:10:50 +01:00
[usb] Add comment to debug in reallocated code.
Change-Id: I0b4a3e447a3a7fab1ef4778b5c3c9d4743712c46
This commit is contained in:
@@ -52,6 +52,16 @@ void DFU() {
|
||||
* first function we want to call is at the beginning of the DFU code. */
|
||||
|
||||
FunctionPointer dfu_bootloader_entry = reinterpret_cast<FunctionPointer>(dfu_bootloader_ram_start);
|
||||
|
||||
/* To have the right debug symbols for the reallocated code, break here and:
|
||||
* - Get the address of the new .text section
|
||||
* In a terminal: arm-none-eabi-readelf -a ion/src/device/usb/dfu.elf
|
||||
* - Delete the current symbol table
|
||||
* symbol-file
|
||||
* - Add the new symbol table, with the address of the new .text section
|
||||
* add-symbol-file ion/src/device/usb/dfu.elf 0x20038000
|
||||
*/
|
||||
|
||||
dfu_bootloader_entry();
|
||||
|
||||
/* 5- That's all. The DFU bootloader on the stack is now dead code that will
|
||||
|
||||
Reference in New Issue
Block a user