2020-05-27 03:30 AM
I am a bit confused by the language in the F7 reference manual, section 3.3.5 (RM0431) that describes the flash program/erase parallelism. Does the power supply limit the maximum value of the parallelism or does it limit one to a particular size?
The caption for table 6 is "Table 6 provides the correct PSIZE values". Should it say "correct maximum PSIZE values"?
I am asking because i have been writing bytes to the flash with Vcc=3.3V and PSIZE = 0 and its been working fine for a while, but i wonder if that's only luck and i should switch to 32bit writes. Speed is not an issue in this case.
Solved! Go to Solution.
2020-05-27 06:53 AM
I know this is minor, but i also found a few copy & paste errors in stm32f7xx_hal_flash.c when i was looking for the answer. The @note in the comments is incorrect for FLASH_Program_Word, Halfword & Byte.
2020-05-27 04:18 AM
"correct maximum PSIZE values" is the right thing
2020-05-27 04:19 AM
Uwe,
Can you please quote a source for this?
@Imen DAHMEN ,
Can this please be clarified, across all STM32 RMs?
Jan
2020-05-27 05:14 AM
@RMcCa , It's ok for your use case. I confirm, it is the max PSIZE vs Voltage.
I will raise this internally to update all STM32 RMs.
Edit: We suggest to change “Parallelism size�? to “max parallelism size�?.
Best Regards,
Imen
2020-05-27 05:16 AM
Thank you, good to know my code wasn't working by accident.
2020-05-27 06:53 AM
I know this is minor, but i also found a few copy & paste errors in stm32f7xx_hal_flash.c when i was looking for the answer. The @note in the comments is incorrect for FLASH_Program_Word, Halfword & Byte.
2020-05-27 07:20 AM
The datasheet STM32F730x8 page 127, table Table 53. Flash memory programming (continued) seems quite clear to me.
2020-05-27 07:40 AM
Interesting. There is an additional mistake then. The datasheet list 3V max for 32bit programming while the RM says 3.3V.
2020-05-27 07:51 AM
Yes, the max value for 32-bit program operation seem wrong
2020-05-27 10:23 AM
Thanks, Imen.
Jan
@Imen DAHMEN