按照应用笔记,修改如下几个地方:
1] HSE驱动部分:
*( u32 * )0x40021028 = ( uint32_t )( 0x00060000 );
2] 闪存部分:
FLASH->ACR |= ( uint32_t )FLASH_ACR_LATENCY_2;
FLASH->ACR &= ( uint32_t )( 0x0000003E );
3] 抗干扰部分:
*( unsigned int * )( 0x40007010 ) = 0x0 << 14 | 0x2 << 12 | 0x3 << 9 | 0x1 << 8 | 0x0 << 7 | 0x3 << 4 | 0xA << 0;
在上电启动后关中断,初始化完成后开中断,则立即进入HardFault_Handler(),如下图所示:
|