2023-02-07 12:11 AM
This is really a basic question, but nevertheless I haven't found an answer.
I am confused primarily about visualization of PB8 and PG10 pins inside CubeIDE MX.
When I create new project I would expect PB8 and PG10 looking "yellow" and also being defined as PB8-BOOT0 and PG10-NRST (second picture from web).
The problem is that they don't look yellow, but grey (first picture from my new project). I also can't choose BOOT0 or NRST function for those pins.
Am i wrong, if I assume that because they are grey, they are in their reset state and their reset state is: PB8-BOOT0 and PG10-NRST. Therefore there will not be any functional problem, as I want to have PB8-BOOT0 and PG10-NRST functionality. And the color mismatch is just some MX bug/new feature?
Solved! Go to Solution.
2023-02-07 02:26 AM
G4 series is very different from F1. BOOT0 and NRST functions are configured in the chip using option bytes programming to have more GPIO available. See reference manual 3.4 FLASH option bytes. Use STM32CubeProgrammer to get/set those values.
hth
KnarfB
2023-02-07 02:26 AM
G4 series is very different from F1. BOOT0 and NRST functions are configured in the chip using option bytes programming to have more GPIO available. See reference manual 3.4 FLASH option bytes. Use STM32CubeProgrammer to get/set those values.
hth
KnarfB
2023-02-07 04:29 AM
Thank you for your answer.
I found some decent explanation inside reference manual GPIO section, but i still dont understand it fully. How do you to set PB8 as GPIO?
It is better explained aroud PG10 pin; If i want to use PG10 as GPIO I have to write bitfield NRST_MODE = 2? What would happen if I would leave NRST_MODE as default (NRST_MODE = 3) and inside MX define PG10 as DAC1_EXTI10, this could be useful, but is this kind of doing encouraged or not (having two functions)?