[usb] Add comment to debug in reallocated code.

Change-Id: I0b4a3e447a3a7fab1ef4778b5c3c9d4743712c46
This commit is contained in:
Léa Saviot
2018-03-22 16:08:12 +01:00
parent ac4f018267
commit 502ab1f524

View File

@@ -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