2024-07-10 06:51 AM
Hello everyone,
I am working with the STM32G0B1KEU6 microcontroller, which comes in a 32-pin package featuring only ports A, B, and C. According to AN2606, the internal bootloader uses the following pins:
Given that these specific pins (PD0 and PD1) are not available on my microcontroller, I am curious to know:
Any insights or experiences with similar configurations would be greatly appreciated. Thank you!
Solved! Go to Solution.
2024-07-11 06:02 AM
@EniRot99 wrote:Given that these specific pins (PD0 and PD1) are not available on my microcontroller, I am curious to know:
Are you sure about this? The DS indicates there are two 32-pin variants, and one of them does have PD0/PD1.
And from the ST direct store:
and from CubeMX:
2024-07-10 07:03 AM
> Can the internal bootloader still be utilized without these pins?
No. Only pins and peripherals listed in AN2606 can be used.
> Are there alternative pins that can be used for the bootloader functionality on this microcontroller?
No
> If the above options are not feasible, does this mean that the bootloader feature is not available for the STM32G0B1KEU6?
Correct.
2024-07-10 10:23 AM - edited 2024-07-14 11:07 AM
Of course the bootloader feature itself is available - just not over FDCAN (but can work over UART for example).
Your chip does seem to have FDCAN2. Possibly, you could use a custom bootloader to achieve what you want.
How to use the ST Open Bootloader for STM32 Microcontrollers
(This is strange. If ST knows it prunes FDCAN1 on some packages, why would they write the boot loader to use FDCAN1 instead of FDCAN2?) (*)
(*) Update: as TDK said, FDCAN1 does exist on the chip, but only a different pair of pins are available for the FDCAN RX/TX signals.
2024-07-10 04:52 PM - edited 2024-07-10 04:53 PM
> This is strange. If ST knows it prunes FDCAN1 on some packages, why would they write the boot loader to use FDCAN1 instead of FDCAN2?
This chip still has FDCAN1 and pins that can use it, just not the pins that the bootloader uses. There are thousands of chips and much fewer bootloader versions, it's not going to be possible to micromanage every case.
2024-07-10 10:32 PM
Thank you for the information. This is exactly what I needed to know.
In this case, I will need to look for another microcontroller, as the other side of the system is already set up to connect to the bootloader via CAN.
Rewriting an existing bootloader is not a practical option for me.
2024-07-10 11:25 PM
I need to correct my initial response. I will be writing my own bootloader, as there is no similar chip available in the package I am using. The L4, G0, G4, U5, and H5 series all have a similar bootloader, but the necessary pins are not exposed in the package I want to use.
Additionally, these chips quickly become too expensive and have much more peripheral functionality than I need.
Thanks again for your help!
2024-07-11 06:02 AM
@EniRot99 wrote:Given that these specific pins (PD0 and PD1) are not available on my microcontroller, I am curious to know:
Are you sure about this? The DS indicates there are two 32-pin variants, and one of them does have PD0/PD1.
And from the ST direct store:
and from CubeMX: