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

How can we set the nboot0 option byte for the STM32? #827

Closed
amarotica opened this issue Jan 16, 2025 · 1 comment
Closed

How can we set the nboot0 option byte for the STM32? #827

amarotica opened this issue Jan 16, 2025 · 1 comment

Comments

@amarotica
Copy link

I am trying to set the nboot0 option byte to 0, in an effort to ignore the PB8-boot0 pin's value. Specifically, I'd like to use the boot0 GPIO pin for different purpose but by program will not boot due to that pin being pulled high. Using STM32Cube, I'm able to override the boot0 GPIO input by using the nboot0 option byte instead. Is there a way to accomplish this with the platformio.ini file or elsewhere?

I'm using this board: genericSTM32G431CB and am only looking to upload firmware via SWD and am not worried about USB uploads.

Thanks in advance for any advice!

@amarotica
Copy link
Author

As soon as I posted this, it finally clicked for me. I just need to set the nboot option ONCE with the STMCubeProgrammer, and then it should stay that way unless I explicitly change it down the road... Kind of like burning the bootloader on an ATMEGA328p to configure the clock settings, for example.

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

1 participant