Bugs in nxp_lpcxpresso_11c24_periph_ccan_rom?

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

Bugs in nxp_lpcxpresso_11c24_periph_ccan_rom?

389 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by 1234567890 on Mon Nov 10 10:02:50 MST 2014
After reading the example from http://www.lpcware.com/system/files/lpcopen_v2_00a_lpcxpresso_nxp_lpcxpresso_11c24.zip above (very quickly):

- The CAN-API is used, but no RAM is reserved for it? RAM from 0x1000 0050 to 0x1000 00B8.

- /* Send a simple one time CAN message */
msg_obj.msgobj  = 0;

I think msobj 0 doesn't exist. It's range is 1 to 32.
Labels (1)
0 Kudos
2 Replies

366 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Nov 12 00:40:11 MST 2014

Quote: 1234567890
After reading the example from http://www.lpcware.com/system/files/lpcopen_v2_00a_lpcxpresso_nxp_lpcxpresso_11c24.zip above (very quickly):

- The CAN-API is used, but no RAM is reserved for it? RAM from 0x1000 0050 to 0x1000 00B8.



You should be able to fix this yourself by adding the following definition to the code:

__BSS(RESERVED) char CAN_driver_memory[256] ; // reserve 256 bytes for CAN driver


For more details, see:

http://www.lpcware.com/content/faq/lpcxpresso/reserving-ram-rom-drivers

Regards,
LPCXpresso Support
0 Kudos

366 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_Support on Tue Nov 11 15:55:00 MST 2014
Thanks for bringing this to our attention.  We will investigate this and reply back.
0 Kudos