新手入门
- 积分
- 6
- 金钱
- 6
- 注册时间
- 2024-4-1
- 在线时间
- 0 小时
|
5金钱
用的是STM32CubeIDE想把数组加载到RAM_D3中,__attribute__((section(".RAM_D3"))) uint8_t key[8] = {0,1,2,3,4,5,6,7 };
08:13:22 **** 项目H750VBT6配置Debug的增量构建 ****
make -j8 all
arm-none-eabi-gcc "../Core/Src/main.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H750xx -c -I../Core/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/Src/main.d" -MT"Core/Src/main.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Core/Src/main.o"
../Core/Src/main.c: In function 'main':
../Core/Src/main.c:100:47: error: section attribute cannot be specified for local variables 100 | __attribute__((section(".RAM_D3"))) uint8_t key[8] = {0,1,2,3,4,5,6,7 };
| ^~~
../Core/Src/main.c:100:47: warning: unused variable 'key' [-Wunused-variable] make: *** [Core/Src/subdir.mk:43: Core/Src/main.o] Error 1 "make -j8 all"以退出代码2结尾。构建可能不完整。
08:13:23 构建失败。 2 错误,1 警告。 (使用1s.174ms)
|
|