Hello,
could you give an example how to implement external SRAM in mqx using CW10.x and MQX 4.1 ?
I want to use this in this kind of way ?
unsigned char sram_create_pool(void)
{
_sram_pool_id = _mem_create_pool(BSP_EXTERNAL_SRAM_MEM_BASE, BSP_EXTERNAL_SRAM_MEM_SIZE);
if(_sram_pool_id == NULL) {
return 0;
}
return 1;
}
//Allocation memory function
pointer sram_mem_alloc(int mem_size)
{
return _mem_alloc_from(_sram_pool_id, mem_size);
}
Thanks
Hi,
Please check the below threads and let me know if these help!!!!
Adding external RAM to M52259 using mini-flexbus
Best Place to add external SRAM in MQX
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------