Skip to main content
ARaj.4
Associate II
Oct 17, 2021 12:11 PM UTC
Solved

STM32L5552E -Eval sample code for on board eeprom access

Is there a sample code for the on board eeprom access on the STM32L552E evaluation board ?

This topic has been closed for replies.
Imen.DBest answer
ST Technical Moderator
Oct 22, 2021 11:29 AM UTC

Hi @ARaj.4​ ,

There is no EEPROM example within STM32L5, but you can get inspiration from the example available under STM32CubeH7 to achieve your goal:

\STM32Cube_FW_H7_V1.9.0\Projects\STM32H743I-EVAL\Examples\I2C\I2C_EEPROM_fast_mode_plus

(make sure to update the pins and use PG13 and PG14 pins)

You can also refer to the BSP drivers integrated in the STM32CubeH7 and update it according to your needs:

\STM32Cube_FW_H7_V1.9.0\Drivers\BSP\STM32H743I-EVAL\stm32h743i_eval_eeprom.* files

0693W00000FDR6HQAX.jpg 

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

6 replies

ST Technical Moderator
Oct 19, 2021 12:25 PM UTC

Hello @ARaj.4​ and welcome to the Community :)

You can download and use the X-CUBE-EEPROM - EEPROM emulation expansion software for STM32Cube which supports STM32L5.

The package provides a firmware package including examples showing how to exploit this EEPROM emulation driver.

Note that the provided example for STM32L5 runs on STM32L552xx devices.

For more details, please have a look at this AN4894 application note describes the software solution (X-CUBE-EEPROM).

 

Hope my answer helps you!

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

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
ARaj.4
ARaj.4Author
Associate II
Oct 20, 2021 1:39 PM UTC

Thanks for the warm welcome :beaming_face_with_smiling_eyes: and the reply @Imen DAHMEN​ . I will try it out

ARaj.4
ARaj.4Author
Associate II
Oct 20, 2021 2:00 PM UTC

@Imen DAHMEN​  i could see that the X-cube eeprom is for "emulating eeprom from internal flash" and not the use of on board eeprom in the STM32L5 eval board ? Is this correct ?

If yes, is there any example that make use of the on board eeprom rather than emulating flash as eeprom ?

Imen.DBest answer
ST Technical Moderator
Oct 22, 2021 11:29 AM UTC

Hi @ARaj.4​ ,

There is no EEPROM example within STM32L5, but you can get inspiration from the example available under STM32CubeH7 to achieve your goal:

\STM32Cube_FW_H7_V1.9.0\Projects\STM32H743I-EVAL\Examples\I2C\I2C_EEPROM_fast_mode_plus

(make sure to update the pins and use PG13 and PG14 pins)

You can also refer to the BSP drivers integrated in the STM32CubeH7 and update it according to your needs:

\STM32Cube_FW_H7_V1.9.0\Drivers\BSP\STM32H743I-EVAL\stm32h743i_eval_eeprom.* files

0693W00000FDR6HQAX.jpg 

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
ARaj.4
ARaj.4Author
Associate II
Oct 23, 2021 10:46 AM UTC

Thanks @Imen DAHMEN​  I was able to get it working :beaming_face_with_smiling_eyes:

ST Technical Moderator
Oct 25, 2021 7:25 AM UTC

Good to hear you made it work and thanks for your contribution :)

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