GithubHelp home page GithubHelp logo

yurie / asp3-f767zi Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 30.28 MB

C 62.93% C++ 0.05% Assembly 1.39% HTML 30.42% Python 0.02% JavaScript 1.94% CSS 0.70% Ruby 2.48% HCL 0.01% Makefile 0.05% Shell 0.01% Pawn 0.01%

asp3-f767zi's People

Contributors

takasehideki avatar yurie avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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の両者で定義されているためのようです.

#define EXC_RETURN_HANDLER 0x0

#define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */


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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.