Tool/software: Code Composer Studio
Hello, my goal is to transfer a certain quantity of data (say 128kbyte) on the wireless link using a cycle represented in the simplified (I've omitted all the controls, but trust me, I've added all the controls i could):
So:
- send a command asking for data (fires event on the top)
- Send the data and callback to DataCallback. The call back starts the async data rx:
- When a receive is reached, handle the data (i.e. write on external flash memory) and send another request.
Data packets are small (19 chars on my protocol)
This works perfectly and smoothly for hours if I have 1 packet every 5 seconds. It seems to work with a rate up to 2 packets per seconds, but as I try quicker (i.e. 8 packets per seconds) the board hangs in weird and unpredictble manner, after a certian number of data exchanges (about 15 if I add a delay on the cycle of about 125 ms, about 28 if delaly is around 350 ms)
- sometimes no more breakpoint is hit on the code. If I pause is stuck in Void Hwi_excHandler(UInt *excStack, UInt lr) [hwi.c]
- sometimes EasyLink_transmitAsync returns EasyLink_Status_Tx_Error.
I'm using SDK 2.20.0.38, CCS 9, Easylink.
I've tried using an external delay (Task_sleep...) or adding time to easyLinkTxPacket.absTime, or using easyLinkTxPacket.absTime=0.
I've tried EasyLink_abort() in case of transmission error but it hangs.
Any suggestion?