Hi,
I'm using user defined memory map and allocated default heap to the DDR3(16MB) because lack of memory of L2SRAM.
And, have a problem to convert local memory to global while using BCP.
To use BCP, data buffer should be allocated and converted to the global address(You can find this at the BCP example, function name allocate_fdq in the file named bcp_wimax.c )
In the function, Bcp_osalMalloc function assigns data buffer according to buffSize. Of course Bcp_osalMalloc uses Memory_alloc function.
Basically the pointer of the data buffer is assigned in the memory map of L2SRAM. And then converted to the global address. It is because the default heap is assigned on L2SRAM.
In my case, because of the default heap is assigned on DDR3(16 times larger than L2SRAM), converted global address points reserved area of global address.
At this point,
1. Can I use local address(DDR3) instead of global address for data buffer of BCP?
2. Can I force to move global address in the reserved area to the usable area by simply add address offset? Is there any chance to make unwilling problems?
3. Is there any API to solve this problem?
Regards.
Hoon Lee.