IAP_ReinvokeISP on LPC54606 with FreeRTOS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IAP_ReinvokeISP on LPC54606 with FreeRTOS

Jump to solution
441 Views
gph
Contributor III

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.

 

 

0 Kudos
1 Solution
370 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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

View solution in original post

0 Kudos
4 Replies
418 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @gph 

Please use latest SDK version, also based on a simple FreeRTOS demo to check.

 

BR

Alice

0 Kudos
410 Views
gph
Contributor III

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.

 

0 Kudos
371 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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

0 Kudos
347 Views
gph
Contributor III

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.

 

0 Kudos