Skip to main content
arthurg
Associate II
August 4, 2011
Question

2 questions on stm32l151

  • August 4, 2011
  • 4 replies
  • 1050 views
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
This topic has been closed for replies.

4 replies

lexa_87
Visitor II
May 8, 2012
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

Tesla DeLorean
Guru
May 8, 2012
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 VenmoUp vote any posts that you find helpful, it shows what's working..
alok472
Associate
May 9, 2012
Posted on May 09, 2012 at 03:06

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

lexa_87
Visitor II
May 10, 2012
Posted on May 10, 2012 at 07:46

Thank you very much

this is exactly

what I was looking