本帖最后由 damiaa 于 2022-11-24 16:01 编辑
按资料上讲设置了配置位启动就没PB8的事了。
就算PB8做启动选择IO口,那也是输入,不至于一直低电平高不上来。
你把它做过简单的gpio 测试一下,让它翻转看行不。
如果可以。再看i2C的事。
还有BFB2的事:楼主可以了解一下,没玩过。
When the device boots from SRAM, in the application initialization code, you have to
relocate the vector table in SRAM using the NVIC exception table and the offset register.
When booting from the main Flash memory, the application software can either boot from
bank 1 or from bank 2 (only for category 3 devices). By default, boot from bank 1 is selected.
To select boot from Flash memory bank 2, set the BFB2 bit in the user option bytes. When
this bit is set and the boot pins are in the boot from main Flash memory configuration, the
device boots from system memory, and the boot loader jumps to execute the user
application programmed in Flash memory bank 2. For further details, please refer to
AN2606
|