Skip to main content
Thomas Hoppe
Associate III
January 22, 2018
Question

Why does STM32L0 Not Support TYPEPROGRAM_BYTE/ FLASH_TYPEPROGRAM_BYTE

  • January 22, 2018
  • 1 reply
  • 1199 views
Posted on January 22, 2018 at 19:15

The HAL documentation

http://www.st.com/content/ccc/resource/technical/document/user_manual/41/78/8e/63/f9/32/44/12/DM00113898.pdf/files/DM00113898.pdf/jcr:content/translations/en.DM00113898.pdf

  seems to correctly mention, that for HAL_FLASH_Program(), only TYPEPROGRAM_WORD is supported. CubeMX also generates TYPEPROGRAM_BYTE but FLASH_TYPEPROGRAM_BYTE remains undefined. My question is, why is this programming type not supported on L0?

#cube-hal #stm32l0 #flash-storage
This topic has been closed for replies.

1 reply

Technical Moderator
March 22, 2018
Posted on March 22, 2018 at 10:56

Hello

Hoppe.Thomas

,

In STM32L0 reference manual, it is specified that programming in the Flash memory can only be performed by word or half-page.

Therefore L0 Flash driver does not support byte programming, and can not be modified to support it.

Kind Regards,

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks