Hi,
I want to run the ISP mode on UART from program using FreeRTOS.
It's working before running FreeRTOS tasks, but when i call this in a FreeRTOS Task, the program stop but the ISP doesn't respond.
The call :
uint32_t st=0;
IAP_ReinvokeISP((uint8_t)6, &st);
I'll try with "__disable_irq();" before the call, same result.
Context : MCUXPRESO V11.8, FreeRTOS V10.5.1, IAP SDK 2.0.7
If someone have a suggestion, i take it
Thanks, Philippe.
Solved! Go to Solution.
Hello @gph
I made a simple demo for you, it is based on LPC54628, the same with your chip, you can refer to it.
Also, you can send your project to me, I help to check the issue.
BR
Alice
Hello,
This is the latest SDK version. (The version give is not the SDK but only the IAP drivers given by the manager).
As i sayed : SDK function is working out of FreeRTOS task, but not in FreeRTOS task.
In my case the decision to swap to ISP mode can be made only in FreeRTOS task.
Is there a way to do ReinvokeISP in FreeRTOS task ?
Thanks, Philippe.
Hello @gph
I made a simple demo for you, it is based on LPC54628, the same with your chip, you can refer to it.
Also, you can send your project to me, I help to check the issue.
BR
Alice
Thanks.
I use a workaround.
I put a TAG in Eeprom and reset when i am in FreeRTOS. In startup i'll check the TAG and switch to ISP mode if needed.