2020-10-20 01:38 AM
Hello
i'm using stm32f103rct.
Use cubemx and just set RCC,and SYS(JTAG, Timebase Systick)
compile with IAR and then download and debug press break.
Hard fault exception
help plz
Solved! Go to Solution.
2020-10-27 08:57 AM
Make sure you're configuring the BOOT0 and BOOT1 appropriately to start your code from FLASH
Make sure HSE_VALUE reflects the actual external clock rate
Make sure to select the correct PLL settings, and have the Error_Handler() routine output actionable data if it ends up there. Ditto HardFault_Handler().
2020-10-26 01:47 PM
Hi @sjaey.1
This will be internally checked.
Best Regards,
Nesrine
2020-10-26 02:50 PM
A really unhelpful presentation of the problem.
Your own board?
2020-10-26 09:52 PM
yes. we have two kind of board. they are very similar hw circuit.
use same mcu and the one use 8Mhz external clock and the other use 12Mhz external clock.
If you set the same using cubemx and only different HSE, 12Mhz works and 8Mhz does not.
2020-10-27 02:51 AM
Hi @sjaey.1
Tested the same scenario by using a Nucleo-F103RB, i had no issue.
Best regards,
Nesrine
2020-10-27 02:52 AM
Could you please share you .ioc file to check with.
Please specify you STM32CubeMX version.
2020-10-27 03:08 AM
2020-10-27 05:30 AM
No issue detected when using STM32CubeMX v 6.0.1.
2020-10-27 08:57 AM
Make sure you're configuring the BOOT0 and BOOT1 appropriately to start your code from FLASH
Make sure HSE_VALUE reflects the actual external clock rate
Make sure to select the correct PLL settings, and have the Error_Handler() routine output actionable data if it ends up there. Ditto HardFault_Handler().
2020-10-27 06:43 PM
I have incorrectly connected the BOOT0 PIN.
Thanks a lot.