request 2 Target for Synerduino boards - #11756
Conversation
Branch Targeting SuggestionYou've targeted the
If This is an automated suggestion to help route contributions to the appropriate branch. |
PR Summary by QodoAdd SYNERDUINO STM32F405 and H743 board targets (HSE 8/25MHz)
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Code Review by Qodo
1. BMI088 not configured
|
| #define USE_DSHOT | ||
| #define USE_ESC_SENSOR | ||
| #define USE_SERIAL_4WAY_BLHELI_INTERFACE | ||
|
|
||
| #define TARGET_IO_PORTA 0xffff | ||
| #define TARGET_IO_PORTB 0xffff | ||
| #define TARGET_IO_PORTC 0xffff | ||
| #define TARGET_IO_PORTD (BIT(2)) | ||
|
|
||
| #define MAX_PWM_OUTPUT_PORTS 10 | ||
|
|
||
| #define USE_SERIAL_4WAY_BLHELI_INTERFACE | ||
| #define USE_DSHOT | ||
| #define USE_DSHOT_DMAR | ||
| #define USE_ESC_SENSOR |
There was a problem hiding this comment.
3. Duplicate feature defines 🐞 Bug ⚙ Maintainability
SYNERDUINOSTM_F405/target.h defines USE_DSHOT, USE_ESC_SENSOR, and USE_SERIAL_4WAY_BLHELI_INTERFACE twice, which is redundant and can produce macro redefinition warnings and maintenance confusion. The duplicates don’t add behavior (the macros are identical) but should be collapsed into a single block.
Agent Prompt
### Issue description
At the end of `SYNERDUINOSTM_F405/target.h`, several feature macros are defined twice (`USE_DSHOT`, `USE_ESC_SENSOR`, `USE_SERIAL_4WAY_BLHELI_INTERFACE`). This duplication is unnecessary and makes future changes error-prone.
### Issue Context
The second block also introduces `USE_DSHOT_DMAR`; keep that functionality but avoid repeating the earlier defines.
### Fix Focus Areas
- src/main/target/SYNERDUINOSTM_F405/target.h[239-253]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
|
Test firmware build ready — commit Download firmware for PR #11756 243 targets built. Find your board's
|
|
Please correct the PLL1 and PLL2 configuration. system_stm32h7xx.c:259): pll1Config->m = HSE_VALUE / 1000000 / 2; only works if HSE is a multiple of 2 MHz. With an HSE of 25 MHz, the existing code will incorrectly configure the PLL1 clocks. VCI will be 2.083 MHz instead of 2MHz, VCO will be 1000 MHz instead of 960 MHz and Sysclk will be 500 MHz instead of 480 MHz. PLL2 had an assert added at system_stm32h7xx.c:500-514, when I fixed the silent bug with the Kakute H7 running at 16 MHz. I knew the code I added only worked for 8 MHz and 16 MHz. At both locations the easiest will be to add this structure: |
@sensei-hacker
here are the request if you can check them out
these are base of the
Weact F405 HSE 8mhz
Weact H743 HSE 25mhz
formerly worked on INAV 9.0.1 however having issues working on INAV 9.1.0