Skip to content

TUL device dies after not being used for a long time #4

@emogenet

Description

@emogenet

Hi,

I own a busware.de NCN5130 + ESP32-based TUL device.

I have flashed it with the USB-serial emulation firmware to try and get it to behave like the old ATMEL-based TUL device.

After flashing from Chrome, the device says:

SP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40384ee6
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5810,len:0xf4
load:0x403cc710,len:0x894
load:0x403ce710,len:0x2298
SHA-256 comparison failed:
Calculated: 5ffda6de84dc3dc4cb3a897082d65f27058273d706f9c8c1149e1fa69db0878f
Expected: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
Attempting to boot anyway...
entry 0x403cc710
TUL-KSGEY - init succeed - running: v1.4+42 - 2024-02-01 11:29:25 @ 160 MHz

(there is a checksum error, but I assume this is a harmless bug)

Right after flashing, the device works fine.
I use the device to monitor and log activity on the KNX bus, and I can read data fine.

However, if I leave the device plugged on USB on one side, and the KNX bus on the other, but I don't read from it for a long time ... the device stops working.

And, it stops working for good: usbreset does not fix it, power-cycling it does not fix it.
The only thing that fixes it is re-installing the firmware with an erase.

Also, I've noticed that when I do not read from it for a while, and then connect to it to read from it, it dumps a huge chunk of data, as if it'd been quietly buffering it.

Could it be that leaving the device running without reading from it, it buffers things up, and then runs out of space and starts overwriting key stuff in permanent storage ?

Also, a pointer to the code specific to the USB-serial emulation mode would be great so I can try to understand what's going on.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions