Skip to main content
NAfri.1
Associate
Aug 1, 2022 7:32 AM UTC
Question

How can I track the status of the onboard LED (STM32LO) and write that data to the EEPROM?

Hello everyone,

I have an STM32LO discovery board. Using it for a big project in IoT. How can i track the status of the onboard LED and write that data to the EEPROM? 

Say the led is on, saves that status and duration, then sends it as a packet to TTN.

*Edited by moderation, please keep the title of your question shorter than 70 characters*

This topic has been closed for replies.

3 replies

Nikita91
Lead II
Aug 1, 2022 8:38 AM UTC

As it is your application that drives the LED, you already have all the information, and you can therefore save it.

NAfri.1
NAfri.1Author
Associate
Aug 1, 2022 11:14 AM UTC

Thanks, i will need to read more on EEPROM.

Javier1
Principal
Aug 1, 2022 11:27 AM UTC

@NAfri.1​ what?

Read status of any gpio:https://thecodeprogram.com/access-gpio-pin-states-with-odr-and-idr-in-stm32-stdperiph

Write/read Flash(eeprom?):(i would use RAM if i were you)https://www.youtube.com/watch?v=GGkVkV0nXu8

hit me up in https://www.linkedin.com/in/javiermuñoz/