LPCscrypt V2.1.1 "Program" command issue

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

LPCscrypt V2.1.1 "Program" command issue

429 次查看
chethan_k
Contributor II

Dear Team,

We developed a application specific custom board using LPC4367 MCU and using LPCscrypt V2.1.1 to update the firmware. Boot select mode is USB0.

ISP mode is entered when P2.7 is low and press reset button. we can update the firmware using LPCscrypt.

When we try to enter ISP mode by calling  Chip_IAP_ReinvokeISP(); function, except "program" command all command will work.

Please find the below calling function for your reference.

static void BootISPMode(void)
{
uint8_t ret_code;
uint32_t part_id;

part_id = Chip_IAP_ReadPID();
DEBUGOUT("Part ID is: %x\r\n", part_id);


/* Disable interrupt mode so it doesn't fire during FLASH updates */
__disable_irq();

/* Initialize the IAP */
ret_code = Chip_IAP_Init();

/* Error checking */
if (ret_code != IAP_CMD_SUCCESS) {

DEBUGOUT("Command failed to execute, return code is: %x\r\n", ret_code);

}

ret_code = Chip_IAP_ReinvokeISP();

if (ret_code != IAP_CMD_SUCCESS) {

DEBUGOUT("Invoke Command failed to execute, return code is: %x\r\n", ret_code);
}

__enable_irq();


}

 

Please help us to resolve this issue.

 

Best Regards,

Chethan kumar

chethan_k_0-1666092977977.png

 

0 项奖励
2 回复数

418 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello,

I could not understand your case, Is the LPC4367 in your custom board, and are you trying to upload the .bin with the ISP mode with the LPCScrypt?

LPC-Link2 Debug Probe Firmware Programming (nxp.com)

Best regards,
Pavel

0 项奖励

414 次查看
chethan_k
Contributor II

Dear Pavel,

 

Thank you for your response and sorry for the confusion.

Yes, what you understood is correct. 

I am trying to upload the bin file with the ISP mode using LPCScrypt.

As you know, 2 methods to enter ISP mode.

1. pull P2.7 low and press reset button

2. using Chip_IAP_ReinvokeISP() function.

Using 1st method  can upload the bin file easily but in the  2nd method getting timeout error as posted image in previous thread.

But if we try below steps using 2nd method we can upload the bin file.

chethan_k_0-1666153968798.png

Hope you understand.

Best Regards,

Chethan kumar