Hello ,
I am using LPC54606 controller with CAN and other peripherals.
I have configured CAN to transmit 9 frames and receive 5 frames. The transmission and reception seems to be fine.
But the RAM consumption shoots up when I use CAN module.
If I disable the CAN module, the RAM consumption reduces by ~65%
Memory region Used Size Region Size %age Used
PROGRAM_FLASH: 32832 B 256 KB 12.52%
SRAM_UPPER: 9296 B 96 KB 9.46%
SRAMX: 0 GB 32 KB 0.00%
USB_RAM: 0 GB 8 KB 0.00%
The above is summary from map file without CAN module
Memory region Used Size Region Size %age Used
PROGRAM_FLASH: 33168 B 256 KB 12.65%
SRAM_UPPER: 75072 B 96 KB 76.37%
SRAMX: 0 GB 32 KB 0.00%
USB_RAM: 0 GB 8 KB 0.00%
The above is summary from map file with CAN module
I have few questions:
1. Is the usage summary shown in the Console(after build) correct?
2. When I comment the CAN RAM initialization, the RAM consumption drops
/* Message RAM initialization */
//memset(CAN1_RAM_BASE_ADDRESS, 0,CAN1_MESSAGE_RAM_SIZE * sizeof(uint32_t));
//MCAN_SetMsgRAMBase(CAN1, (uint32_t)CAN1_RAM_BASE_ADDRESS);
How do I calculate the actual RAM consumption?
regards,
Hemanth