-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[STM32U575RGT6]: Verification failed at offset 43008 #1362
Comments
The last two in32's are not correctly written. If I program the same bin file with the STM32CubeProgrammer, I can see the difference:
|
I wrote a Python script as a workaround:
|
@lefebvresam Thanks for reporting and analysing the issue which seems to be an issue with alignment. |
@Nightwalker-87 U5 chips request 16 byte alignment for write. I think need add alignment before line Alignment: if (sl->flash_type == STM32_FLASH_TYPE_L5_U5_H5 && (len % 16))
{
WLOG("Data size is aligned to 16 byte");
len += 16 - len%16;
} |
@Ant-ON I'll give it a try. I do have a Nucleo U575ZI-Q board at hand and may likely be able to reproduce and test. |
$ st-flash --freq=4M --debug write mem.bin 0x8000000
@lefebvresam I was able to reproduce your setup with a Nucleo U575ZI-Q board. |
I pulled the testing branch, installed again and it seems to work now. I'll no longer need my Python script. Thanks. |
Erasing and programming the chip with the command:
Gives as output result:
Short version:
Long version:
log.txt
The text was updated successfully, but these errors were encountered: