cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging STM32F042 in Keil

chernobay
Associate II
Posted on April 11, 2016 at 23:05

I have a problem with loading into debugger in Keil for STM32F042

(Run to main() is off)

- normal start for example from STM32F0xx_StdPeriph_Lib_V1.5.0\Projects\STM32F0xx_StdPeriph_Examples

for STM32F030

http://i.piccy.info/i9/09aee8af9c0c9198abe58d073d09447a/1460406714/61602/1024043/030.png

anf this for STM32F042

http://i.piccy.info/i9/c1d5347c947628a4685b462e2021c855/1460406728/63733/1024043/042.png

How do I start from  0x080000C8 for the STM32F042?

4 REPLIES 4
Posted on April 12, 2016 at 03:48

Make sure that the BOOT pin is low if you want it to start in FLASH

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
chernobay
Associate II
Posted on April 12, 2016 at 10:37

Thank you, clive1.

If PA8(BOOT0) is pull down - all is OK.

chernobay
Associate II
Posted on April 14, 2016 at 12:23

With configure of system memory with ST-LINK Utility all is OK 

http://arm-stm.blogspot.com/2016/04/stm32f0-stm32f042-boot-problem-user.html

chernobay
Associate II
Posted on December 10, 2016 at 07:27

You can set  User Option bit - nBoot0 

https://arm-stm.blogspot.com/2016/04/stm32f0-stm32f042-boot-problem-user.html