【STM32N6570-DK评测】开发环境及LED debug

STM32N6570-DK评测】CubeIDE开发环境及LED

拿到STM32N6570-DK使用CubeIDE开发。搭建开发如下。

使用CbueIDE更新开发库STM32Cube_FW_N6_V1.0.0。

打开CbueIDE, 在Project Explorer框右键“Import...".

Import.png

然后"Next"如下:

Import-2.png

找到下载工具包下的文件STM32Cube_FW_N6_V1.0.0\Projects\STM32N6570-DK\Examples\GPIO\GPIO_IOToggle\STM32CubeIDE导入到项目。如下图:

LEDDemo.png

接着右键“clean Project",再”Build Project"。

把STM32N6570-DK开发板BOOT1拨到1-3。然后插入CN6 “STLINK V3EC”接口,连接到PC。

然后右键debug GPIO LED。debug run后,可以发现LED1闪烁。

如果需要下载到外部flash上启动。需要以下步骤。

Next, this program can be run in boot from flash mode. This is done by following the instructions below:

  • Resort to CubeProgrammer to add a header to the generated binary Project.bin with the following command
    • STM32_SigningTool_CLI.exe -bin Project.bin -nk -of 0x80000000 -t fsbl -o Project-trusted.bin -hv 2.3 -dump Project-trusted.bin
    • The resulting binary is Project-trusted.bin.
  • Next, in resorting again to CubeProgrammer, load the binary and its header (Project-trusted.bin) in the board external Flash at address 0x7000’0000.
  • Set the boot mode in boot from external Flash (BOOT0 switch position is 1-2 and BOOT1 switch position is 1-2).
  • Press the reset button. The code then executes in boot from external Flash mode.

使用CubeProgrammer。

STM32N6570-DKOTPCubeProgramm-2.png

注意:Boot模式,RAM启动使用:BOOT0(1-2)和BOOT1(1-3);外部flash启动使用:BOOT0(1-2)和BOOT1(1-2)

 赞  收藏  评论0 分享

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值