diff options
| author | Bernard Xiong <[email protected]> | 2017-12-13 09:56:43 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-12-13 09:56:43 +0800 |
| commit | f4353bec2f07aaa00b9d958724ae649b0734f3c4 (patch) | |
| tree | e90dc156215408b79a98d68dc8a154a951932045 | |
| parent | 42692c45ca463935b13546607dcb8dcde2b9820d (diff) | |
| parent | 124d2e17900aad03b2a2c4e27167aaa550e28463 (diff) | |
Merge pull request #1100 from SummerGGift/stm32f429_flash
[BSP]: fix eth init error && add stm32f429_flash.sct for stm32f429-apollo bsp
| -rw-r--r-- | bsp/stm32f429-apollo/drivers/drv_eth.c | 2 | ||||
| -rw-r--r-- | bsp/stm32f429-apollo/stm32f429_flash.sct | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/bsp/stm32f429-apollo/drivers/drv_eth.c b/bsp/stm32f429-apollo/drivers/drv_eth.c index 56dd2cc2d8..78e2342c0f 100644 --- a/bsp/stm32f429-apollo/drivers/drv_eth.c +++ b/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); diff --git a/bsp/stm32f429-apollo/stm32f429_flash.sct b/bsp/stm32f429-apollo/stm32f429_flash.sct new file mode 100644 index 0000000000..27fcd9f6c7 --- /dev/null +++ b/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)
+ }
+}
+
|
