STM32F407xE failure
Posted: Thu Mar 21, 2013 2:17 pm
Hello folks,
I just soldered my very first STM32 myself. It's an STM32F407ZET6 in an LQFT 144 package. I can successfully connect to it using OpenOCD over JTAG. I am also able to reset the MCU and load the image into it. Now I wanted to make sure that it works by simply toggling an LED. However, as soon as I run it, it gets stuck here:
When I comment halInit(); the execution procedes and I can actually stop on breakpoints etc. I'm not exactly sure what causes this issue? I simply took the linker script file for the STM32F407xG and simply decreased the flash size from 1M to 512k. What else am I missing? This seems to be a HAL problems but the HAL of both the MCUs are the same?
~ Tectu
I just soldered my very first STM32 myself. It's an STM32F407ZET6 in an LQFT 144 package. I can successfully connect to it using OpenOCD over JTAG. I am also able to reset the MCU and load the image into it. Now I wanted to make sure that it works by simply toggling an LED. However, as soon as I run it, it gets stuck here:
Code: Select all
port_halt () at /home/tectu/projects/resources/chibios/os/ports/GCC/ARMCMx/chcore.c:43
43 }
(gdb) l
38 #endif
39 void port_halt(void) {
40
41 port_disable();
42 while (TRUE) {
43 }
44 }
45
46 /** @} */
(gdb)
When I comment halInit(); the execution procedes and I can actually stop on breakpoints etc. I'm not exactly sure what causes this issue? I simply took the linker script file for the STM32F407xG and simply decreased the flash size from 1M to 512k. What else am I missing? This seems to be a HAL problems but the HAL of both the MCUs are the same?
~ Tectu