Hi guys
I am trying to transfer files from my PC to my beaglebone using basic serial communication. For this I have built my own application.
When I use malloc() to allocate memory for the file which is coming it returns NULL when the file size is larger than 10.3KB (It works for 8.68KB but not for 10.3KB). So somewhere in between these two sizes malloc fails. My beaglebone has 256MB memory and in the linker command file, sysmem is set to use DDR_MEM (.sysmem : load > DDR_MEM)
When i do static allocation there is no problem (test with 10+ MB).
Any ideas? May some memory page allignment issuse?
This is the code snippet which fails:
fileReceiveBuffer = (char*) malloc (bytesToReceive);