AnsweredAssumed Answered

LPC1768 problem with ISP

Question asked by Lorenzo Del Cerro on Jun 6, 2019
Latest reply on Jun 18, 2019 by Lorenzo Del Cerro

Hi everyone,

 

   I'm posting here because I have a problem while flashing a firmware for the first time on a LPC1768 (LQFP100), using a NXPFlasher tool.

 

   The electronical design of the ISP connector and the toolchain I'm using have already functionned on various boards with the same pinout :

 

RESET to the RESET pin

ISP_RX to P0_3 (UART0)

ISP_TX to P0_2 (UART0)

ISP_BOOT to P2_12 and P2_10 (those two pins are pulled up with a 10k resistor)

 

   When flashing the firmware, I observe on the oscilloscope that both the RESET and the BOOT signal go LOW at the same time, which is supposed to start the ISP command handler, according to the datasheet (page 17). So we already know that the problem isn't linked to the pull up resistors.

   I have attached a picture of those signals when flashing the firmware (RESET and BOOT.jpg).

 

   I then tried to observe what happens on the RX and TX pins during flashing, and I have attached two picture with ISP_RX in Yellow and ISP_TX in Blue :

 

  • ISP_RX and ISP_TX normal_function.jpg : On a previously flashed MCU, we see that after two pulses, the TX pin transmits data.

 

  • ISP_RX and ISP_TX malfunction.jpg : On a MCU never flashed before, we see the two initial pulses, but then nothing. I have attached a picture of the output of my terminal : Terminal.png. (Nothing is displayed after the line 5144)

 

I've spent hours trying to understand what the problem is, if anyone has a clue on what the problem could be I'm all ears.

 

Please ask me if you need additional infos/screeshots to understand the problem.

 

Thank you all,

Lorenzo

Outcomes