rename board name 'rv32m1_vega' as 'rv32m1-vega'
This commit is contained in:
@@ -41,9 +41,9 @@ make BOARD=stm32f407zgt6 menuconfig
|
||||
```
|
||||
make BOARD=stm32f407zgt6
|
||||
```
|
||||
>5.如果编译正确无误,会产生XiZi_stm32f407zgt6.elf、XiZi_stm32f407zgt6.bin文件。其中XiZi_stm32f407zgt6.bin需要烧写到设备中进行运行。
|
||||
>5.如果编译正确无误,会产生XiZi-stm32f407zgt6.elf、XiZi-stm32f407zgt6.bin文件。其中XiZi-stm32f407zgt6.bin需要烧写到设备中进行运行。
|
||||
```
|
||||
sudo write build/XiZi_stm32f407zgt6.bin 0x8000000
|
||||
sudo write build/XiZi-stm32f407zgt6.bin 0x8000000
|
||||
```
|
||||
>6.最后可以执行以下命令,清除配置文件和编译生成的文件
|
||||
```
|
||||
@@ -71,7 +71,7 @@ git clone https://github.com/texane/stlink.git
|
||||
|
||||
在代码根目录下执行st-flash工具烧录
|
||||
```
|
||||
sudo st-flash write build/XiZi_stm32f407zgt6.bin 0x8000000
|
||||
sudo st-flash write build/XiZi-stm32f407zgt6.bin 0x8000000
|
||||
```
|
||||
### 3.1 运行结果
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ export AFLAGS := -c -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -
|
||||
export LFLAGS := -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -Wl,--gc-sections,-Map=XiZi.map,-cref,-u,Reset_Handler -T $(BSP_ROOT)/link.lds
|
||||
export CXXFLAGS := -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -Dgcc -O0 -gdwarf-2 -g -Werror
|
||||
|
||||
export APPLFLAGS := -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -Wl,--gc-sections,-Map=XiZi_app.map,-cref,-u, -T $(BSP_ROOT)/link_userspace.lds
|
||||
export APPLFLAGS := -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -Wl,--gc-sections,-Map=XiZi-app.map,-cref,-u, -T $(BSP_ROOT)/link_userspace.lds
|
||||
|
||||
export DEFINES := -DHAVE_CCONFIG_H -DSTM32F407xx -DUSE_HAL_DRIVER -DHAVE_SIGINFO
|
||||
|
||||
|
||||
Reference in New Issue
Block a user