一.运行简单stm32程序(点亮LED灯) 打开keil,新建一个工程,并输入工程名和存储路径 在新建的main.c文件中输入mian函数 int main(void) { //打开GPIOB的时钟 *(unsigned int *)0x40021018 |=