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?
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
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.
Hello @AparnaSridharan,
Can you please scope the communication between the MCU and the transceiver as well as the CAN bus?
Thanks,
BR, Daniel
Hi @danielmartynek ,
I have attached the scope of TX and RX for both gateway and our working code below
Gateway code:
Scope of tx:
Scope of RX:
Working code:
Tx scope:
Rx Scope:
Also what is WH in CAN transciever
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
hi @danielmartynek ,
This is the scope I have mesaured.
SCOPE FOR TX in customized board: (FOTA_GATEWAY CODE):
SCOPE FOR RX in customized board( FOTA_GATEWAY):
SCOPE FOR TX in our customized(With our workinig code):
SCOPE FOR RX in our customized(With our workinig code):
SCOPE FOR TX in evk board: (FOTA gateway):
SCOPE FOR RX in evk board: (FOTA gateway):
SCOPE FOR TX in evk board: (Working code):
SCOPE FOR RX in evk board: (Working code):
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.
BR, Daniel
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"
Hi @AparnaSridharan,
This does not seem to be related to the issue here.
Please post it in a separate thread.
Thanks,
BR, Daniel