2019-07-15 06:22 AM
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.
2019-07-15 07:25 AM
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.
2019-07-15 02:14 PM
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.