Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

Data loaded to memory from bin file are not correct

2 posters

Go down  Message [Page 1 of 1]

vranik



Hi, I would like to use ROM memory and load the content from bin file. When I check the content of the memory by Show Memory Table there are missing bytes with value 0x0D. The problem might be in function fileToByteArray in utils.cpp. The file is opened as a text file.

Tested in Simulide 1.0.1 R1201 under Linux.



Last edited by arcachofo on Sun May 29, 2022 3:34 pm; edited 1 time in total (Reason for editing : Mark as solved (green color))

arcachofo

arcachofo

I did some basic tests and it's working for me.
Can you share a bin file that shows the problem?

vranik



I am sending the testing file. My content of the ROM after loading is following. The bytes 0x0D are missing. I tried to change language to English and the result was the same.

Data loaded to memory from bin file  are not correct Screen22
Attachments
Data loaded to memory from bin file  are not correct Attachmenttest.bin.zip
Testovací soubor
You don't have permission to download attachments.
(1 Kb) Downloaded 2 times

arcachofo

arcachofo

The bytes 0x0D are missing.
Ok, now I understand.

To solve it edit fileToByteArray(): remove the QFile::Text flag in file.open() (Rev 1210).
Code:
if( !file.open( QFile::ReadOnly ) )

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum