-
Notifications
You must be signed in to change notification settings - Fork 1k
feat: Blues Heron (STM32U575CIT6) #2873
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
base: main
Are you sure you want to change the base?
Conversation
ac21877 to
016df1b
Compare
832bf50 to
c25c5b3
Compare
|
@fpistm Does the ST Low Power Library work with the U5? All my tests are passing, except I cannot achieve Low Power using the same sketch I use on both the Cygnet and Swan. Do you see anything wrong with my board configuration that would prevent me from achieving low power? |
As far as I remember, yes it works. Anyway it is possible that a bug or a missing configuration exist. Like for the USB part. |
| Blues.menu.dbg.enable_all=Core Logs and Symbols Enabled (-g) | ||
| Blues.menu.dbg.enable_all.build.flags.debug=-g | ||
| Blues.menu.dbg.enable_sym=Symbols Enabled (-g) | ||
| Blues.menu.dbg.enable_sym.build.flags.debug=-g -DNDEBUG | ||
| Blues.menu.dbg.enable_log=Core logs Enabled | ||
| Blues.menu.dbg.enable_log.build.flags.debug= | ||
| Blues.menu.dbg.enable_all=Core Logs and Symbols Enabled (-g) | ||
| Blues.menu.dbg.enable_all.build.flags.debug=-g | ||
| Blues.menu.dbg.none=None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't recommend to change this order.
If you need to debug, the correct way is to enable the "Optimize for debugging" in the Arduino IDE menu. Then debug and symbol is activated.
Else this mean by default binary is more fat.
| | :----: | :-------: | ---- | :-----: | :---- | | ||
| | :green_heart: | STM32L4R5ZIYx | [Swan R5](https://blues.com/products/swan) | *2.1.0* | | | ||
| | :green_heart: | STM32L433CC | [Cygnet](https://blues.com/products) | *2.8.0* | | | ||
| | :yellow_heart: | STM32U575CITx | [Heron](https://blues.com/products) | *2.12.0* | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | :yellow_heart: | STM32U575CITx | [Heron](https://blues.com/products) | *2.12.0* | | | |
| | :yellow_heart: | STM32U575CITx | [Heron](https://blues.com/products) | **2.12.0** | | |
| Blues.menu.opt.ogstd=Debug (-Og) | ||
| Blues.menu.opt.ogstd.build.flags.optimize=-Og | ||
| Blues.menu.opt.osstd=Smallest (-Os default) | ||
| Blues.menu.opt.oslto=Smallest (-Os) with LTO | ||
| Blues.menu.opt.oslto.build.flags.optimize=-Os -flto | ||
| Blues.menu.opt.o0std=No Optimization (-O0) | ||
| Blues.menu.opt.o0std.build.flags.optimize=-O0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I advise to not change order.
If you need to debug, the correct way is to enable the "Optimize for debugging" in the Arduino IDE menu. Then debug and symbol is activated.
| #define PA0 PIN_A0 // A0/D0 | ||
| #define PA1 PIN_A1 // A1/D1 | ||
| #define PA2 PIN_A2 // A2/D2 | ||
| #define PA3 PIN_A3 // A3/D3 | ||
| #define PA4 PIN_A8 // A8/BATTERY_VOLTAGE (STAT) | ||
| #define PA5 25 // USART3_VCP_RX | ||
| #define PA6 PIN_A6 // A6/MI | ||
| #define PA7 PIN_A5 // A5 | ||
| #define PA8 7 // LED_BUILTIN | ||
| #define PA9 19 // TX | ||
| #define PA10 18 // RX | ||
| #define PA11 32 // USB_D_N | ||
| #define PA12 33 // USB_D_P | ||
| #define PA13 23 // SWDIO | ||
| #define PA14 24 // SWCLK | ||
| #define PA15 29 // CHARGE_DETECT | ||
| #define PB0 PIN_A7 // A7/D11 | ||
| #define PB1 PIN_A4 // A4/D4 | ||
| #define PB2 31 // USB_DETECT | ||
| #define PB3 15 // CK | ||
| #define PB4 13 // D13 | ||
| #define PB5 16 // MO | ||
| #define PB6 21 // SCL | ||
| #define PB7 22 // SDA | ||
| #define PB8 5 // D5 | ||
| #define PB9 6 // D6 | ||
| #define PB10 26 // USART3_VCP_TX | ||
| #define PB13 10 // D10 | ||
| #define PB14 9 // D9 | ||
| #define PB15 12 // D12 | ||
| #define PC13 8 // USER_BTN | ||
| #define PC14 34 // OSC32_IN (LSE) | ||
| #define PC15 35 // OSC32_OUT (LSE) | ||
| #define PH0 27 // ENABLE_3V3 | ||
| #define PH1 28 // DISCHARGE_3V3 | ||
| #define PH3 20 // B |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hard to check if all pin have an unique number as not ordered. Anyway I guess you have tested.
You can use this example to check if definition is correct:
https://github.com/stm32duino/STM32Examples/tree/main/examples/NonReg/CheckVariant
| RCC_OscInitStruct.MSIState = RCC_MSI_ON; | ||
| RCC_OscInitStruct.MSIClockRange = RCC_MSIRANGE_0; // 100 kHz initially (will be overridden later) | ||
| RCC_OscInitStruct.MSICalibrationValue = RCC_MSICALIBRATION_DEFAULT; | ||
| RCC_OscInitStruct.HSI48State = RCC_HSI48_ON; // Critical for USB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only of you left the CLK48 clk mux by default (HSI48).
As in your case you do not used PLL the only way is effectively HSI48 or maybe set MSK at 48000.
No description provided.