Nemáte někdo odkazy na YouTube na tutoriály v českém jazyce kde se mohu naučit s tímto pracovat například na kitu STM32F0DISCOVERY rozsvítit ledky ,obsluhovat user button nebo ADC převodník vypisovat po sériové lince Anglicky bohužel neumím

Kód: Vybrat vše
14:07:40 **** Incremental Build of configuration Debug for project Kniha_LED ****
make -j4 all
arm-none-eabi-gcc "../Core/Src/main.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F100xB -c -I../Core/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Core/Src/main.d" -MT"Core/Src/main.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Core/Src/main.o"
../Core/Src/main.c: In function 'main':
../Core/Src/main.c:96:22: error: 'PC8' undeclared (first use in this function)
96 | HAL_GPIO_WritePin(PC8,LD4[Blue], GPIO_PIN_RESET);
| ^~~
../Core/Src/main.c:96:22: note: each undeclared identifier is reported only once for each function it appears in
../Core/Src/main.c:96:26: error: 'LD4' undeclared (first use in this function)
96 | HAL_GPIO_WritePin(PC8,LD4[Blue], GPIO_PIN_RESET);
| ^~~
../Core/Src/main.c:96:30: error: 'Blue' undeclared (first use in this function)
96 | HAL_GPIO_WritePin(PC8,LD4[Blue], GPIO_PIN_RESET);
| ^~~~
make: *** [Core/Src/subdir.mk:34: Core/Src/main.o] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.
14:07:41 Build Failed. 4 errors, 0 warnings. (took 471ms)
Kód: Vybrat vše
/**
* @brief Sets or clears the selected data port bit.
*
* @note This function uses GPIOx_BSRR register to allow atomic read/modify
* accesses. In this way, there is no risk of an IRQ occurring between
* the read and the modify access.
*
* @param GPIOx: where x can be (A..G depending on device used) to select the GPIO peripheral
* @param GPIO_Pin: specifies the port bit to be written.
* This parameter can be one of GPIO_PIN_x where x can be (0..15).
* @param PinState: specifies the value to be written to the selected bit.
* This parameter can be one of the GPIO_PinState enum values:
* @arg GPIO_PIN_RESET: to clear the port pin
* @arg GPIO_PIN_SET: to set the port pin
* @retval None
*/
void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
{
Kód: Vybrat vše
HAL_GPIO_WritePin(LD4_BLUE_GPIO_Port, LD4_BLUE_Pin, 0); //pin do L
HAL_GPIO_WritePin(LD4_BLUE_GPIO_Port, LD4_BLUE_Pin, 1); //pin do H
Kód: Vybrat vše
21:19:36 **** Incremental Build of configuration Debug for project Kniha_LED ****
make -j4 all
arm-none-eabi-gcc "../Core/Src/main.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F100xB -c -I../Core/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Core/Src/main.d" -MT"Core/Src/main.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Core/Src/main.o"
../Core/Src/main.c: In function 'main':
../Core/Src/main.c:96:22: error: 'LD4_BLUE_GPIO_Port' undeclared (first use in this function); did you mean 'LD4_GPIO_Port'?
96 | HAL_GPIO_WritePin(LD4_BLUE_GPIO_Port, LD4_BLUE_Pin, 0); //pin do L
| ^~~~~~~~~~~~~~~~~~
| LD4_GPIO_Port
../Core/Src/main.c:96:22: note: each undeclared identifier is reported only once for each function it appears in
../Core/Src/main.c:96:42: error: 'LD4_BLUE_Pin' undeclared (first use in this function)
96 | HAL_GPIO_WritePin(LD4_BLUE_GPIO_Port, LD4_BLUE_Pin, 0); //pin do L
| ^~~~~~~~~~~~
make: *** [Core/Src/subdir.mk:34: Core/Src/main.o] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.
21:19:37 Build Failed. 3 errors, 0 warnings. (took 1s.454ms)
Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 0 hostů