AnsweredAssumed Answered

Adding external RAM to  M52259 using mini-flexbus ?

Question asked by kleckerspur on Sep 2, 2014
Latest reply on Sep 2, 2014 by soledad

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

Outcomes