AN12323 : Firmware update

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

AN12323 : Firmware update

10,638 Views
AparnaSridharan
Contributor II

Hi,

I am using https://www.nxp.com/docs/en/application-note-software/AN12323SW.zip for updating firmware. Actually with the NXP S32K144EVB- Q100 the program works fine. No problem occurred. But I tried to execute this in our customized hardware, no error came while building but transmission and Reception cannot be performed. I am using Vehicle Spy to send and receive data from board. While transmitting data from vehicle spy it shows Msg ERROR - TX Aborted. While vehicle Spy is receiving it shows HS CAN error. What are necessary changes need to be made while we are switching from evb board to customized hardware so that we can transmit and receive data through CAN.

I have attached register values of FOTA_gateway below. Also I have attached the my working bootloader register values. What configuration do I need to change?

 

0 Kudos
Reply
10 Replies

10,617 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @AparnaSridharan,

Do you have the same MCU as the one on the EVB?

Do you use the same crystal (SOSC frequency)?

If so, I don't think this is a SW issue.

I would focus on the WH of the CAN tranceiver.

Can you scope the communication with a logic analyzer / oscilloscope?

 

BR, Daniel

 

0 Kudos
Reply

10,608 Views
AparnaSridharan
Contributor II

Hi,

We are using same MCU in our customized board. Frequency of SOSC is 8MHz. Only we are using different CAN Transceiver.  We are using MCP2561-E/SN CAN transceiver. Also with our previous code we were able to send and receive message through CAN. This gateway code while execution doesn't show any error. It is passing through both transmitter and receive function. But no data has been transmitted or received. Also What is Wh of the CAN Transceiver.

 

 

0 Kudos
Reply

10,601 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @AparnaSridharan,

Can you please scope the communication between the MCU and the transceiver as well as the CAN bus?

 

Thanks,

BR, Daniel

0 Kudos
Reply

10,597 Views
AparnaSridharan
Contributor II

Hi @danielmartynek ,

I have attached the scope of TX and RX for both gateway and our working code below

Gateway code:

Scope of tx:

AparnaSridharan_1-1648203668975.png

Scope of RX:

AparnaSridharan_2-1648203752694.png

Working code:

Tx scope:

AparnaSridharan_0-1648207605244.png

Rx Scope:

AparnaSridharan_1-1648207632192.png

Also what is WH in CAN transciever

 

 

0 Kudos
Reply

10,548 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @AparnaSridharan,

Well, I don't see anything in the screenshots.

The CAN transceiver should mirror the TX signal at the RX pin unless there is an arbitration issue.

Becasue the FlexCAN module must verify the TX data at the RX pin.

Without that, the FlexCAN module would not be even synchronized with the CAN bus.

So, I don't understand why you don't see any errors in the code.

Maybe you just don't measure it correctly.

Please scope the EVB that works again, you should see the same signal on both TX and RX when the CAN module is transmitting something.

I'm sorry, I meant HW not WH, just a typo.

For example, the transceiver might not be powered, or you connected the transceiver to wrong TX/RX pins.

 

Regards,

Daniel

 

 

 

 

0 Kudos
Reply

10,526 Views
AparnaSridharan
Contributor II

hi @danielmartynek ,

This is the scope I have mesaured.

SCOPE FOR TX in customized board: (FOTA_GATEWAY CODE):

AparnaSridharan_0-1648556360254.png

 

SCOPE FOR RX in customized board( FOTA_GATEWAY):

AparnaSridharan_1-1648556430884.png

 

SCOPE FOR TX in our customized(With our workinig code):

AparnaSridharan_2-1648556595039.png

SCOPE FOR RX in our customized(With our workinig code):

AparnaSridharan_3-1648556621645.png

SCOPE FOR TX in evk board: (FOTA gateway):

AparnaSridharan_6-1648558092255.png

SCOPE FOR RX in evk board: (FOTA gateway):

AparnaSridharan_7-1648558145603.png

 

 

SCOPE FOR TX in evk board: (Working code):

AparnaSridharan_4-1648557776617.png

SCOPE FOR RX in evk board: (Working code):

AparnaSridharan_5-1648557813999.png

 

 

 

 

0 Kudos
Reply

10,519 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Thanks for the measurement.

On the EVK, you can see a clear digital signal between the MCU and the transceiver (both TX and RX).

But on your customized board, the RX signal is distorted.

Can you share the schematic of the board?

If you don't want to share it here, please create a ticket.

danielmartynek_0-1648559767432.png

 

BR, Daniel

 

0 Kudos
Reply

10,506 Views
AparnaSridharan
Contributor II

Hi @danielmartynek ,

I have created ticket for this. 

CASE NUMBER: 0457545

0 Kudos
Reply

10,534 Views
AparnaSridharan
Contributor II

Hi, 

When I tried to execute FOTA_gateway  code I am getting below issue.

Can't find a source file at "C:\NXP\S32DS_ARM_v2018.R1\S32DS\arm_ewl2/EWL_C/src/strings/memcpy.c" 

AparnaSridharan_0-1648555719966.png

 

 

0 Kudos
Reply

10,528 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @AparnaSridharan,

This does not seem to be related to the issue here.

Please post it in a separate thread.

 

Thanks,

BR, Daniel

0 Kudos
Reply