This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AMIC110 程序跑飞问题

Other Parts Discussed in Thread: PROFIBUS

我在将C:\ti\pdk_am335x_1_0_16\packages\ti\drv\spi\test\mcspi_serial_flash中的源码集成到Profibus_slave 样例程序中想要测试SPI Flash的读写功能,但是很奇怪经常出现跑飞情况,通过单步定位甚至经常会在SPI_log ();打印未执行完就程序不知所踪了,去除该行可以顺利向下进行,确认已经关闭看门狗且代码优化等级为不优化,想请问下为何会有该情况出现,我是在 keyboard函数中添加的通过 字符输入 ‘U’去触发SPI Flash读写测试功能,区别与C:\ti\pdk_am335x_1_0_16\packages\ti\drv\spi\test\mcspi_serial_flash中的源码在于,没有将该功能作为一个task去执行,而是一个单独的功能函数,通过UART输入字符触发该功能。