Rak811 Tracker Board

(Russ Nelson) #274

Hrm. Does this CPU have any non-volatile storage in it?

(Olof Ast) #275

I think it has eeprom starting at 0x08080000.
With mbed you can access it like this.

#include “mbed.h”
#include “stm32l1xx_flash.h”

FLASH_Status writeEEPROMByte(uint32_t address, uint8_t data) {
address = address + 0x08080000;
DATA_EEPROM_Unlock(); //Unprotect the EEPROM to allow writing
status = DATA_EEPROM_ProgramByte(address, data);
DATA_EEPROM_Lock(); // Reprotect the EEPROM
return status;

uint8_t readEEPROMByte(uint32_t address) {
uint8_t tmp = 0;
address = address + 0x08080000;
tmp = (__IO uint32_t)address;

return tmp;


Should be similar with cmsis,
#include “stm32l1xx_hal.h”

(Kenyu) #276

correct, any question send email to ken.yu@rakwireless.com for coordinate.