S32K311 - not able to update firmware from JTAG

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

S32K311 - not able to update firmware from JTAG

376 Views
geeznxp
Contributor II

Hello,

I flashed an Autosar-based code which runs on CAN. After flashing it once, during debugging it got into deadbee (on Port_Init(NULL_PTR); line). After trying to update the firmware again, it stopped detecting the controller. Code was not flashed using J-Flash lite as well.

I have an entire screen recording but due to size limitations, I'm attaching the screenshotsas well as the code for reference.

I had to solder a new MCU to get it working as this MCU stopped getting flashed.

I don't understand why this is happening. Please help me out with some insights.

Thanks

Screenshot (472).png 

Screenshot (475).png

 

Screenshot (476).png

Screenshot (477).png

   

Screenshot (478).png

S32K3 AUTOSAR AUTOMOTIVE-RTD 

0 Kudos
Reply
2 Replies

343 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @geeznxp 

 

I loaded your project to S32K311 EVB and it works as expected, I can’t see any problem.

Port_Init initializes only two pins for CAN1. It’s PTA11 (CAN_TX) and PTA12 (CAN_RX). CAN_TX/PTA11 is configured as output. If it fails in this function – isn’t there a shortcut on your board? Or some wrong connection? I can’t see other reason.

 

Regards,

Lukas

0 Kudos
Reply

211 Views
geeznxp
Contributor II

Hi @lukaszadrapa,

Thanks for your quick response.

I'm working on a custom board, and nothing was connected to it.

Can you tell me why I'm receiving above response in J-Link Commander ?

Screenshot (478).png

 

Thanks 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2349051%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K311%20-%20not%20able%20to%20update%20firmware%20from%20JTAG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2349051%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20flashed%20an%20Autosar-based%20code%20which%20runs%20on%20CAN.%20After%20flashing%20it%20once%2C%20during%20debugging%20it%20got%20into%20deadbee%20(%3CSTRONG%3Eon%20Port_Init(NULL_PTR)%3C%2FSTRONG%3E%3B%20line).%20After%20trying%20to%20update%20the%20firmware%20again%2C%20it%20stopped%20detecting%20the%20controller.%20Code%20was%20not%20flashed%20using%20J-Flash%20lite%20as%20well.%3C%2FP%3E%3CP%3EI%20have%20an%20entire%20screen%20recording%20but%20due%20to%20size%20limitations%2C%20I'm%20attaching%20the%20screenshotsas%20well%20as%20the%20code%20for%20reference.%3C%2FP%3E%3CP%3EI%20had%20to%20solder%20a%20new%20MCU%20to%20get%20it%20working%20as%20this%20MCU%20stopped%20getting%20flashed.%3C%2FP%3E%3CP%3EI%20don't%20understand%20why%20this%20is%20happening.%20Please%20help%20me%20out%20with%20some%20insights.%3C%2FP%3E%3CP%3EThanks%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%20(472).png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%20(472).png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%20(472).png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F381962iF4A854608D550813%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%20(472).png%22%20alt%3D%22Screenshot%20(472).png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%20(475).png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%20(475).png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%20(475).png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F381963i9620864E6B9018B4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%20(475).png%22%20alt%3D%22Screenshot%20(475).png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%20(476).png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%20(476).png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%20(476).png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F381964i94841F3845918D59%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%20(476).png%22%20alt%3D%22Screenshot%20(476).png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%20(477).png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%20(477).png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%20(477).png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F381965i96EBDF106E7D7277%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%20(477).png%22%20alt%3D%22Screenshot%20(477).png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%E2%80%83%E2%80%83%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%20(478).png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%20(478).png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%20(478).png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F381966i5B8C504541F72120%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%20(478).png%22%20alt%3D%22Screenshot%20(478).png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FS32K3%2Fpd-p%2FS32K3%22%20class%3D%22lia-product-mention%22%20data-product%3D%221688-1%22%20target%3D%22_blank%22%3ES32K3%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FAUTOSAR%2Fpd-p%2FAUTOSAR%22%20class%3D%22lia-product-mention%22%20data-product%3D%222275-1%22%20target%3D%22_blank%22%3EAUTOSAR%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FAUTOMOTIVE-RTD%2Fpd-p%2FAUTOMOTIVE-RTD%22%20class%3D%22lia-product-mention%22%20data-product%3D%222258-1%22%20target%3D%22_blank%22%3EAUTOMOTIVE-RTD%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2349257%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K311%20-%20not%20able%20to%20update%20firmware%20from%20JTAG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2349257%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F261352%22%20target%3D%22_blank%22%3E%40geeznxp%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EI%20loaded%20your%20project%20to%20S32K311%20EVB%20and%20it%20works%20as%20expected%2C%20I%20can%E2%80%99t%20see%20any%20problem.%3C%2FP%3E%0A%3CP%3EPort_Init%20initializes%20only%20two%20pins%20for%20CAN1.%20It%E2%80%99s%20PTA11%20(CAN_TX)%20and%20PTA12%20(CAN_RX).%20CAN_TX%2FPTA11%20is%20configured%20as%20output.%20If%20it%20fails%20in%20this%20function%20%E2%80%93%20isn%E2%80%99t%20there%20a%20shortcut%20on%20your%20board%3F%20Or%20some%20wrong%20connection%3F%20I%20can%E2%80%99t%20see%20other%20reason.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3ELukas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2349888%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K311%20-%20not%20able%20to%20update%20firmware%20from%20JTAG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2349888%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F37795%22%20target%3D%22_blank%22%3E%40lukaszadrapa%3C%2FA%3E%2C%3C%2FP%3E%3CP%3EThanks%20for%20your%20quick%20response.%3C%2FP%3E%3CP%3EI'm%20working%20on%20a%20custom%20board%2C%20and%20nothing%20was%20connected%20to%20it.%3C%2FP%3E%3CP%3ECan%20you%20tell%20me%20why%20I'm%20receiving%20above%20response%20in%20J-Link%20Commander%20%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%20(478).png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%20(478).png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F382090iD03F1D4AD69063A2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%20(478).png%22%20alt%3D%22Screenshot%20(478).png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E