Search found 143 matches

by joey_nobug
2024年 Nov 14日 18:09
Forum: TuyaOS-Bluetooth Device Development
Topic: firmware corruption
Replies: 10
Views: 368

Re: firmware corruption

sdk version currently in use is 3.8 it worked able to build without errors with Batt_check_enabled. how do we debug and check if the macro is working and what are the currently set voltage levels at which the macro will be triggered. You can modify the macro definition #define VBAT_ALARM_THRES_MV (...
by joey_nobug
2024年 Nov 14日 16:09
Forum: TuyaOS-Bluetooth Device Development
Topic: firmware corruption
Replies: 10
Views: 368

Re: firmware corruption

Add the file "$PROJECT_ROOT/vendor/tlsr825x_smesh/sdk/telink_sig_mesh_sdk/vendor/common/battery_check.c" to the project in the software\TuyaOS\vendor\tlsr825x_smesh\toolchain\templates\vendor.json.

by joey_nobug
2024年 Nov 14日 15:55
Forum: TuyaOS-Bluetooth Device Development
Topic: firmware corruption
Replies: 10
Views: 368

Re: firmware corruption

if i enable the BATT_CHECK_ENABLE macro following error appears during build ./vendor/tlsr825x_smesh/sdk/telink_sig_mesh_sdk/drivers/8258/flash.c: In function 'flash_erase_sector': ./vendor/tlsr825x_smesh/sdk/telink_sig_mesh_sdk/drivers/8258/flash.c:224:5: warning: implicit declaration of function ...
by joey_nobug
2024年 Nov 14日 14:16
Forum: TuyaOS-Bluetooth Device Development
Topic: firmware corruption
Replies: 10
Views: 368

Re: firmware corruption

The low voltage detection is entirely internal and does not require external circuitry. The principle is to measure the VCC input voltage using the ADC by directly detecting pin PC5 (internally in the chip, not externally accessible). When the VCC voltage is lower than the threshold configured by th...
by joey_nobug
2024年 Nov 13日 16:38
Forum: TuyaOS-Bluetooth Device Development
Topic: firmware corruption
Replies: 10
Views: 368

Re: firmware corruption

percy(unwired) 2024年 Nov 13日 16:36

not only the firmware flash region and even the tuya token/license being erased or corrupted.

Yes, because in low power conditions, flash operations are unpredictable and various strange anomalies may occur.

by joey_nobug
2024年 Nov 13日 14:06
Forum: TuyaOS-Bluetooth Device Development
Topic: firmware corruption
Replies: 10
Views: 368

Re: firmware corruption

If a mesh message is sent, the mesh stack will operate the flash. However, due to low battery power, the VCC will also be low, which may lead to issues when writing or erasing the flash. By enabling the macro definition BATT_CHECK_ENABLE, you can initiate low battery protection, thereby reducing the...
by joey_nobug
2024年 Nov 12日 18:30
Forum: TuyaOS-Bluetooth Device Development
Topic: wakeup from gpio does not workin deep sleep mode
Replies: 8
Views: 287

Re: wakeup from gpio does not workin deep sleep mode

percy(unwired) 2024年 Nov 12日 18:21

Can we resume from deep sleep without losing previous variable data. Else i would need to save data to nvram everytime before deep sleep and copy from nvram on wakeup.

Deep sleep does not support RAM retention. If RAM retention is required, use TUYA_CPU_SLEEP mode.

by joey_nobug
2024年 Nov 12日 15:58
Forum: TuyaOS-Bluetooth Device Development
Topic: wakeup from gpio does not workin deep sleep mode
Replies: 8
Views: 287

Re: wakeup from gpio does not workin deep sleep mode

chip platform used bt3l . It is a matrix keypad. OK, I understand your needs. The tlsr825x platform cannot maintain the GPIO level when in deep sleep, but you can configure the pull-down method to keep the GPIO at a low level in deep sleep state. TUYA_GPIO_BASE_CFG_T gpio_cfg = { .mode = TUYA_GPIO_...
by joey_nobug
2024年 Nov 12日 14:50
Forum: TuyaOS-Bluetooth Device Development
Topic: wakeup from gpio does not workin deep sleep mode
Replies: 8
Views: 287

Re: wakeup from gpio does not workin deep sleep mode

Can you provide the schematic diagram of this part?
Why use TUYA_GPIO_NUM_16 to provide low-level signal instead of GND?