Skip to main content
Associate
March 5, 2025
Question

EEPROM Emulation for STM32F407 - LoRaWAN porting

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.

 

 

This topic has been closed for replies.

2 replies

Andrew Neil
Super User
March 5, 2025
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
ATH_23Author
Associate
March 6, 2025

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?