- The production test part of the code is managed by the SDK's underlying layer, and the application layer does not need to implement the related serial port interaction anymore.
- It should be noted that time-consuming device operations should not be added during production testing, such as initializing I2C operations for peripherals within the production test processing function. Taking too much time will cause the device to fail to receive subsequent data sent by the upper computer.
- When the problem cannot be located, first upload the Demo compilation product to the Tuya backend for burning authorization to ensure that the Demo burning authorization can be completed normally and that there are no issues with the environment.
Regarding the Telink platform:
- Normal mass production programs should not have preemptive Log output, which should be avoided to prevent related anomalies.
- Enabling preemptive serial port printing will disable the interrupt source during printing, causing the serial port reception to be abnormal.
BOOL_T app_print_get_cfg(UINT8_T *print_type, UINT8_T *disable_irq, GPIO_PORT_PIN_T *gpio)
{
gpio->port = PORT_C;
gpio->pin = PIN_4;
*print_type = 0;//select the io for uart function;1:uart,0:gpio
*disable_irq = 1;
return 0;
}