Merge pull request #1765 from uestczyh222/stm32h743-nucleo

[Bsp][stm32h743-nucleo] fix build error with gcc
This commit is contained in:
Bernard Xiong
2018-09-03 14:00:23 +08:00
committed by GitHub
10 changed files with 620 additions and 241 deletions
+1
View File
@@ -79,6 +79,7 @@ env:
- RTT_BSP='stm32f429-disco' RTT_TOOL_CHAIN='sourcery-arm'
- RTT_BSP='stm32l475-iot-disco' RTT_TOOL_CHAIN='sourcery-arm'
- RTT_BSP='stm32l476-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
- RTT_BSP='stm32h743-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
# - RTT_BSP='taihu' RTT_TOOL_CHAIN='sourcery-ppc'
# - RTT_BSP='upd70f3454' # iar
# - RTT_BSP='x86' # x86
+1 -1
View File
@@ -44,7 +44,7 @@ if PLATFORM == 'gcc':
OBJDUMP = PREFIX + 'objdump'
OBJCPY = PREFIX + 'objcopy'
DEVICE = ' -mcpu=cortex-m0+ -mthumb -ffunction-sections -fdata-sections'
DEVICE = ' -mcpu=cortex-m0plus -mthumb -ffunction-sections -fdata-sections'
CFLAGS = DEVICE
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-MKL15Z128.map,-cref,-u,Reset_Handler -T MKL15Z128_FLASH.ld'
File diff suppressed because it is too large Load Diff
+25
View File
@@ -0,0 +1,25 @@
mainmenu "RT-Thread Configuration"
config $BSP_DIR
string
option env="BSP_ROOT"
default "."
config $RTT_DIR
string
option env="RTT_ROOT"
default "../.."
config $PKGS_DIR
string
option env="PKGS_ROOT"
default "packages"
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config RT_USING_UART1
bool "Using uart1"
select RT_USING_SERIAL
default y
+2 -27
View File
@@ -23,35 +23,10 @@
* 2014-04-27 Bernard make code cleanup.
* 2017-08-25 LongfeiMa transplantation for stm32h7xx
*/
#include <rthw.h>
#include <rtthread.h>
#include "board.h"
#include <stm32h7xx.h>
#include "lan8742a.h"
#include "netif/ethernetif.h"
#include <stdio.h>
int main(void)
{
// rt_kprintf("here we are in the main \r\n");
/* LwIP Initialization */
#ifdef RT_USING_LWIP
{
// extern void lwip_sys_init(void);
// eth_system_device_init();
/* register ethernetif device */
// rt_hw_lan8742a_init();
/* init lwip system */
// lwip_sys_init();
rt_kprintf("TCP/IP initialized!\n");
}
#endif
return 0;
}
+10 -1
View File
@@ -1,8 +1,17 @@
from building import *
cwd = GetCurrentDir()
src = Glob('*.c')
src = Split("""
board.c
stm32h7xx_it.c
drv_mpu.c
""")
if GetDepend(['RT_USING_SERIAL']):
src += ['drv_usart.c']
if GetDepend('RT_USING_LWIP'):
src += ['lan8742a.c']
CPPPATH = [cwd]
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -43,7 +43,7 @@ if PLATFORM == 'gcc':
STRIP = PREFIX + 'strip'
DEVICE = ' -mcpu=cortex-m7 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -ffunction-sections -fdata-sections'
CFLAGS = DEVICE + ' -g -Wall -DSTM32H743xx -DUSE_HAL_DRIVER -D__ASSEMBLY__ -D__FPU_USED -eentry'
CFLAGS = DEVICE + ' -g -Wall -DSTM32H743xx -DUSE_HAL_DRIVER -D__ASSEMBLY__ -eentry'
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
LFLAGS = DEVICE + ' -lm -lgcc -lc' + ' -nostartfiles -Wl,--gc-sections,-Map=rtthread_stm32h7xx.map,-cref,-u,Reset_Handler -T rtthread-stm32h7xx.ld'