cancel
Showing results for 
Search instead for 
Did you mean: 

2 questions on stm32l151

arthurg
Associate II
Posted on August 04, 2011 at 20:30

First question:

If anyone has a simple C program for reading/writing internal EEPROM, I would appreciate it.

Second question:

The bootloader function doesn't work, according to the errata. Does anyone know when STM will release a fix for this?

#eeprom
4 REPLIES 4
lexa_87
Associate
Posted on May 08, 2012 at 19:19

This

post

is

old

but it

interests me

too.

I

do not know if

you found

an example

for

the eeprom

but I seek

the same thing

.

If anyone can

help me

I will appreciate

.

thx

Posted on May 08, 2012 at 20:01

/* To unlock Flash data */
DATA_EEPROM_Unlock();
/* To store the value in E²Prom */
DATA_EEPROM_FastProgramByte(0x08080000, 0x12) ;
/* To lock Flash data */
DATA_EEPROM_Lock();
printf(''%02
X'', *((unsigned char *)0x08080000) );

Wouldn't something like this suffice?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
alok472
Associate II
Posted on May 09, 2012 at 03:06

The EEPROM API is available inside stm32l1xx_flash.c of the STM32L firmware library

lexa_87
Associate
Posted on May 10, 2012 at 07:46

Thank you very much

this is exactly

what I was looking