You can select STM32L476ZGT6 port BOOT0 level by the switch SW1 and by setting nBOOT1 option byte.
Make sure to use the latest version of bootloader V10.x because there are some limitations exist in the bootloader V9.0.
Hope this helps!
To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL