AnsweredAssumed Answered

How to make the bootloader(IAP) Firmware with STM32L151RE ?

Question asked by jo.min_sung on Oct 28, 2014
Latest reply on Oct 29, 2014 by Clive One

 

hi. I'm Min-sung Jo.

My MCU is STM32L151RE.

I used IAP example source code. Unfortunately, it doesn't support STM32L151xE version.

so I can't download program on it.
first 128 byte succecful download, but anymore not work.

I just modified 

Flash_If.c :

#define STM32L1XX_HD -> STM32L1XX_XL
0x0802FF00 -> 0x0803FF00

0x08030000 -> 0x08040000

 

Flash_if.h

#define STM32L1XX_HD -> STM32L1XX_XL
#define APPLICATION_ADDRESS   (uint32_t)0x08003000 -> #define APPLICATION_ADDRESS   (uint32_t)0x08004000


#define USER_FLASH_LAST_PAGE_ADDRESS  0x0805FF00 -> #define USER_FLASH_LAST_PAGE_ADDRESS 
0x0807FF00


#define USER_FLASH_END_ADDRESS        0x0805FFFF -> #define USER_FLASH_END_ADDRESS        0x0807FFFF


What should I do additionally ?

Outcomes