现在用CodeSourcery+jlink+openocd开发stm32
平台:stm32f103zet6
flash:内置512K(大容量)
sram:内置64K+外部512K
启动文件:startup_stm32f10x_hd.c
链接脚本:stm32f10x_flash_extsram.ld
程序一执行80行的除法运算就进入硬中断,这是怎么回事呢?
相关部分如下:
UINT32 m;
Breakpoint 2, Task_Start (p_arg=0x0) at main.c:80
80 m = 72000000 / 16; //把72000000改小变成例如32就OK, 这是什么情况?
(gdb) n
^C
Program received signal SIGINT, Interrupt.
HardFault_Handler () at stm32f10x_it.c:64
64 {} |