eclipse-threadx / levelx

Eclipse ThreadX - LevelX Provides Flash Wear Leveling for FileX and Stand Alone purposes.
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/levelx/index.md
MIT License
97 stars 58 forks source link

Address alignment issue while writing to internal falsh of stm32u5 #16

Closed Nelthrion closed 2 years ago

Nelthrion commented 2 years ago

HI

I am using the STM32U575 for my project with the internal nor flash provided. Noticing that the address are word(32bits) aligned while writing to the flash, but for STM32U5 internal flash the address needs to be quadword(128bits) aligned. Is there a configuration in levelx (like a line size) with which levelx will provide me quadword aligned addresses, or I need to take care of this specifically in the flash write driver routine(I think will affect the performance of write operation)?

Thanks

xiuwencai commented 2 years ago

Hi Nelthrion, Unfortunately, LevelX does not support this internal NOR flash. There is no such configuration provided for now. We will add support for STM32 internal NOR flash in future releases.

Nelthrion commented 2 years ago

Thanks for the reply. I will continue to use external flash for now.