lpc55s06 freemaster via can

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

lpc55s06 freemaster via can

426 Views
lukas01
Contributor I

Hello,

I have been working with the provided Freemaster JLink sample code that came with the SDL, and I attempted to switch the message layer to CAN. I made some adjustments, but I'm unsure about the correct value for the "FMSTR_MCAN_SHAREDMEMORY_OFFSET" in the "freemaster_mcan.c" file. I commented out that section, but I suspect it might be the reason why it's not functioning as expected.

I can confirm that Freemaster is successfully sending CAN requests to the ECU, and these requests are being properly processed and forwarded to the Freemaster stack. However, when I check the CAN TX/RX functions, I notice they are being entered, but there's no response from the ECU.

Any guidance or assistance on this matter would be greatly appreciated.

Best regards,
Lukas

Labels (1)
0 Kudos
Reply
2 Replies

398 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Lukas,

 

Regarding your question about the   "FMSTR_MCAN_SHAREDMEMORY_OFFSET" , pls refer to the section 41.5.1 Message RAM configuration in UM11424.pdf.
 the message RAM can save the CAN receiver  filter, CAN packet buffer for both transmitter and receiver, it can be located at any internal RAM address, the start address of  the message RAM is saved in CAN->MRBA register.
 
In conclusion, the FMSTR_MCAN_SHAREDMEMORY_OFFSET" is the start address of CAN message RAM, located at any internal RAM with word address.
 
Hope it can help you

BR

XiangJun Rong

 

xiangjun_rong_0-1697610653048.png

 

 

0 Kudos
Reply

372 Views
lukas01
Contributor I

2023-10-24 11_17_57-Empty.png

The Freemaster communication is operational, as I can successfully ping the ECU. Nevertheless, I'm encountering issues with the transmission of measurements to the GUI. There are instances when certain values are not consistently reported for a period of time.

0 Kudos
Reply