IAP_ReinvokeISP on LPC54606 with FreeRTOS

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

IAP_ReinvokeISP on LPC54606 with FreeRTOS

跳至解决方案
1,343 次查看
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 项奖励
回复
1 解答
1,272 次查看
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 项奖励
回复
4 回复数
1,320 次查看
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 项奖励
回复
1,312 次查看
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 项奖励
回复
1,273 次查看
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 项奖励
回复
1,249 次查看
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 项奖励
回复