2021-10-17 05:11 AM
Is there a sample code for the on board eeprom access on the STM32L552E evaluation board ?
Solved! Go to Solution.
2021-10-22 04:29 AM
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
Imen
2021-10-19 05:25 AM
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
2021-10-20 06:39 AM
Thanks for the warm welcome :beaming_face_with_smiling_eyes: and the reply @Imen DAHMEN . I will try it out
2021-10-20 07:00 AM
@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 ?
2021-10-22 04:29 AM
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
Imen
2021-10-23 03:46 AM
Thanks @Imen DAHMEN I was able to get it working :beaming_face_with_smiling_eyes:
2021-10-25 12:25 AM
Good to hear you made it work and thanks for your contribution :)