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.

sys/bios task 任务中不能烧写固定数据到nor flash,而在main()函数可以烧写



我用的开发板是C6678evm,用的软件是CCS5.3,在main()函数中可以用TI提供的flash_nor (p_device)函数把数据写到nor flash中,

而在启动sys/bios后在任务中用同样的flash_nor (p_device)函数就不能把数据写到nor Flash,只要执行到flash_nor ()函数中的

platform_device_write(p_device->handle,block*norWriterInfo.blockSizeBytes,scrach_block,wLen)这个函数就通不过,没有报错

,就是这个函数不返回了,一直在运行,不知道为什么,求大虾指点!!

main()函数中的代码可以成功写nor flash,代码如下:

sys/bios 任务task中写nor flash不能成功,代码如下:

  • 针对这个:platform_device_write(p_device->handle,block*norWriterInfo.blockSizeBytes,scrach_block,wLen)这个函数就通不过,没有报错

    我建议你把platform_device_write源码加入工程中,单步调试一下,看看情况,如果是调用的封装库的话,单步调试进不去,没法看。