use PH3 pin as GPIO instead of BOOT0
Hello all,
In STM32L432KB, I want to use PH3 pin as GPIO, instead of BOOT0 without affecting its boot sequence.
How should I achieve it ?Hello all,
In STM32L432KB, I want to use PH3 pin as GPIO, instead of BOOT0 without affecting its boot sequence.
How should I achieve it ?Hello Maunik,
nSWBOOT0 bit belongs to so called Option Bytes region of memory. It can be modified in two ways.
One solution is accessing correct address in Flash memory. You can do it by using HAL functions. Inside Cube L4 package installed on your hard drive you can find an example how to access Option Bytes. Please refer to this path:
...\STM32Cube_FW_L4_V1.10.0\Projects\STM32L476G_EVAL\Examples\FLASH\FLASH_WriteProtection
Oher solution is to use one of PC applications: ST-Link Utility or STM32Cube Programmer. Below I attach a picture, which shows Option Bytes with highlighted
nSWBOOT0.

Regards
Szymon
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.