Mercurial > public > ostc4
comparison BootLoader/Src/base_bootlader.c @ 1003:f1b78bc8de10 BootloaderOstc5
Bootloader improve init sequence:
Initialization of the BT module failed with the previous version. Root cause could be that the commands were send to fast to the module and the error counter expired before the configuration was stored. To avoid this problem a timer has been added which delays the transmission of commands by 100ms.
| author | Ideenmodellierer |
|---|---|
| date | Thu, 01 May 2025 17:52:17 +0200 |
| parents | 39f28cd9dc46 |
| children | 4ef0511c6665 |
comparison
equal
deleted
inserted
replaced
| 1002:23e94766d00a | 1003:f1b78bc8de10 |
|---|---|
| 221 #include "stm32f4xx_hal.h" | 221 #include "stm32f4xx_hal.h" |
| 222 #include "stm32f4xx_hal_rcc.h" | 222 #include "stm32f4xx_hal_rcc.h" |
| 223 #include "stm32f4xx_hal_flash_ex.h" | 223 #include "stm32f4xx_hal_flash_ex.h" |
| 224 #include "stm32f4xx_hal_wwdg.h" | 224 #include "stm32f4xx_hal_wwdg.h" |
| 225 | 225 |
| 226 //#include "Fonts/Font_T144_plus.h" | |
| 227 #include "Fonts/Font_T84.h" | |
| 228 #include "Fonts/Font_T105.h" | |
| 229 #include "Fonts/Font_T54.h" | |
| 230 #include "Fonts/Font_T48_plus.h" | 226 #include "Fonts/Font_T48_plus.h" |
| 231 #include "Fonts/Font_T24.h" | 227 #include "font_T24_min.h" |
| 232 #include "Fonts/Font_T42.h" | |
| 233 #include "Fonts/image_battery.h" | 228 #include "Fonts/image_battery.h" |
| 234 #include "Fonts/image_heinrichs_weikamp.h" | 229 #include "Fonts/image_heinrichs_weikamp.h" |
| 235 #include "Fonts/image_ostc.h" | 230 #include "Fonts/image_ostc.h" |
| 236 | 231 |
| 237 // From Discovery/Inc (shall be shared...) | 232 // From Discovery/Inc (shall be shared...) |
| 413 HAL_GPIO_WritePin(GPIOG,GPIO_PIN_7,GPIO_PIN_RESET); | 408 HAL_GPIO_WritePin(GPIOG,GPIO_PIN_7,GPIO_PIN_RESET); |
| 414 HAL_GPIO_WritePin(GPIOA,GPIO_PIN_3,GPIO_PIN_SET); | 409 HAL_GPIO_WritePin(GPIOA,GPIO_PIN_3,GPIO_PIN_SET); |
| 415 HAL_Delay(10); | 410 HAL_Delay(10); |
| 416 } | 411 } |
| 417 } | 412 } |
| 418 | |
| 419 | 413 |
| 420 int __attribute__((optimize("O0"))) main(void) | 414 int __attribute__((optimize("O0"))) main(void) |
| 421 { | 415 { |
| 422 | 416 |
| 423 /* | 417 /* |
