- boot0=1, boot1=1
- 函数如下
int main(void)
{
RCC->APB2ENR |= 0x00000010; // I/O port C clock enabled
GPIOC->CRH &= 0xFF0FFFFF; // set general purpose output mode for LEDs
GPIOC->CRH |= 0x00100000; // PC13 pull-push,
//GPIOC->BSRR = 0x20000000; // LEDs on
//GPIOC->BSRR = 0x00002000; // LEDs off
while(1) {
GPIOC->BSRR = 0x20000000; //set high le