cancel
Showing results for 
Search instead for 
Did you mean: 

EEPROM Emulation for STM32F407 - LoRaWAN porting

ATH_23
Associate II

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.

 

 

2 REPLIES 2

For F4 series, see STSW-STM32066EEPROM emulation in STM32F40x/STM32F41x microcontrollers (AN3969)

https://www.st.com/en/embedded-software/stsw-stm32066.html

 

Reference:

https://community.st.com/t5/stm32-mcus-embedded-software/x-cube-eeprom-not-for-stm32f0/m-p/684685/highlight/true#M48486

 

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.

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?