本帖最后由 沈夜 于 2024-12-2 18:43 编辑
下载 进入烧写模式,按一下 reset,等到 log 当中输出 cmd>> 即可
首先点击 erase 进行擦除 点击 write 烧写完成
- ============Write hexf File [03/03]============
- Send cpbin successfully!
- UART RX ASCII: by hex mode:
- Receive image request!
- Send image successful! Waiting to receive checksum...
- Send checksum successfully!
- UART RX ASCII: checksum is: 0x0006f12b#OK>>:
- Receive #OK!
- Write images successfully!
- Write registers successfully!
复制代码 失败的样子,没进入下载
- [HEXF Generation] Success: Y:/mcu/PB-03/gpio_demo_phy6202.hexf !!!
- Send cpnum successfully!
- Receive feedback timeout!
- Receive #OK or #ER failed!
- Write images failed!
- Serial port COM4 closed!!
- *******************************
- Current port: COM4
- Current baudrate: 9600
- Current stopBits: 1
- Current parity: No
复制代码
开发 还是比较容易 下载 也比较 方便,无需繁琐设置。
默认demo mygpio
// for ai-thinker PB-03-Kit GREEN LED
#define LED_GPIO GPIO_P18
- // for ai-thinker PB-03-Kit LED引脚定义
- #define LED_GPIOB GPIO_P18//开发板上的蓝灯
- #define LED_GPIOR GPIO_P07//开发板上的红灯
- #define LED_GPIOG GPIO_P11//开发板上的绿灯
- #define LED_GPIO1 GPIO_P34//开发板上的白灯
- #define LED_GPIO2 GPIO_P00//开发板上的黄灯
复制代码
宏定义 修改成led 成18即可。
|