2025-03-05 9:46 AM - last edited on 2025-03-05 10:28 AM by Andrew Neil
Hi
I am using STM32F407 and I want to interface SX1262 XXXM LoRaWAN/GNSS HAT into the host MCU.I was porting LoRaMAC stack into stm32f407 using stm32cube ide referring Lora-net/LoRaMac-node: Reference implementation and documentation of a LoRa network node., but flash interfacing for eeprom emulation is based on STM32L4 series and I dont know how to make the same compatible or modify it for stm32f4 series.It will be much helpful if anyone could guide me through the steps.
2025-03-05 10:27 AM
For F4 series, see STSW-STM32066, EEPROM emulation in STM32F40x/STM32F41x microcontrollers (AN3969)
https://www.st.com/en/embedded-software/stsw-stm32066.html
Reference:
2025-03-06 12:49 AM
Thankyou @Andrew Neil
I downloaded the software and went through the library files .I needed more clarifications.
#define VoltageRange_1 ((uint8_t)0x00) /*!< Device operating range: 1.8V to 2.1V */
#define VoltageRange_2 ((uint8_t)0x01) /*!<Device operating range: 2.1V to 2.7V */
#define VoltageRange_3 ((uint8_t)0x02) /*!<Device operating range: 2.7V to 3.6V */
#define VoltageRange_4 ((uint8_t)0x03) /*!<Device operating range: 2.7V to 3.6V + External Vpp */
This lines of code are from "/en.stsw-stm32066\STM32F4xx_AN3969_V1.0.0\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_flash.h" and they are of datatype (uint8_t) but in default they are already defined in "stm32f4xx_hal_flash_ex.h" as datatype of (uint32_t).
Will it be of any problem?