Hello,
I have a strange issue with CMEM_alloc from the heap. I am allocating buffer 1 and then buffer2. Both of size 100 bytes. If I free first buffer 1 and then buffer 2, I get CMEMK Error: FREE: Failed to convert virtual 0x40001000 to physical. 0x40001000 is the address of buffer 2.
But if I free first buffer 2 and then buffer 1, everything runs fine.
I have attached the source code of my program and also a log of the error messages collected with CMEM.debug = true, for both the passing and failing cases. The 2 logs are almost identical except for the last line.
My cmem is loaded as follow:
mod cmemk.ko phys_start=0x83800000 phys_end=0x88000000 allowOverlap=1 phys_start_1=0x00001000 phys_end_1=0x00008000 pools_1=1x28672
Victor