For a couple of days now, I've been trying to get a program to run on the STM32F042F6. I used the Systick STDPERIPH example as a starting point. The systick is created and works properly, but as soon as I add GPIO's, I get a Hardfault error. I'm trying to add PB1 to flash a LED.
At first I was working on my board with the STLINK, but then changed to the simulator. Both give the same results.
If I step the program, I can see the all the GPIOB registers contain 0xcdcdcdcd. If I try to change one of these registers in the Registers pane, I get the error "Simulator memory write word 0x48000400 failed"
I've been using Ver3.3, I've downloaded a demo version of Ver 3.5, I get the same results. I've even reinstalled the ST SPL Ver1.5.0.
I've searched all over for the problem, but no solution was found.
Please sign in to leave a comment.