cancel
Showing results for 
Search instead for 
Did you mean: 

STM32N6 VENC_JPEG_Encoding issues

athern27
Associate III

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

1 REPLY 1
Saket_Om
ST Employee

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).

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Saket_Om