texane/stlink — Issue #38: [fix/patch] STM32F1VL - cannot load code to sram
Author: fredowski
Created: 2011-12-22 16:58:23+00:00
State: open

Hi,

i tried to use the gdbserver with a STM32F1 Value Line board with stlink v1 on macos. I could not download code to sram but could connect to the device and read registers for example. When I issued the load command in gdb, gdb responded with load failed.

I figured out that the reason is a missing memory map setting which resultes in zero length memory sizes.

Please find attached a patch to fix the problem. Affected is only gdbserver.c.

Regards

Friedrich