cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Cubeprogrammer, external loader and compare memory with file fails to start.

JR.3
Associate II

I'am using Cubeprog version 2.10.0 and kit b_u585i_iot02a. Flashing to NOR flash with external loader is OK and verification is also OK.

Then I tried to check flash against file but it fails, too big file...

Can this be fixed ? This is very useful feature when using other flashing tools and checking if flashing was successful.

---------------

15:02:34 : Memory Programming ...

15:02:34 : Opening and parsing file: 2_2M.bin

15:02:34 :  File         : 2_2M.bin

15:02:34 :  Size         : 2.22 MB

15:02:34 :  Address      : 0x70000000

15:02:34 : Erasing memory corresponding to segment 0:

15:02:34 : Erasing external memory sectors [0 35]

15:02:42 : Download in Progress:

15:02:48 : File download complete

15:02:48 : Time elapsed during download operation: 00:00:13.322

15:02:48 : Verifying ...

15:02:48 : Read progress:

15:02:54 : Download verified successfully

15:03:17 : Read File: C:\temp\2_2M.bin

15:03:17 : Number of segments: 1

15:03:17 : segment[0]: address= 0x0, size= 0x237A00

15:03:17 : Flash memory comparing with the file...

15:03:17 : Error: File is too big for comparison: 2_2M.

1 ACCEPTED SOLUTION

Accepted Solutions
Sara BEN HADJ YAHYA
ST Employee

Hello @JR.3​ ,

Sorry for the late reply and thanks for your feedback,

The size of the internal flash memory of an STM32U585AII6Q (mounted in B-U585I-IOT02A ) is 2MB so trying to compare the flash memory with a file that is over 2MB is going to fail with the message "Error: File is too big for comparison"

The file you loaded is in the external flash and not in the internal flash memory. In this case, the "Compare memory with file" is not going to work because it compares the internal flash memory with the file. Instead you need to open the file and specify the address of the external flash and finally click on Verify (please check the following screenshot)

0693W00000Nt84IQAR.pngI hope this helps 🙂

If your issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly 🙂

Sara.

View solution in original post

2 REPLIES 2
Sara BEN HADJ YAHYA
ST Employee

Hello @JR.3​ ,

Sorry for the late reply and thanks for your feedback,

The size of the internal flash memory of an STM32U585AII6Q (mounted in B-U585I-IOT02A ) is 2MB so trying to compare the flash memory with a file that is over 2MB is going to fail with the message "Error: File is too big for comparison"

The file you loaded is in the external flash and not in the internal flash memory. In this case, the "Compare memory with file" is not going to work because it compares the internal flash memory with the file. Instead you need to open the file and specify the address of the external flash and finally click on Verify (please check the following screenshot)

0693W00000Nt84IQAR.pngI hope this helps 🙂

If your issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly 🙂

Sara.

Hi

Thanks for the answer. I got verification working.

But there is still one problem. If I try to open file which is about 8 Mbytes or bigger then cubeprogmmer is not working anymore. Anyway verification is now much easier, thanks again.