Ertror with res = lv_fs_read(&f, buffer, charTOread, &read_num);

A this is Super Odd

The Text file is
“Hallo ich bin es der
Martin Michael”

This sucks if I do this with Arduino SD it work properbly

Anyway great Project !!!

 buffer = (uint8_t*)malloc(100);  
char file_path[] ={"S:Text/noop.txt"};
 res = lv_fs_open(&f, file_path, LV_FS_MODE_RD);
  if (res != LV_FS_RES_OK)
  {
    Serial.println("LV Failed to open SD File!");
  }
  else
  {
    Serial.println("LV Opened SD File!");
  }

  uint32_t read_num;
  uint32_t charTOread = 20;
  res = lv_fs_read(&f, buffer, charTOread, &read_num);
  Serial.println("LV did a SD File Read!");

  for (int a = 0; a < 50; a++)
  {
    Serial.printf("0x%x ", buffer[a]);
  
  }
 LV_LOG_WARN(" After Hex Output\n");
for (int a = 0; a < 50; a++)
  {
    char ch = (char)buffer[a];
    Serial.printf("%c", ch);
  }
LV_LOG_WARN("\n AfterChar Output");
  Serial.println("");
  res = LV_FS_RES_OK;
  if (res != LV_FS_RES_OK)
  {
    Serial.println("LV Couldn't Read!");
  }
  else
  {
    Serial.println("LV Read DATA!");
  }
  Serial.print("LV File Pointer before close: ");
  Serial.println((int)&f);
  lv_fs_close(&f);
  Serial.print("LV File Pointer after close: ");
  Serial.println((int)&f);

  Serial.println("closed file");
  free(buffer);