Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of IAP_internal_flash_write by
Revision 10:f3e4dd858adb, committed 2016-04-30
- Comitter:
- va009039
- Date:
- Sat Apr 30 05:20:59 2016 +0000
- Parent:
- 9:ae7747b119c1
- Commit message:
- add Nucleo-L031K6
Changed in this revision
--- a/STM32_IAP.lib Mon Apr 11 20:18:58 2016 +0900 +++ b/STM32_IAP.lib Sat Apr 30 05:20:59 2016 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/va009039/code/STM32_IAP/#a0c5bb26d159 +https://developer.mbed.org/users/va009039/code/STM32_IAP/#fd6a08b46228
--- a/main.cpp Mon Apr 11 20:18:58 2016 +0900
+++ b/main.cpp Sat Apr 30 05:20:59 2016 +0000
@@ -69,6 +69,15 @@
}
} sector_start_adress;
+#elif defined(TARGET_NUCLEO_L031K6)
+#define TARGET_SECTOR (0x7800/FLASH_PAGE_SIZE)
+#define TARGET_EEPROM_ADDRESS (DATA_EEPROM_BASE + 0x200)
+struct {
+ char* operator[](int sector) const {
+ return reinterpret_cast<char*>(FLASH_BASE + sector * FLASH_PAGE_SIZE);
+ }
+} sector_start_adress;
+
#elif defined(TARGET_NUCLEO_F401RE)||defined(TARGET_NUCLEO_F411RE)||defined(TARGET_NUCLEO_F446RE)
#define TARGET_SECTOR 3
struct {
@@ -165,7 +174,7 @@
#endif
-#if defined(TARGET_LPC11UXX)||defined(TARGET_STM32L1) // SAMPLE OF EEPROM ACCESS (LPC11U24 only)
+#if defined(TARGET_LPC11UXX)||defined(TARGET_STM32L1)||defined(TARGET_STM32L0) // SAMPLE OF EEPROM ACCESS (LPC11U24 only)
printf( "IAP: EEPROM writing test\r\n" );
char mem2[ MEM_SIZE ];
--- a/mbed.bld Mon Apr 11 20:18:58 2016 +0900 +++ b/mbed.bld Sat Apr 30 05:20:59 2016 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/99a22ba036c9 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/aae6fcc7d9bb \ No newline at end of file
