Hello, yinghua:
The possible reason is described in “doc/faq.md”:
# Why does my customized SPE firmware fail to flash?
I successfully flashed the default firmware. But then flashing failed with when I tried to flash
SPI firmware that I modified to test my own code. I used the same flash command and the same
device.
@b Answer: Flashing customized SPE firmware can fail for several reasons:
- The custom SPE firmware has a problem, which causes the SPE firmware to crash and the device to
hang. When that happens, the PC cannot communicate with the
device and the flash command cannot proceed.
To resolve this issue, carefully check the code you modified and ensure its logic and
settings are correct.
- SPE firmware size exceeds limitation. To workaround this limitation, follow [Known Issues](rt-knownissues.html).
If the firmware size does not exceed the limit, most probable reason is that the firmware is not correct.
Please check the firmware code carefully.
Another suggestion is that you can postpone your private code running, after triggered by some commands from Linux side through IVC. That may help to debug.
Hi jachen,
You are right. My code has some error. I want to send some datas from spe to linux through ivc_echo_task_write_msg. After calling this function 32 times, the spe crash.