asp3-f767zi's People
asp3-f767zi's Issues
EXC_RETURN_HANDLERの二重定義
ビルド時に多めの警告が表示されます.
arm-none-eabi-gcc -c -o objs/cfg1_out.o -MD -MP -MF objs/cfg1_out.d -O2 -Wall -g -ffunction-sections -fdata-sections -mlittle-endian -nostartfiles -mthumb -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -DSTM32F767ZITx -DSTM32F767xx -DUSE_TIM_AS_HRT -DTOPPERS_CORTEX_M7 -D__TARGET_ARCH_THUMB=4 -D__TARGET_FPU_FPV5_DP -DTOPPERS_FPU_ENABLE -DTOPPERS_FPU_LAZYSTACKING -DTOPPERS_FPU_CONTEXT -I. -I../include -I../target/nucleo_f767zi_gcc -I../target/nucleo_f767zi_gcc/stm32fcube -I../arch/arm_m_gcc/stm32f7xx_stm32cube -I../arch/arm_m_gcc/stm32f7xx_stm32cube/STM32F7xx_HAL_Driver/Inc -I../arch/arm_m_gcc/stm32f7xx_stm32cube/CMSIS/Device/ST/STM32F7xx/Include -I../arch/arm_m_gcc/stm32f7xx_stm32cube/CMSIS/Include -I../arch/arm_m_gcc/common -I../arch/gcc -I.. -I../sample -I./gen -I../tecs_kernel -DTOPPERS_CB_TYPE_ONLY cfg1_out.c
In file included from ../arch/arm_m_gcc/common/core_insn.h:51:0,
from ../arch/arm_m_gcc/common/core_kernel_impl.h:66,
from ../arch/arm_m_gcc/stm32f7xx_stm32cube/chip_kernel_impl.h:62,
from ../target/nucleo_f767zi_gcc/target_kernel_impl.h:97,
from ../kernel/kernel_impl.h:82,
from ../kernel/kernel_int.h:53,
from cfg1_out.c:3:
../arch/arm_m_gcc/common/arm_m.h:69:0: warning: "EXC_RETURN_HANDLER" redefined
#define EXC_RETURN_HANDLER 0x0
In file included from ../arch/arm_m_gcc/stm32f7xx_stm32cube/CMSIS/Device/ST/STM32F7xx/Include/stm32f767xx.h:185:0,
from ../arch/arm_m_gcc/stm32f7xx_stm32cube/CMSIS/Device/ST/STM32F7xx/Include/stm32f7xx.h:134,
from ../arch/arm_m_gcc/stm32f7xx_stm32cube/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_def.h:30,
from ../arch/arm_m_gcc/stm32f7xx_stm32cube/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc.h:29,
from ../target/nucleo_f767zi_gcc/stm32fcube/stm32f7xx_hal_conf.h:269,
from ../arch/arm_m_gcc/stm32f7xx_stm32cube/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal.h:30,
from ../target/nucleo_f767zi_gcc/stm32fcube/stm32f7xx_nucleo_144.h:51,
from ../target/nucleo_f767zi_gcc/nucleo_f767zi.h:69,
from ../target/nucleo_f767zi_gcc/target_kernel_impl.h:50,
from ../kernel/kernel_impl.h:82,
from ../kernel/kernel_int.h:53,
from cfg1_out.c:3:
../arch/arm_m_gcc/stm32f7xx_stm32cube/CMSIS/Include/core_cm7.h:1848:0: note: this is the location of the previous definition
#define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */
ASP3とSTM32Cubeの両者で定義されているためのようです.
asp3-f767zi/arch/arm_m_gcc/common/arm_m.h
Line 69 in a368a1d
ASP3側はarch依存部の共通部分なので悩ましいところですが,他で参照してなさそうなので,ASP3のほうをコメントアウトするのが良さそうな気がします.ただし思わぬ副作用が発生するかもしれません(つまりまるでわからん
なお他でも調べてみたところ,NuttXはSTM32Cubeと同じ定義のようです.FreeRTOSはSTMにベッタリ同梱されているかと.
https://github.com/projectara/nuttx/blob/master/nuttx/arch/arm/src/armv7-m/exc_return.h#L86-L90
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.