logo elektroda
logo elektroda
X
logo elektroda

[Solved] Difficulty flashing Treatlife SS02S switch with the Tuya CB3S-FT Chip

chri5k 924 3
ADVERTISEMENT
  • #1 21054334
    chri5k
    Level 5  

    I am trying to flash the CB3S-FT using the BK7231 Easy UART Flasher. I have OpenBK7231N_QIO_1.17.552.bin firmware. The USB-TTL adapter is on COM9 and is the only com port on the Windows 11 PC. When I briefly short Pin 3 to ground, I receive the following output on the flasher GUI. I have also tried shorting Pin 1 to ground with the same result.

    It seems that the COM9 is opening OK but during the reboot there is some conflict with the COM port.

    Now is: Sunday, April 21, 2024 9:46:41 AM.
    Flasher mode: BK7231N
    Going to open port: COM9.
    Serial port open!
    Getting bus... (now, please do reboot by CEN or by power off/on)
    Getting bus failed, will try again - 0/100!
    Getting bus failed, will try again - 1/100!
    Exception caught: System.UnauthorizedAccessException: Access to the port 'COM9' is denied.
    at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
    at System.IO.Ports.SerialStream.EndWrite(IAsyncResult asyncResult)
    at System.IO.Ports.SerialStream.Write(Byte[] array, Int32 offset, Int32 count, Int32 timeout)
    at System.IO.Ports.SerialPort.Write(Byte[] buffer, Int32 offset, Int32 count)
    at BK7231Flasher.BK7231Flasher.Start_Cmd(Byte[] txbuf, Int32 rxLen, Single timeout)
    at BK7231Flasher.BK7231Flasher.linkCheck()
    at BK7231Flasher.BK7231Flasher.getBus()
    at BK7231Flasher.BK7231Flasher.doGetBusAndSetBaudRate()
    at BK7231Flasher.BK7231Flasher.doGenericSetup()
    at BK7231Flasher.BK7231Flasher.doReadAndWriteInternal(Int32 startSector, Int32 sectors, String sourceFileName, WriteMode rwMode)
    at BK7231Flasher.BK7231Flasher.doReadAndWrite(Int32 startSector, Int32 sectors, String sourceFileName, WriteMode rwMode)
  • ADVERTISEMENT
  • Helpful post
    #2 21054370
    divadiow
    Level 35  
    this used to happen to me when I grounded cen and wasn't using an external PSU. are you using USB-TTL power? are your grounds all connected?
  • ADVERTISEMENT
  • #3 21054491
    chri5k
    Level 5  
    Yes, I am using the 3.3v on the USB-TTL adapter. I will try an external PSU.

    Update: Using an external PSU did the trick. Chip is now Tuya free and running OpenBeken!
  • #4 21054606
    chri5k
    Level 5  
    Used an external PSU as recommended by Divadiow, Thanks!
ADVERTISEMENT