Browse Source

Merge pull request #1100 from SummerGGift/stm32f429_flash

 [BSP]: fix eth init error && add stm32f429_flash.sct for stm32f429-apollo bsp
Bernard Xiong 7 years ago
parent
commit
f4353bec2f
2 changed files with 16 additions and 1 deletions
  1. 1 1
      bsp/stm32f429-apollo/drivers/drv_eth.c
  2. 15 0
      bsp/stm32f429-apollo/stm32f429_flash.sct

+ 1 - 1
bsp/stm32f429-apollo/drivers/drv_eth.c

@@ -589,4 +589,4 @@ static int rt_hw_stm32_eth_init(void)
 	
     return state;
 }
-INIT_DEVICE_EXPORT(rt_hw_stm32_eth_init);
+INIT_APP_EXPORT(rt_hw_stm32_eth_init);

+ 15 - 0
bsp/stm32f429-apollo/stm32f429_flash.sct

@@ -0,0 +1,15 @@
+; *************************************************************
+; *** Scatter-Loading Description File generated by uVision ***
+; *************************************************************
+
+LR_IROM1 0x08000000 0x00100000  {    ; load region size_region
+  ER_IROM1 0x08000000 0x00100000  {  ; load address = execution address
+   *.o (RESET, +First)
+   *(InRoot$$Sections)
+   .ANY (+RO)
+  }
+  RW_IRAM1 0x20000000 0x00030000  {  ; RW data
+   .ANY (+RW +ZI)
+  }
+}
+