本帖最后由 liam_lee 于 2012-9-12 23:03 编辑
欢迎大家加入coocox工具群:167693982, 每周二,五下午2:50强搂送Cookie板子,晚上8:25开群课
使用CoSmart进行管脚配置和生成可用的C程序,你需要执行以下步骤:
 | | 1. 启动CoSmart后,单击New Chips来选择芯片。
|
 | | 2. 选择一个厂商,如: Nuvoton。
|
 | | 3. 选择一个芯片,如:NUC140LE3CN,在芯片页面会显示管脚配置。
|
 | | 4. 勾选你想要使用的外设,如GPIOA。CoSmart会在左下方的视图中显示GPIOA的配置选项。
|
 | | 5. 你可以点击某个选项的值来改变它的状态。
|
 | | 6. 有些数值还可以从下拉列表中选取或者自己修改。
|
 | | 7. 在左上角的视图中,你可以点击外设名称,左下方的配置视图中会显示相应模块的配置选项。
|
 | | 8. 点击 "Generate C Code"按钮生成和引脚配置相对应的C代码,可以在CoIDE中使用。
|
 | | 9. C代码会在Source窗口中呈现。
|
 | | 10. 点击 "generate CoIDE Project "按钮生成CoIDE工程
|
 | | 11. 输入工程名称和保存位置,生成工程后会自动打开工程所在目录。
|
 | | 12. 点击 "Generate Pin Report "按钮,在CoSmart中生成引脚配置报表。
|
 | | 13. 点击 "Generate Module Report "按钮,在CoSmart中生成模块配置报表。
|
 | | 14. 您还可以使用Export菜单下的功能生成更多文档。
|
您可以通过http://www.coocox.com/CN/CoSmart.html 免费获得CoSmart。 |