2025-07-15 4:26 AM - edited 2025-07-15 11:17 AM
Hi everyone,
I am trying to run VENC_JPEG_Encoding project using STM32CubeIDE on STM32N6570-DK board, but it is not saving .bmp as stated in README file. Upon further debugging I can see in main.c in function save_file() that it is only supported on IAR system.
int8_t save_file(char *pName,uint8_t *pStream,uint32_t szOut)
{
int8_t ret = 0;
#if defined ( __ICCARM__ )
/* stdio FILE works only on IAR system */
FILE *pFile;
pFile = fopen(pName,"wb");
if(pFile)
{
while(szOut)
{
uint32_t blk = 1024;
if(szOut < blk ) blk = szOut;
uint32_t written = fwrite(pStream,1,blk,pFile);
szOut-= written;
pStream+=written;
}
fclose(pFile);
ret = 1;
printf("the file %s is in the current folder",pName);
}
#endif
return ret;
}
so how do i test it in CubeIDE as I am on Ubuntu and IAR doesnt supports Ubuntu till now.
Kindly help
2025-07-15 7:43 AM
Hello @athern27
I reported this internally and will get back to you as soon as possible.
Internal ticket number: 214131 (This is an internal tracking number and is not accessible or usable by customers).