This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I'm debugging a custom board and its firmware and i have to load a variety of binary files using Tools->Load memory
Is there any way to automate the process with some C++ function? It's possible to use the standard C++ function to open/load files?
Thanks for you answer
I'll try it.
In these days i've also tryied to use C++ Function fopen and fread and this is my code
FILE * pFile;
pFile = fopen ( "TxText.bin" , "rb" );
if (pFile != NULL)
{
fseek (pFile , 0 , SEEK_END);
UINT32 lSize = ftell (pFile);
rewind (pFile);
UINT8* pBuffer = (UINT8*)0x0c000000;
size_t result = fread(pBuffer, 1, lSize, pFile);
fclose (pFile);
}
I'm trying to load TxText.bin into shared memory but executing this code i see that the file is open correctly (pFile != NULL and lSize is correct) but it's content is not copied in the shared memory (result = 0)