我用的芯片是STM32F429
STLINK进行调试
调试的时候不停的报这个警告。
Thu Sep 01, 2016 11:11:09: The stack pointer for stack 'CSTACK' (currently 0x1FFEE8A8) is outside the stack range (0x20000128 to 0x20002128)
Thu Sep 01, 2016 11:11:10: The stack pointer for stack 'CSTACK' (currently 0x1FFEE8A0) is outside the stack range (0x20000128 to 0x20002128)
Thu Sep 01, 2016 11:11:11: The stack pointer for stack 'CSTACK' (currently 0x1FFEE890) is outside the stack range (0x20000128 to 0x20002128)
Thu Sep 01, 2016 11:11:13: The stack pointer for stack 'CSTACK' (currently 0x1FFEE890) is outside the stack range (0x20000128 to 0x20002128)
Thu Sep 01, 2016 11:11:17: The stack pointer for stack 'CSTACK' (currently 0x1FFEE890) is outside the stack range (0x20000128 to 0x20002128)
Thu Sep 01, 2016 11:11:17: The stack pointer for stack 'CSTACK' (currently 0x1FFEE890) is outside the stack range (0x20000128 to 0x20002128)
Thu Sep 01, 2016 11:11:18: The stack pointer for stack 'CSTACK' (currently 0x1FFEE890) is outside the stack range (0x20000128 to 0x20002128)
Thu Sep 01, 2016 11:11:53: The stack pointer for stack 'CSTACK' (currently 0x1FFEE890) is outside the stack range (0x20000128 to 0x20002128)
Thu Sep 01, 2016 11:11:54: The stack pointer for stack 'CSTACK' (currently 0x1FFEE890) is outside the stack range (0x20000128 to 0x20002128)
Thu Sep 01, 2016 11:11:55: The stack pointer for stack 'CSTACK' (currently 0x1FFEE890) is outside the stack range (0x20000128 to 0x20002128)
Thu Sep 01, 2016 11:11:55: The stack pointer for stack 'CSTACK' (currently 0x1FFEE890) is outside the stack range (0x20000128 to 0x20002128)
Thu Sep 01, 2016 11:11:56: The stack pointer for stack 'CSTACK' (currently 0x1FFEE890) is outside the stack range (0x20000128 to 0x20002128)
我的程序首先运行的是这个函数。当运行到标红的那句时,调试箭头消失,无法继续进行调试。于是乎,我就退出了调试。当我再次点击调试时,系统提示:无法连接到设备了。
于是,我用STM32 ST-LINK Utility选择 select "Connect Under Reset" mode from Target->Settings menu 。进行连接,然后擦除芯片,才可以进行下一次调试。