phy6222 Write images failed

蓝牙 BLE设备、蓝牙 MESH设备、蓝牙 Beacon设备、Sub-G设备等


Post Reply
lxh2626
Posts: 1

Image
报错如图,
使用的是tuyaos_demo_ble_peripheral演示代码,在其中增加如下函数
TUYA_GPIO_BASE_CFG_T gpio_cfg = {
.mode = TUYA_GPIO_PUSH_PULL,
.direct = TUYA_GPIO_OUTPUT,
.level = TUYA_GPIO_LEVEL_LOW,
};
#if defined(TUYA_SDK_TEST) && (TUYA_SDK_TEST == 1)
// TUYA_GPIO_BASE_CFG_T gpio_cfg = {
// .mode = TUYA_GPIO_PUSH_PULL,
// .direct = TUYA_GPIO_OUTPUT,
// .level = TUYA_GPIO_LEVEL_LOW,
// };
// tal_gpio_init(BOARD_POWER_ON_PIN, &gpio_cfg);
// tal_gpio_write(BOARD_POWER_ON_PIN, TUYA_GPIO_LEVEL_HIGH);
#endif


Code: Select all

tal_gpio_init(LCD_BL_CTRL_PIN, &gpio_cfg);
tal_gpio_write(LCD_BL_CTRL_PIN, TUYA_GPIO_LEVEL_HIGH);
tal_gpio_init(LCD_VCC_CTRL_PIN, &gpio_cfg);
tal_gpio_write(LCD_VCC_CTRL_PIN, TUYA_GPIO_LEVEL_HIGH);

编译后下载测试,报最上面那个图的错误

Attachments
微信图片_20241218234000.png

Tags:
User avatar
joey_nobug
Posts: 144

Re: phy6222 Write images failed

烧写前需要先擦除 flash 才能重新写入,如果只更新代码的话可以使用 HEXF 模式,上位机会只擦除代码区然后写入新固件

企业微信截图_17345693577256.png
Talk is cheap, show me the code.
Post Reply