cancel
Showing results for 
Search instead for 
Did you mean: 

When using an stlink V2-1 in external mode, can MBED drag-and-drop programming be used?

Alistair Buxton
Associate II

Several Nucleo boards come with an embedded stlink V2-1 which supports MBED programming by copying the firmware binary to a USB mass storage device. If the programmer is snapped off the board and put in to external mode, does this method of programming still work?

What about if the programmer is connected to a target with a larger flash memory than the board it was supplied with? In this case the USB storage device seems to remain the same size as the original target's flash and as such is not big enough to contain the larger firmware.

2 REPLIES 2
Uwe Bonnes
Principal II

Did you unplug the STLink after changing the SWD connected Target?

With STM32L073RZ I see :[sdc] 448 512-byte logical blocks: (229 kB/224 KiB)

With STM32L412KB:  [sdc] 72 512-byte logical blocks: (36.9 kB/36.0 KiB)

So the announced size should change.

Alistair Buxton
Associate II

I did, however I have not snapped off the programmer yet, since obviously I can't put it back on if I do. I just removed the jumpers and connected the SWD header to a different target. I will try it again.