168 lines
12 KiB
Plaintext
168 lines
12 KiB
Plaintext
06:00:50 **** Incremental Build of configuration Debug for project Calculator ****
|
|
make -j8 all
|
|
arm-none-eabi-gcc "../Core/Src/main.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F429xx -c -I../Core/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Drivers/CMSIS/Device/ST/STM32F4xx/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=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Core/Src/main.o"
|
|
arm-none-eabi-gcc "../Core/Src/userloop.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F429xx -c -I../Core/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/Src/userloop.d" -MT"Core/Src/userloop.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Core/Src/userloop.o"
|
|
../Core/Src/userloop.c: In function 'userloop':
|
|
../Core/Src/userloop.c:9:9: error: unknown type name 'bool'
|
|
9 | bool A_pressed = (HAL_GPIO_ReadPin(GPIOE, GPIO_PIN_7) == GPIO_PIN_SET);
|
|
| ^~~~
|
|
../Core/Src/userloop.c:1:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
|
|
+++ |+#include <stdbool.h>
|
|
1 | /*
|
|
../Core/Src/userloop.c:9:27: warning: implicit declaration of function 'HAL_GPIO_ReadPin' [-Wimplicit-function-declaration]
|
|
9 | bool A_pressed = (HAL_GPIO_ReadPin(GPIOE, GPIO_PIN_7) == GPIO_PIN_SET);
|
|
| ^~~~~~~~~~~~~~~~
|
|
../Core/Src/userloop.c:9:44: error: 'GPIOE' undeclared (first use in this function)
|
|
9 | bool A_pressed = (HAL_GPIO_ReadPin(GPIOE, GPIO_PIN_7) == GPIO_PIN_SET);
|
|
| ^~~~~
|
|
../Core/Src/userloop.c:9:44: note: each undeclared identifier is reported only once for each function it appears in
|
|
../Core/Src/userloop.c:9:51: error: 'GPIO_PIN_7' undeclared (first use in this function)
|
|
9 | bool A_pressed = (HAL_GPIO_ReadPin(GPIOE, GPIO_PIN_7) == GPIO_PIN_SET);
|
|
| ^~~~~~~~~~
|
|
../Core/Src/userloop.c:9:66: error: 'GPIO_PIN_SET' undeclared (first use in this function)
|
|
9 | bool A_pressed = (HAL_GPIO_ReadPin(GPIOE, GPIO_PIN_7) == GPIO_PIN_SET);
|
|
| ^~~~~~~~~~~~
|
|
../Core/Src/userloop.c:10:9: error: unknown type name 'bool'
|
|
10 | bool B_pressed = (HAL_GPIO_ReadPin(GPIOE, GPIO_PIN_9) == GPIO_PIN_SET);
|
|
| ^~~~
|
|
../Core/Src/userloop.c:10:9: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
|
|
../Core/Src/userloop.c:10:51: error: 'GPIO_PIN_9' undeclared (first use in this function)
|
|
10 | bool B_pressed = (HAL_GPIO_ReadPin(GPIOE, GPIO_PIN_9) == GPIO_PIN_SET);
|
|
| ^~~~~~~~~~
|
|
../Core/Src/userloop.c:12:39: error: 'true' undeclared (first use in this function)
|
|
12 | if (A_pressed && B_pressed == true)
|
|
| ^~~~
|
|
../Core/Src/userloop.c:12:39: note: 'true' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
|
|
../Core/Src/userloop.c:14:17: warning: implicit declaration of function 'HAL_GPIO_WritePin' [-Wimplicit-function-declaration]
|
|
14 | HAL_GPIO_WritePin(GPIOA, GPIO_PIN_1, GPIO_PIN_SET);
|
|
| ^~~~~~~~~~~~~~~~~
|
|
../Core/Src/userloop.c:14:35: error: 'GPIOA' undeclared (first use in this function)
|
|
14 | HAL_GPIO_WritePin(GPIOA, GPIO_PIN_1, GPIO_PIN_SET);
|
|
| ^~~~~
|
|
../Core/Src/userloop.c:14:42: error: 'GPIO_PIN_1' undeclared (first use in this function)
|
|
14 | HAL_GPIO_WritePin(GPIOA, GPIO_PIN_1, GPIO_PIN_SET);
|
|
| ^~~~~~~~~~
|
|
../Core/Src/userloop.c:17:54: error: 'GPIO_PIN_RESET' undeclared (first use in this function)
|
|
17 | HAL_GPIO_WritePin(GPIOA, GPIO_PIN_1, GPIO_PIN_RESET);
|
|
| ^~~~~~~~~~~~~~
|
|
../Core/Src/userloop.c:20:9: warning: implicit declaration of function 'HAL_DELAY' [-Wimplicit-function-declaration]
|
|
20 | HAL_DELAY(DELAY_MS); // milliseconds
|
|
| ^~~~~~~~~
|
|
make: *** [Core/Src/subdir.mk:43: Core/Src/userloop.o] Error 1
|
|
make: *** Waiting for unfinished jobs....
|
|
../Core/Src/main.c:54:1: error: unknown type name 'SDRAM_HandleTypeDef'; did you mean 'DMA_HandleTypeDef'?
|
|
54 | SDRAM_HandleTypeDef hsdram1;
|
|
| ^~~~~~~~~~~~~~~~~~~
|
|
| DMA_HandleTypeDef
|
|
../Core/Src/main.c: In function 'main':
|
|
../Core/Src/main.c:155:11: warning: implicit declaration of function 'userloop' [-Wimplicit-function-declaration]
|
|
155 | userloop(200); // 200 millisecond delay before repeat
|
|
| ^~~~~~~~
|
|
../Core/Src/main.c: In function 'MX_FMC_Init':
|
|
../Core/Src/main.c:403:3: error: unknown type name 'FMC_SDRAM_TimingTypeDef'
|
|
403 | FMC_SDRAM_TimingTypeDef SdramTiming = {0};
|
|
| ^~~~~~~~~~~~~~~~~~~~~~~
|
|
../Core/Src/main.c:411:10: error: request for member 'Instance' in something not a structure or union
|
|
411 | hsdram1.Instance = FMC_SDRAM_DEVICE;
|
|
| ^
|
|
../Core/Src/main.c:411:22: error: 'FMC_SDRAM_DEVICE' undeclared (first use in this function); did you mean 'FMC_SDRTR_REIE'?
|
|
411 | hsdram1.Instance = FMC_SDRAM_DEVICE;
|
|
| ^~~~~~~~~~~~~~~~
|
|
| FMC_SDRTR_REIE
|
|
../Core/Src/main.c:411:22: note: each undeclared identifier is reported only once for each function it appears in
|
|
../Core/Src/main.c:413:10: error: request for member 'Init' in something not a structure or union
|
|
413 | hsdram1.Init.SDBank = FMC_SDRAM_BANK2;
|
|
| ^
|
|
../Core/Src/main.c:413:25: error: 'FMC_SDRAM_BANK2' undeclared (first use in this function)
|
|
413 | hsdram1.Init.SDBank = FMC_SDRAM_BANK2;
|
|
| ^~~~~~~~~~~~~~~
|
|
../Core/Src/main.c:414:10: error: request for member 'Init' in something not a structure or union
|
|
414 | hsdram1.Init.ColumnBitsNumber = FMC_SDRAM_COLUMN_BITS_NUM_8;
|
|
| ^
|
|
../Core/Src/main.c:414:35: error: 'FMC_SDRAM_COLUMN_BITS_NUM_8' undeclared (first use in this function)
|
|
414 | hsdram1.Init.ColumnBitsNumber = FMC_SDRAM_COLUMN_BITS_NUM_8;
|
|
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
../Core/Src/main.c:415:10: error: request for member 'Init' in something not a structure or union
|
|
415 | hsdram1.Init.RowBitsNumber = FMC_SDRAM_ROW_BITS_NUM_11;
|
|
| ^
|
|
../Core/Src/main.c:415:32: error: 'FMC_SDRAM_ROW_BITS_NUM_11' undeclared (first use in this function)
|
|
415 | hsdram1.Init.RowBitsNumber = FMC_SDRAM_ROW_BITS_NUM_11;
|
|
| ^~~~~~~~~~~~~~~~~~~~~~~~~
|
|
../Core/Src/main.c:416:10: error: request for member 'Init' in something not a structure or union
|
|
416 | hsdram1.Init.MemoryDataWidth = FMC_SDRAM_MEM_BUS_WIDTH_16;
|
|
| ^
|
|
../Core/Src/main.c:416:34: error: 'FMC_SDRAM_MEM_BUS_WIDTH_16' undeclared (first use in this function); did you mean 'FMC_NAND_MEM_BUS_WIDTH_16'?
|
|
416 | hsdram1.Init.MemoryDataWidth = FMC_SDRAM_MEM_BUS_WIDTH_16;
|
|
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
| FMC_NAND_MEM_BUS_WIDTH_16
|
|
../Core/Src/main.c:417:10: error: request for member 'Init' in something not a structure or union
|
|
417 | hsdram1.Init.InternalBankNumber = FMC_SDRAM_INTERN_BANKS_NUM_4;
|
|
| ^
|
|
../Core/Src/main.c:417:37: error: 'FMC_SDRAM_INTERN_BANKS_NUM_4' undeclared (first use in this function)
|
|
417 | hsdram1.Init.InternalBankNumber = FMC_SDRAM_INTERN_BANKS_NUM_4;
|
|
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
../Core/Src/main.c:418:10: error: request for member 'Init' in something not a structure or union
|
|
418 | hsdram1.Init.CASLatency = FMC_SDRAM_CAS_LATENCY_3;
|
|
| ^
|
|
../Core/Src/main.c:418:29: error: 'FMC_SDRAM_CAS_LATENCY_3' undeclared (first use in this function)
|
|
418 | hsdram1.Init.CASLatency = FMC_SDRAM_CAS_LATENCY_3;
|
|
| ^~~~~~~~~~~~~~~~~~~~~~~
|
|
../Core/Src/main.c:419:10: error: request for member 'Init' in something not a structure or union
|
|
419 | hsdram1.Init.WriteProtection = FMC_SDRAM_WRITE_PROTECTION_DISABLE;
|
|
| ^
|
|
../Core/Src/main.c:419:34: error: 'FMC_SDRAM_WRITE_PROTECTION_DISABLE' undeclared (first use in this function)
|
|
419 | hsdram1.Init.WriteProtection = FMC_SDRAM_WRITE_PROTECTION_DISABLE;
|
|
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
../Core/Src/main.c:420:10: error: request for member 'Init' in something not a structure or union
|
|
420 | hsdram1.Init.SDClockPeriod = FMC_SDRAM_CLOCK_PERIOD_2;
|
|
| ^
|
|
../Core/Src/main.c:420:32: error: 'FMC_SDRAM_CLOCK_PERIOD_2' undeclared (first use in this function)
|
|
420 | hsdram1.Init.SDClockPeriod = FMC_SDRAM_CLOCK_PERIOD_2;
|
|
| ^~~~~~~~~~~~~~~~~~~~~~~~
|
|
../Core/Src/main.c:421:10: error: request for member 'Init' in something not a structure or union
|
|
421 | hsdram1.Init.ReadBurst = FMC_SDRAM_RBURST_DISABLE;
|
|
| ^
|
|
../Core/Src/main.c:421:28: error: 'FMC_SDRAM_RBURST_DISABLE' undeclared (first use in this function)
|
|
421 | hsdram1.Init.ReadBurst = FMC_SDRAM_RBURST_DISABLE;
|
|
| ^~~~~~~~~~~~~~~~~~~~~~~~
|
|
../Core/Src/main.c:422:10: error: request for member 'Init' in something not a structure or union
|
|
422 | hsdram1.Init.ReadPipeDelay = FMC_SDRAM_RPIPE_DELAY_1;
|
|
| ^
|
|
../Core/Src/main.c:422:32: error: 'FMC_SDRAM_RPIPE_DELAY_1' undeclared (first use in this function)
|
|
422 | hsdram1.Init.ReadPipeDelay = FMC_SDRAM_RPIPE_DELAY_1;
|
|
| ^~~~~~~~~~~~~~~~~~~~~~~
|
|
../Core/Src/main.c:424:14: error: request for member 'LoadToActiveDelay' in something not a structure or union
|
|
424 | SdramTiming.LoadToActiveDelay = 2;
|
|
| ^
|
|
../Core/Src/main.c:425:14: error: request for member 'ExitSelfRefreshDelay' in something not a structure or union
|
|
425 | SdramTiming.ExitSelfRefreshDelay = 7;
|
|
| ^
|
|
../Core/Src/main.c:426:14: error: request for member 'SelfRefreshTime' in something not a structure or union
|
|
426 | SdramTiming.SelfRefreshTime = 4;
|
|
| ^
|
|
../Core/Src/main.c:427:14: error: request for member 'RowCycleDelay' in something not a structure or union
|
|
427 | SdramTiming.RowCycleDelay = 7;
|
|
| ^
|
|
../Core/Src/main.c:428:14: error: request for member 'WriteRecoveryTime' in something not a structure or union
|
|
428 | SdramTiming.WriteRecoveryTime = 3;
|
|
| ^
|
|
../Core/Src/main.c:429:14: error: request for member 'RPDelay' in something not a structure or union
|
|
429 | SdramTiming.RPDelay = 2;
|
|
| ^
|
|
../Core/Src/main.c:430:14: error: request for member 'RCDDelay' in something not a structure or union
|
|
430 | SdramTiming.RCDDelay = 2;
|
|
| ^
|
|
../Core/Src/main.c:432:7: warning: implicit declaration of function 'HAL_SDRAM_Init'; did you mean 'HAL_DMA_Init'? [-Wimplicit-function-declaration]
|
|
432 | if (HAL_SDRAM_Init(&hsdram1, &SdramTiming) != HAL_OK)
|
|
| ^~~~~~~~~~~~~~
|
|
| HAL_DMA_Init
|
|
../Core/Src/main.c: In function 'MX_GPIO_Init':
|
|
../Core/Src/main.c:467:24: error: lvalue required as left operand of assignment
|
|
467 | GPIO_InitStruct.Mode = GPIO_MODE_EVT_RISING;
|
|
| ^
|
|
make: *** [Core/Src/subdir.mk:43: Core/Src/main.o] Error 1
|
|
"make -j8 all" terminated with exit code 2. Build might be incomplete.
|
|
|
|
06:00:51 Build Failed. 45 errors, 5 warnings. (took 832ms)
|
|
|