Flashing STM32F030F4P6 from 32F0308DISCOVERY board
I have a small project that coded and prototyped on a 32F0308DISCOVERY board (STM32F030R8T6). It works perfectly on the Discovery board.
I now want to switch over to using a STM32F030F4P6 programmed by the ST-Link that's on the Discovery board (CN2 jumpers removed). I made a new project in CubeMX with the new target (I am using Keil MDK5) and tried to flash the STM32F030F4P6, but had no success.
So, I went to what I think is the bare minimum and simply tried to do a full erase of the chip using ST-Link Utility and STM32CubeProgrammer and I could not get that to work either.
Here is what I have connected on the STM32F030F4P6:
Pin1 (BOOT0) connected to Discovery Ground
Pin4 (NRST) connected to Discovery CN3 Pin5
Pin5 (VDDA) connected to Pin16 (VDD) connected to Discovery 3volts
Pin15 (VSS) connected to Discovery Ground
Pin19 (SWDIO) connected to Discovery CN3 Pin4
Pin20 (SWCLK) connected to Discovery CN3 Pin2
I also have Discovery CN3 Pin1 connected to 3volts.
Both the ST-Link Utility and STM32CubeProgrammer can connect and identify the chip, but they won't program or do a full erase.
I can erase individual sectors, but it gives the option to go all the way to sector 31, shouldn't it only go to 15 since this is a 16K chip?
I can read the option bits (initially set to level 0 protection), but when I tried to write it fails, I didn't change any settings to what it initially read. Then the next time I connect the protection is set to level 1 (even though I never changed it to level 1). And now I can't change it back to level 0 since I never could write the option bits to begin with. This happened on two chips and I am not trying it again on a third.
I tried slowing down the speed of the SWD and it made no difference.
I am probably overlooking something simple and I hope you can tell me what that is.
Thanks.
