Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error luminousbee5 , using OSCILLATOR_HZ 24Mhz in the hwdef #23924

Closed
DavideLentini opened this issue May 30, 2023 · 2 comments
Closed

Comments

@DavideLentini
Copy link
Contributor

Bug report

Issue details

When I compile the firmware for the luminousbee5 board in the "master" branch. , this error is returned :

../../libraries/AP_HAL_ChibiOS/system.cpp:58:61: error: static assertion failed: unexpected STM32_SDMMC1CLK value: '(((240000U / 3) * 120) / 10)'
   58 | #define ASSERT_CLOCK(clk) static_assert(HAL_EXPECTED_ ##clk == (clk), "unexpected " #clk " value: '" EXPAND_AND_QUOTE(clk) "'")
../../libraries/AP_HAL_ChibiOS/system.cpp:67:1: note: in expansion of macro 'ASSERT_CLOCK'
   67 | ASSERT_CLOCK(STM32_SDMMC1CLK);
      | ^~~~~~~~~~~~

It seems that the problem is due to this definition in the hwdef :


Thanks to @andyp1per help , there seems to be a bug in the clock tree , which creates a compile error with the 24Mhz frequency . I tried setting it to 16Mhz and the error no longer prints. Thanks All .

Version
master
Platform
[ ] All
[ ] AntennaTracker
[ X ] Copter
[ ] Plane
[ ] Rover
[ ] Submarine

@DavideLentini DavideLentini changed the title Compilation error luminousbee5 , using OSCILLATOR_HZ 240000 in the hwdef Compilation error luminousbee5 , using OSCILLATOR_HZ 24Mhz in the hwdef May 30, 2023
@DavideLentini
Copy link
Contributor Author

@peterbarker
Can this issue be added back to the dev call topic tag ? I would need to understand where the issue is and help from the developers would be very helpful.

@DavideLentini
Copy link
Contributor Author

Resolved with this PR , thanks guys :
#24101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants