STM32F103
解決"Cannot insert breakpoint 1. Cannot access memory at address xxx"問題
原本
SECTIONS { . = 0x0; .text : { *(.text) } .data : { *(.data) *(.rom) } . = 0x20000000; .ram : { *(.ram) } .bss : { *(.bss) *(.ram) } }
修改後
MEMORY { RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 128K } SECTIONS { .text : { *(.text) } >FLASH .bss : { *(.bss) } >RAM .data : { *(.data) } >RAM }