代码直接使用peripheral_demo 中的gpio 例程
![image.png image.png](https://static.assets-stash.eet-china.com/forum/202502/14/173946369486264002134my226xzavysvyxsl.png)
user 中要修改下 生成调用的脚本
"..\..\..\..\components\tools\keil\post_process.bat" "@L" "#L" "$J"
![image.png image.png](https://static.assets-stash.eet-china.com/forum/202502/14/173946380957497002329jn8pznk7kk6kmyk4.png)
其中的led 管脚需要修改下,如下,代码编写风格跟stm32 很类似,
![image.png image.png](https://static.assets-stash.eet-china.com/forum/202502/14/173946470716025003827ecxscsub0tccnnsx.png)
使用板子上这两个led
![image.png image.png](https://static.assets-stash.eet-china.com/forum/202502/14/173946474262493003902hxbq2nalaabt7sa7.png)
最终正常编译出 project_burn.bin 文件
![image.png image.png](https://static.assets-stash.eet-china.com/forum/202502/14/173946384267981002402msrkkqxxrk470skf.png)
参照官方烧录方法进行uart 烧写
![image.png image.png](https://static.assets-stash.eet-china.com/forum/202502/14/173946400974595002649uyx6ca9za6i86lhx.png)
点rst 重启后,可以看到打印的系统时钟频率
![image.png image.png](https://static.assets-stash.eet-china.com/forum/202502/14/173946476834660003928i8b8o8g7k7zgtso3.png)
板子上led 1s间隔进行闪烁
![f37bef92c2894c5255cb9564cbffd3d.jpg f37bef92c2894c5255cb9564cbffd3d.jpg](https://static.assets-stash.eet-china.com/forum/202502/14/173946483146432004031annoobfo2bzng2ls.jpg)