helpfor studient

Dependents:   STM32_F103-C8T6basecanblink_led

Fork of mbed-dev by mbed official

Revision:
185:08ed48f1de7f
Parent:
163:74e0ce7f98e8
diff -r 5166a824ec1a -r 08ed48f1de7f targets/TARGET_NUVOTON/TARGET_M451/flash_api.c
--- a/targets/TARGET_NUVOTON/TARGET_M451/flash_api.c	Tue Mar 20 17:01:51 2018 +0000
+++ b/targets/TARGET_NUVOTON/TARGET_M451/flash_api.c	Thu Apr 19 17:12:19 2018 +0100
@@ -65,7 +65,8 @@
 };
 
 static const flash_target_config_t flash_target_config = {
-    .page_size  = 0x800,    // 2 KB
+    .page_size  = 4,        // 4 bytes
+                            // Here page_size is program unit, which is different than FMC definition.
     .flash_start = 0x0,
     .flash_size = 0x40000,  // 256 KB
     .sectors = sectors_info,