LPC 845 ISP & configuration

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

LPC 845 ISP & configuration

1,410 次查看
DHARSAN
Contributor III

Hello

       LPC 845 max getting to the ISP mode in the EVK board. It couldn't flash the program. When pressing the ISP switch to the ground the program flashed but couldn't control the GPIO as I set first pin of the controller to low , the pin couldn't change it's state. Same happening in the development board. 

With Regards 

Dharsan K K

0 项奖励
回复
4 回复数

1,388 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @DHARSAN 

 

Please describe your issue more detail, thanks.

  • "    LPC 845 max getting to the ISP mode in the EVK board. It couldn't flash the program. "->> How to get to ISP mode on LPC845 MAX board? Hold which button? Please confirm it is entered LPC845 ISP mode, not the on board debugger get into ISP mode.

 

  • "When pressing the ISP switch to the ground the program flashed but couldn't control the GPIO as I set first pin of the controller to low , the pin couldn't change it's state. Same happening in the development board. "

          ->> Which pin? Please show your steps and code, I help you check , thanks.

 

BR

Alice

0 项奖励
回复

1,331 次查看
DHARSAN
Contributor III

Is the version of MCU Xpresso IDE necessary for a controller that it working properly?

0 项奖励
回复

1,244 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @DHARSAN 

If you want to program the device through ISP mode , please use Flash Magic. Below are the detailed steps:

  1. Prepare the GPIO Demo:

    • Import a GPIO demo from the SDK to MCUXpresso IDE.
    • Build and debug the project to confirm that it works correctly on your board.
  2. Convert the Binary File to Hex:

    • Convert the generated binary file to a hex file. 
  3. Enter ISP Mode:

    • Press the ISP button on the board while resetting it to put the device into ISP mode.
  4. Program Using Flash Magic:

    • Use Flash Magic to program the hex file into the device.

Following these steps should allow you to successfully program your device through ISP mode. After reset, gpio demo should work.

 

BR

Alice

0 项奖励
回复

1,344 次查看
DHARSAN
Contributor III

Hello

        The EVK board could not configure GPIO when flashing the program in ISP mode by pressing the ISP button. When checking the P1_0 pin not changed it's state. The same code flashed in my development board, only port 1 is configured and I configure the port 0. What will be the cause for the issue.

 

SYSCON->SYSAHBCLKCTRL0 |=1<<6; //clock for GPIO0 port

SYSCON->PRESETCTRL0 |=1<<6;

 

SYSCON->SYSAHBCLKCTRL0 |=1<<20; //clock for GPIO1 port

SYSCON->PRESETCTRL0 |=1<<20;

 

IOCON->PIO[IOCON_INDEX_PIO1_8]|=0x00; //pin 1

GPIO->DIR[1]|=(1<<8);

GPIO->CLR[1]|=(1<<8);

 

IOCON->PIO[IOCON_INDEX_PIO0_0]|=0x00; //pin 2

GPIO->DIR[0]|=(1<<0);

GPIO->CLR[0]|=(1<<0);

0 项奖励
回复