Incorrect idcode on new batch of STM32F030F4P6TR
EDIT: It turns out I was connected to the wrong SWD port. There are 2 stm32’s in my design
--Ok so after quite a few hours of research, this seems to have solved my problem:
Edit the .cfg file in the project folder and add the following line:
-------------------------------
#mp035: for the odd STM32F0 batch from Element 14
set CPUTAPID 0x2ba01477
-------------------------------
But this has to be removed to program devices with the normal idcode.--