LPC54016 - MCAN message sddress sugestion

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

LPC54016 - MCAN message sddress sugestion

937 Views
adrian_chmiel
Contributor III

Hi,

I try to run CAN interface, but in MCAN driver is problem with assert:

Przechwytywanie.PNG

Address from 0x04000000 is points to the APB, because it is universal assert for other MCU families?

This assert checks if the declared memory is in the correct range, but the memory range doesn't indicate SRAMX (address from 0x0)

Przechwytywanie.PNG

 

MCAN driver is prepared default to use address from 0x1000 (so it's a SRAMX), in this topic I find the same information:

https://community.nxp.com/t5/LPC-Microcontrollers/Upgrading-2-7-SDK-gt-to-new-2-8-SDK-ERRORs/m-p/108... 

That mean, there is a bug in ASSER in MCAN driver?

 

Of course I can change the memory address to allowed in Pin tool perspective, but still can't use SRAMX (without driver modification).

 

Tags (2)
0 Kudos
2 Replies

925 Views
FelipeGarcia
NXP Employee
NXP Employee

Hi Adrian,

MCUXpresso SDK MSCAN examples are external flash plain load demos, this means that ROM will copy image in external flash to SRAMX to run. Please check section 17.8.4 Plain Load Image in the MCUXpresso IDE User Guide for more details.

I believe this is the reason the MSCAN drivers are preventing to use SRAMX as message address in the function you were referring.

Best regards,

Felipe

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored. Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

------------------------------------------------------------------------------ 

0 Kudos

896 Views
adrian_chmiel
Contributor III

Thanks for answer.

Yes, it's possible, but it would not be better to immediately write to SRAMX (the program can be loaded directly from an external FLASH without having to load it into RAM) and as an example address the MCAN buffer to SRAM_1?

It would be more intuitive.

0 Kudos