Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32: uart.write() doesn't send long chunk via CONSOLE_USB_SERIAL_JTAG #3657

Open
serg3295 opened this issue Jul 30, 2024 · 47 comments
Open
Assignees

Comments

@serg3295
Copy link

serg3295 commented Jul 30, 2024

Expected behavior

Currently, to send a data fragment larger than 256 bytes via CONSOLE_USB_SERIAL_JTAG, a forced insertion of \n between 256-byte fragments is required.

I would like the behavior to match the behavior when sending a long sequence via UART_DEFAULT. That is, data should be sent continuously without adding \n

In the nodemcu-tool and nodemcu-tools utilities, uniterrupted sending is used to download a file from the ESP32.
Forcing \n to each piece will break the exchange protocol.

Moreover, the size of the response to a request from the utility can exceed 256 bytes. And in this case, I can't even add \n

Actual behavior

When sending a chunk longer than 256 bytes, only the first 256 bytes are sent.
The remaining bytes will be sent only if you add \n at the end of the chunk.

Test code

This code works

s = string.rep('a', 256)
uart.write(0, s)
uart.write(0,'\n')
uart.write(0, s)
print'\n'

This code does not work

s = string.rep('a', 256)
uart.write(0, s)
uart.write(0, s)
print'\n'

NodeMCU startup banner

Startup banner

ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xd (SPI_FAST_FLASH_BOOT)
Saved PC:0x40048b82
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5820,len:0x1704
load:0x403cc710,len:0x938
load:0x403ce710,len:0x2ee8
entry 0x403cc710
I (24) boot: ESP-IDF v5.1.3 2nd stage bootloader
I (24) boot: compile time Jul 29 2024 20:30:34
I (24) boot: chip revision: v0.4
I (27) boot.esp32c3: SPI Speed : 80MHz
I (32) boot.esp32c3: SPI Mode : DIO
I (36) boot.esp32c3: SPI Flash Size : 4MB
I (41) boot: Enabling RNG early entropy source...
I (46) boot: Partition Table:
I (50) boot: ## Label Usage Type ST Offset Length
I (57) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (65) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (72) boot: 2 factory factory app 00 00 00010000 00180000
I (80) boot: 3 lfs unknown c2 01 00190000 00010000
I (87) boot: 4 storage Unknown data 01 82 001a0000 00070000
I (95) boot: End of partition table
I (99) esp_image: segment 0: paddr=00010020 vaddr=3c0e0020 size=2d748h (186184) map
I (137) esp_image: segment 1: paddr=0003d770 vaddr=3fc92400 size=028a8h ( 10408) load
I (139) esp_image: segment 2: paddr=00040020 vaddr=42000020 size=d19b8h (858552) map
I (279) esp_image: segment 3: paddr=001119e0 vaddr=3fc94ca8 size=001ach ( 428) load
I (280) esp_image: segment 4: paddr=00111b94 vaddr=40380000 size=1237ch ( 74620) load
I (299) esp_image: segment 5: paddr=00123f18 vaddr=50000000 size=00018h ( 24) load
I (305) boot: Loaded app from partition at offset 0x10000
I (306) boot: Disabling RNG early entropy source...
I (308) cpu_start: Unicore app
I (312) cpu_start: Pro cpu up.
I (327) cpu_start: Pro cpu start user code
I (327) cpu_start: cpu freq: 160000000 Hz
I (327) cpu_start: Application information:
I (330) cpu_start: Project name: nodemcu
I (335) cpu_start: App version: tmr-libmain-binpatch150-888-gca
I (342) cpu_start: Compile time: Jul 29 2024 20:32:43
I (348) cpu_start: ELF file SHA256: b3501ddbd7970a59...
I (354) cpu_start: ESP-IDF: v5.1.3
I (359) cpu_start: Min chip rev: v0.3
I (364) cpu_start: Max chip rev: v1.99
I (369) cpu_start: Chip rev: v0.4
I (373) heap_init: Initializing. RAM available for dynamic allocation:
I (381) heap_init: At 3FC997B0 len 00026850 (154 KiB): DRAM
I (387) heap_init: At 3FCC0000 len 0001C710 (113 KiB): DRAM/RETENTION
I (394) heap_init: At 3FCDC710 len 00002950 (10 KiB): DRAM/RETENTION/STACK
I (402) heap_init: At 50000018 len 00001FD0 (7 KiB): RTCRAM
I (409) spi_flash: detected chip: generic
I (412) spi_flash: flash io: dio
W (417) rmt(legacy): legacy driver is deprecated, please migrate to driver/rmt_tx.h and/or driver/rmt_rx.h
W (427) ADC: legacy driver is deprecated, please migrate to esp_adc/adc_oneshot.h
I (436) sleep: Configure to isolate all GPIO pins in sleep state
I (442) sleep: Enable automatic switching of GPIO sleep configuration
I (449) app_start: Starting scheduler on CPU0
I (454) main_task: Started on CPU0
I (454) main_task: Calling app_main()

E (464) mmap: esp_mmu_paddr_to_vaddr(752): paddr isn't mapped
LFS image loaded
I (474) pp: pp rom version: 9387209
I (474) net80211: net80211 rom version: 9387209
I (484) wifi:wifi driver task: 3fca87a4, prio:23, stack:6656, core=0
I (484) wifi:wifi firmware version: 0016c4d
I (484) wifi:wifi certification version: v7.0
I (484) wifi:config NVS flash: enabled
I (484) wifi:config nano formating: disabled
I (484) wifi:Init data frame dynamic rx buffer num: 32
I (484) wifi:Init static rx mgmt buffer num: 5
I (484) wifi:Init management short buffer num: 32
I (484) wifi:Init dynamic tx buffer num: 32
I (484) wifi:Init static tx FG buffer num: 2
I (484) wifi:Init static rx buffer size: 1600
I (484) wifi:Init static rx buffer num: 10
I (484) wifi:Init dynamic rx buffer num: 32
I (484) wifi_init: rx ba win: 6
I (494) wifi_init: tcpip mbox: 32
I (494) wifi_init: udp mbox: 6
I (494) wifi_init: tcp mbox: 6
I (494) wifi_init: tcp tx win: 5760
I (494) wifi_init: tcp rx win: 5760
I (494) wifi_init: tcp mss: 1440
I (494) wifi_init: WiFi IRAM OP enabled
I (494) wifi_init: WiFi RX IRAM OP enabled

NodeMCU ESP32 build 2024-07-29 20:32 powered by Lua 5.3.5 [5.3-int32-singlefp] on IDF v5.1.3
cannot open init.lua: No such file or directory

Hardware

esp32c3 and esp32c6 via CONSOLE_USB_SERIAL_JTAG

serg3295 added a commit to BoresXP/nodemcu-tools that referenced this issue Aug 2, 2024
We can't use a uart callback when the usb-serial-jtag or usb-cdc console
is chosen as they don't support this, so we have to use base64|hex
encoding to upload/download files.

Unfortunatly, the current nodemcu firmware does not support sending long
chunks via usb-serial-jtag. See
nodemcu/nodemcu-firmware#3657

Therefore, some features as 'file download' and 'send chunk of code from
editor window' do not work.

Also, if there are many files on spiffs, the extension hangs at the
stage of reading from ESP.
@serg3295
Copy link
Author

serg3295 commented Aug 8, 2024

I found a workaround to the issue.

  1. Upgrade to ifd v5.2.2. This is a mandatory step.
  2. Change platform.c a little
void platform_uart_send_multi( unsigned id, const char *data, size_t len )
{
  size_t i;
  // if (id == CONFIG_ESP_CONSOLE_UART_NUM) {
      for( i = 0; i < len; i ++ ) {
        putchar (data[ i ]);
    }
  // } else {
    // uart_write_bytes(id, data, len);
  // }
}

void platform_uart_send( unsigned id, uint8_t data )
{
  // if (id == CONFIG_ESP_CONSOLE_UART_NUM)
    putchar (data);
  // else
    // uart_write_bytes(id, (const char *)&data, 1);
}

void platform_uart_flush( unsigned id )
{
  // if (id == CONFIG_ESP_CONSOLE_UART_NUM)
    fflush (stdout);
  // else
    // uart_tx_flush(id);
}

I don't know why it works, but it does.

@jmattsson
Copy link
Member

The underlying issue here is that the USB-SERIAL-JTAG isn't an actual UART in the first place. In the name of backwards compatibility I've tried to hide that fact with increasing amounts of special casing in the platform code. As the IDF evolves further towards POSIXness, and the introduction of CDC-ACM consoles as well, this approach has, frankly, gotten rotten. Not only has it produced inconsistent behaviour, odd edge cases (like this), but also clearly a bunch of confusion :(

To resolve all these issues I think we have to bite the bullet and get around to moving the console device access into its own module. We've avoided it because it's a backwards compatibility breaking change, but it really looks to be the lesser evil by now. Let me see if I can cook up a PR for evaluation today.

@serg3295
Copy link
Author

I have already rewritten the code of both utilities so that they work with the esp jtag console (on idf5.3.1) without using uart.on, uart.start, uart.stop. :-)

However, I was unable to implement sending binary data from esp to the host, in particular file dowload.
uart.write is the only thing that is now necessary for the utilities to work correctly with the firmware.

@jmattsson
Copy link
Member

I've almost finished the necessary refactoring, but I'm out of time for today. I'll try to have something tomorrow.

@jmattsson
Copy link
Member

I've only just started the testing, but if you want to have a play early the branch is here.

Effectively, the console interaction is now via the console module, and you have console.on("data", ...) available similar to what's on the uart module. There's also console.mode(mode) to control whether console data goes to the LVM automatically or not. Hopefully the docs are good enough to describe it.

@serg3295
Copy link
Author

Thanks, I'll test that.

@serg3295
Copy link
Author

I tested the new firmware on esp32.
I use uart.on("data", bufSize, function(d) <d is binary data to be written to a file> end, 0) for uploading file to esp.

Using new function console.mode(0) to disable passing data to Lua VM, I cannot get back to Interactive console.
Is there any way to get binary data in the console.on and then return to interactive mode?

@jmattsson
Copy link
Member

I've added an example on how to cleanly transfer potentially binary data using the console module, via a classic STX/ETX/DLE framing scheme.

@jmattsson
Copy link
Member

In regard to the original issue, I've also tested writing a 300 byte long string using console.write() and received that fine on a USB-Serial-JTAG console.

@serg3295
Copy link
Author

serg3295 commented Oct 23, 2024

Thank you for such a detailed example! Now I figured it out.

Minor fixes in uart.md examples:

-- when 4 chars is received.
uart.on("data", 4,
...
end~,0~)
-- when '\r' is received.
uart.on("data", "\r",
...
end~, 0~)

I have been testing the console module on esp32 -s3, -c3, -c6, (jtag)
It works, but I notice errors in the utilities while downloading file.
What is max buffer size for console.write(<buf_size_long_string?>)?

-s2 (cdc) EDIT: -s3 (cdc)

The issue is common for both idf5.3.1 and dev-console branches. Very strange behavior. If the connection is made with esp reboot (make monitor or a terminal program HTerm 0.8.5), then REPL works.
When the connection is made without esp reboot (npx @serialport/terminal -b115200 -p /dev/ttyACM0 or my host utilities), there is no response to print'a'. Only node.restart() is accepted.
I will investigate this in more detail.

@jmattsson
Copy link
Member

jmattsson commented Oct 24, 2024

Ah, thank for, I'll tidy up those uart examples!

There is no inherent limit to the string passed to console.write(), and I thought I did implement proper retry logic on the writes. While much of the time I can write a 4097 byte string, sometimes it's silently cut off after 257 bytes here too. I'm looking into it now.

Edit: The IDF/C library claims to have written everything, even when it's truncated. It looks like the loss is within the IDF somewhere. I'll see if I can find a workaround...

@jmattsson
Copy link
Member

Okay, I have a workaround that seems to do the trick reliably here on my c3. See if it works for your setup too @serg3295 ?

@serg3295
Copy link
Author

serg3295 commented Oct 24, 2024

I am observing long chunks of ~4097 bytes from the ESP. Moreover, the UART console transmits data losslessly, and the JTAG console loses data randomly starting with the second long data packet.
Perhaps, the IDF5.3.1 have UART errors been fixed?

@jmattsson
Copy link
Member

@serg3295 You're still seeing losses even after my most recent workaround?! It seems reliable now across UART, USB-Serial-JTAG and CDC-ACM here for me.

@serg3295
Copy link
Author

I apologize, I didn't pull the last changes. :-(

I have tested downloading large files from esp-s3. It's working now!
I will test it more thoroughly on other chips.

@jmattsson
Copy link
Member

I've just pushed scripts/upload-file.py to that branch, as a small utility both for direct use but also as a guide for how IDEs might want to use the new console module.

Plus I updated both the uart and console docs to make mention of it.

I think this is ready for a PR? The one other thing that would be lovely is if we could add something to our lua_compat that somehow wrangles legacy uart.on() (and whatever else IDEs have been sending) into something suitable for the console module, so that older IDEs can be used if you load said lua file.

@serg3295
Copy link
Author

I tested uploading and downloading files using console.on, console.mode and console.write and found no errors.

Also I reworked nodemcu-tools VSCode extension and NodeMCU-Tool CLI utility to support the new firmware.
They now support all firmware versions, including the legacy idf3 branch (with file module), the version that uses uart.start/stop and the latest console version.

@jmattsson
Copy link
Member

@serg3295 fabulous! I've raised the PR, let's see what the verdict is.

@serg3295
Copy link
Author

I have one more question.
ESP32-C3, jtag-console, uart module is included into firmware.
I tried calling uart.setup from make monitor and got this response

NodeMCU ESP32 build 2024-10-25 08:40 powered by Lua 5.3.5 [5.3-int32-singlefp] on IDF v5.1.3
cannot open init.lua: No such file or directory
> uart.setup()
Lua error:      stdin:1: attempt to index a nil value (field 'uart')
stack traceback:
        stdin:1: in main chunk
        [C]: in ?
        [C]: in ?
> 

@jmattsson
Copy link
Member

It looks like the uart module isn't enabled/compiled in. Check your menuconfig under Component config -> NodeMCU modules

@serg3295
Copy link
Author

serg3295 commented Oct 25, 2024

// sdkconfig

# CONFIG_NODEMCU_CMODULE_TIME is not set
CONFIG_NODEMCU_CMODULE_UART=y
# end of NodeMCU modules

@serg3295
Copy link
Author

However, no uart module in firmware

>   for k,v in pairs(getmetatable(_G).__index) do print(k.." : "..tostring(v)) end 
console : table: 0x3c0d6130
encoder : table: 0x3c0d621c
file : table: 0x3c0d646c
gpio : table: 0x3c0d6730
http : table: 0x3c0d6d10
i2c : table: 0x3c0d7060
net : table: 0x3c0d77f0
node : table: 0x3c0d81e0
ow : table: 0x3c0d84b8
pipe : table: 0x3c0d8584
tmr : table: 0x3c0d87cc
wifi : table: 0x3c0d8c60
string : table: 0x3c0dbbb8
table : table: 0x3c0dbd3c
coroutine : table: 0x3c0da930
debug : table: 0x3c0dacc8
math : table: 0x3c0db408
utf8 : table: 0x3c0dbe54
ROM : table: 0x3fc95a6c
assert : function: 0x4201e6ba

@jmattsson
Copy link
Member

What the... 🤯 Let me check here...

@jmattsson
Copy link
Member

Ugh, my bad 🤦‍♀️. Fixed now.
(I based the console module off the uart module, but then failed to fully update the module registration macro, leading the console module to claim to be the uart module. Remarkably silly mistake to make.)

@serg3295
Copy link
Author

Hooray, it worked!

@serg3295
Copy link
Author

I tested simultaneous connection via usb-jtag-console interface and via UART0 connected to FTDI adapter.

flowchart LR
host[["make monitor"]]
esp["ESP32-C3"]
ftdi[FTDI adapter]
terminal[[HTerm 0.8.5]]
host-- usb-jtag-console <-->esp<-- UART0 -->ftdi<-->terminal
Loading

Data is transferred in both directions from console to UART and vice versa.

uart.setup(0, 115200, 8, uart.PARITY_NONE, uart.STOPBITS_1, {tx=21,rx=20})
uart.start(0)
uart.on(0,"data", "\n", function(data) print(data)end)
uart.write(0, "test string\n")

@serg3295
Copy link
Author

I'm trying to figure out the CDC console. I am unable to send a string larger than 89 bytes from the CLI utility.
If the string is exceeded 89 bytes, then I get only 89 bytes in the response and the exchange with esp freezes.

When sending a command from the utility's CLI, short commands are executed correctly, a command exceeding 89 bytes suspends the exchange.

>
[NodeMCU-Tool]~ Connected 
[device]      ~ Model: esp32s2 | Version: 0.0.undefined | ChipID: 0x_unknown | FlashID: 0x204016 
[serialport]  ~ TX: print(file.fsinfo())
[serialport]  ~ RX: pri
[serialport]  ~ RX: nt(fil
[serialport]  ~ RX: e.fsinfo())
[serialport]  ~ RX: 413899      502     414401
[serialport]  ~ RX: >
[serialport]  ~ TX: local l={}for k,v in pairs(file.list())do l[#l+1]=("%s:%d"):format(k,v)end;print(table.concat(l,";"))
[serialport]  ~ RX: lo
[serialport]  ~ RX: cal l=
[serialport]  ~ RX: {}for k,v in p
[serialport]  ~ RX: airs(file.list
[serialport]  ~ RX: ())do l
[serialport]  ~ RX: [#l+1]
[serialport]  ~ RX: =("%s:
[serialport]  ~ RX: %d"):
[serialport]  ~ RX: format
[serialport]  ~ RX: (k,v)
[serialport]  ~ RX: end;print(table
[serialport]  ~ RX: .conca

We're stuck here

Having tested the example upload-file.py I found that the maximum size of the uploaded file also cannot exceed 89 bytes. If the file size is exceeded 89 bytes, a zero size file is written to disk.
I haven't looked at the receiver function code yet, but I guess the reason is not in the code upload-file.py

file: a.txt ; length=89 byte

12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789

the file was successfully written

I (344) wifi_init: WiFi RX IRAM OP enabled
> local l={}for k,v in pairs(file.list())do l[#l+1]=("%s:%d"):format(k,v)end;print(table.concat(l,";"))
a.txt:89
> 

file: a.txt ; length=90 bytes
a.txt:0

@serg3295
Copy link
Author

I increased size of USB CDC RX buffer to 512 bytes and both the utilities and upload-file.py worked.

CONFIG_ESP_CONSOLE_USB_CDC_RX_BUF_SIZE=512

But I'm not sure that this solution was right.
Maybe I broke something 😐

@serg3295
Copy link
Author

esp32s2, CDC console.

A console utility (both nodemcu-tool and upload-file.py ) can only be performed once.
When trying to execute the utility a second time, there is no response from the esp.
An esp reboot is required. 😢

Steps to reproduce:

file a.txt
1
1234567890
12345678901234567890
123456789012345678901234567890
12345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890
12345678901234567890123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890

upload-file.py

We are trying to upload a file using upload-file.py

❯ python ./upload-file.py -p /dev/ttyACM0 a.txt
Synchronising serial...
Uploading "a.txt" as "a.txt"
Sending loader...
Sending file contents...
Done.
❯ python ./upload-file.py -p /dev/ttyACM0 a.txt
Synchronising serial...
...
We're stuck here. CTRL+C
...
^CTraceback (most recent call last):
File "/home/serg/Projects/python/nodemcu/./upload-file.py", line 170, in <module>
  if not sync(ser):
         ^^^^^^^^^
File "/home/serg/Projects/python/nodemcu/./upload-file.py", line 124, in sync
  line = ser.readline()
         ^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 565, in read
  ready, _, _ = select.select([self.fd, self.pipe_abort_read_r], [], [], timeout.time_left())
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt

Perform hardware reset
GOTO begin

@jmattsson
Copy link
Member

Can confirm weirdness on my S2 CDC-ACM. I have started looking into it, and I keep finding more weirdness 😩

@serg3295
Copy link
Author

esp32-s3; jtag console; make monitor

Is there a limit on the maximum length of a Lua string? 255 bytes + \n

print('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasssssssssssssssssaaaaaafdfweerwefvsafwefasfrweaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasssssssssssssssssssssssaaerereweradsfvaswdwefvaszzscfdwerawefwerwersdfasdfewdsdrewrewrewaaaaaaaaaaaaaaaaaaaasaaaaB')

+1 byte causes error 😞

@jmattsson
Copy link
Member

jmattsson commented Oct 27, 2024

Regardless of the configured RX buffer size, the CDC-ACM is at risk of being overrun it seems. I've pushed an updated upload-file.py script which adds an ack scheme and chunks the file contents. It's tuned to work with the default 64 byte RX buffer, but can be told to use a larger block size if so desired.

@jmattsson
Copy link
Member

And to answer your other question, yes, there is a max line length (LUA_MAXINPUT) which is set to 256. That could arguably be turned into a Kconfig option. Open another issue and tag me if that's something you'd like to see 😊

@serg3295
Copy link
Author

It's tuned to work with the default 64 byte RX buffer, but can be told to use a larger block size if so desired.

I also use file upload/download in 256 byte chunks with acknowledgement. So there is no buffer overflow.
It might make sense to automatically increase the buffer size in sdkconfig to 512, if the CDC console is selected?

@serg3295
Copy link
Author

That could arguably be turned into a Kconfig option.

Lua string length of 256 bytes is quite enough.
It's just that the print(more than 255 bytes) command is executed on esp8266 Lua5.3
That's why I asked this question.

@jmattsson
Copy link
Member

@serg3295 It looks like the only way to change the default RX buffer is to also automatically default to using the CDC-ACM instead of the UART. I'm not sure whether that's a sensible change in defaults?

@serg3295
Copy link
Author

You are right, there is no need to change the default value, since the USB CDC RX buffer size depends on the specific utility or IDE. In particular, for nodemcu-tools and NodeMCU-Tool the setting is CONFIG_ESP_CONSOLE_USB_CDC_RX_BUF_SIZE=256
I think the setting value should be specified in the documentation of an utility or IDE.

It might make sense to mention the setting CONFIG_ESP_CONSOLE_USB_CDC_RX_BUF_SIZE in console.md.

@jmattsson
Copy link
Member

Good idea, I've added extra notes to the module docs now. 👍

@serg3295
Copy link
Author

serg3295 commented Oct 31, 2024

I've found a workaround to solve the issue of once connection of the utilities to USB CDC console on esp32s2.

I changed Component config → Log output → Default log verbosity from Info to Warning and USB-CDC console now connects robustly without any synchronization.

EDIT: I noticed that I (..) wifi:... messages are printed after string
NodeMCU ESP32 build 2024-10-24 11:37 powered by Lua 5.3.5 [5.3-int32-singlefp] on IDF v5.1.3 cannot open init.lua: No such file or directory
this is different from the behavior on other chips.

@serg3295
Copy link
Author

serg3295 commented Oct 31, 2024

esp32s3; jtag console
An error occurs while writing LFS image.
I try to upload LFS image and write it using node.LFS.reload("lfs.img")

crash log
rst:0x3 (RTC_SW_SYS_RST),boot:0x2b (SPI_FAST_FLASH_BOOT)
Saved PC:0x40375ab3
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3818,len:0x1750
load:0x403c9700,len:0x4
load:0x403c9704,len:0xbe4
load:0x403cc700,len:0x2d18
entry 0x403c9908
I (26) boot: ESP-IDF v5.1.3 2nd stage bootloader
I (26) boot: compile time Oct 24 2024 11:38:11
I (26) boot: Multicore bootloader
I (29) boot: chip revision: v0.1
I (33) boot.esp32s3: Boot SPI Speed : 80MHz
I (38) boot.esp32s3: SPI Mode       : DIO
I (43) boot.esp32s3: SPI Flash Size : 4MB
I (47) boot: Enabling RNG early entropy source...
I (53) boot: Partition Table:
I (56) boot: ## Label            Usage          Type ST Offset   Length
I (64) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (71) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (79) boot:  2 factory          factory app      00 00 00010000 00180000
I (86) boot:  3 lfs              unknown          c2 01 00190000 00010000
I (93) boot:  4 storage          Unknown data     01 82 001a0000 00070000
I (101) boot: End of partition table
I (105) esp_image: segment 0: paddr=00010020 vaddr=3c0c0020 size=2bd24h (179492) map
I (146) esp_image: segment 1: paddr=0003bd4c vaddr=3fc98f00 size=042cch ( 17100) load
I (150) esp_image: segment 2: paddr=00040020 vaddr=42000020 size=bb140h (766272) map
I (289) esp_image: segment 3: paddr=000fb168 vaddr=3fc9d1cc size=0032ch (   812) load
I (290) esp_image: segment 4: paddr=000fb49c vaddr=40374000 size=14e3ch ( 85564) load
I (314) esp_image: segment 5: paddr=001102e0 vaddr=600fe000 size=00064h (   100) load
I (323) boot: Loaded app from partition at offset 0x10000
I (323) boot: Disabling RNG early entropy source...
I (324) cpu_start: Multicore app
I (328) cpu_start: Pro cpu up.
I (331) cpu_start: Starting app cpu, entry point is 0x403756a0
I (0) cpu_start: App cpu up.
I (347) cpu_start: Pro cpu start user code
I (347) cpu_start: cpu freq: 160000000 Hz
I (347) cpu_start: Application information:
I (347) cpu_start: Project name:     nodemcu
I (347) cpu_start: App version:      tmr-libmain-binpatch150-891-ga0
I (348) cpu_start: Compile time:     Oct 24 2024 11:38:08
I (348) cpu_start: ELF file SHA256:  69144894737113bf...
I (348) cpu_start: ESP-IDF:          v5.1.3
I (348) cpu_start: Min chip rev:     v0.0
I (349) cpu_start: Max chip rev:     v0.99 
I (349) cpu_start: Chip rev:         v0.1
I (349) heap_init: Initializing. RAM available for dynamic allocation:
I (349) heap_init: At 3FCA1868 len 00047EA8 (287 KiB): DRAM
I (350) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (350) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (350) heap_init: At 600FE064 len 00001F84 (7 KiB): RTCRAM
I (351) spi_flash: detected chip: generic
I (351) spi_flash: flash io: dio
W (352) rmt(legacy): legacy driver is deprecated, please migrate to `driver/rmt_tx.h` and/or `driver/rmt_rx.h`
W (352) ADC: legacy driver is deprecated, please migrate to `esp_adc/adc_oneshot.h`
I (353) sleep: Configure to isolate all GPIO pins in sleep state
I (353) sleep: Enable automatic switching of GPIO sleep configuration
I (354) app_start: Starting scheduler on CPU0
I (354) app_start: Starting scheduler on CPU1
I (354) main_task: Started on CPU0
I (364) main_task: Calling app_main()

E (424) mmap: esp_mmu_paddr_to_vaddr(752): paddr isn't mapped    ??????
I (434) pp: pp rom version: e7ae62f
I (434) net80211: net80211 rom version: e7ae62f
I (444) wifi:wifi driver task: 3fcb29a0, prio:23, stack:6656, core=0
I (454) wifi:wifi firmware version: 0016c4d
I (454) wifi:wifi certification version: v7.0
I (454) wifi:config NVS flash: enabled
I (454) wifi:config nano formating: disabled
I (454) wifi:Init data frame dynamic rx buffer num: 32
I (454) wifi:Init static rx mgmt buffer num: 5
I (454) wifi:Init management short buffer num: 32
I (454) wifi:Init dynamic tx buffer num: 32
I (454) wifi:Init static tx FG buffer num: 2
I (454) wifi:Init static rx buffer size: 1600
I (454) wifi:Init static rx buffer num: 10
I (454) wifi:Init dynamic rx buffer num: 32
I (454) wifi_init: rx ba win: 6
I (454) wifi_init: tcpip mbox: 32
I (454) wifi_init: udp mbox: 6
I (454) wifi_init: tcp mbox: 6
I (454) wifi_init: tcp tx win: 5760
I (454) wifi_init: tcp rx win: 5760
I (454) wifi_init: tcp mss: 1440
I (464) wifi_init: WiFi IRAM OP enabled
I (464) wifi_init: WiFi RX IRAM OP enabled

Erasing LFS from flash addr 0x190000.�[0;31mE (474) task_wdt: esp_task_wdt_init(592): Invalid arguments�[0m
to 0x19ffff
LFS image loaded
E (544) usb_serial_jtag: usb_serial_jtag_driver_install(126): Driver already installed     !!!!!!!!

=======
THE OUPUT HANGS HERE!
send string 

local s,p,n={},print,node.LFS;for _,k in ipairs{'lfs_base','lfs_mapped','lfs_size','lfs_used'}do s[#s+1]='%s = 0x%06x'%{k,n.config[k]}end;p('> LFS cfg:\n{ %s }\n> LFS list:'%table.concat(s,', '))for k,v in pairs(n.list())do p(k,v)end;collectgarbage()

to continue
=======

E (53514) gpio: gpio_install_isr_service(500): GPIO isr service already installed
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x403763ea  PS      : 0x00060d30  A0      : 0x803765d2  A1      : 0x3fca1dc0  
A2      : 0x00000024  A3      : 0x00001800  A4      : 0x00000000  A5      : 0x00000000  
A6      : 0x00000008  A7      : 0x00000008  A8      : 0x3fca1ee0  A9      : 0x3fca1ec0  
A10     : 0x3fcae684  A11     : 0x3fcae1a0  A12     : 0x3fca1f80  A13     : 0x00000024  
A14     : 0x00ff0000  A15     : 0xff000000  SAR     : 0x00000010  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000024  LBEG    : 0x40056fc5  LEND    : 0x40056fe7  LCOUNT  : 0xffffffff  


Backtrace: 0x403763e7:0x3fca1dc0 0x403765cf:0x3fca1df0 0x403766b5:0x3fca1e20 0x403766e5:0x3fca1e40 0x40384d31:0x3fca1e60 0x42011f15:0x3fca1e80 0x420155d2:0x3fca1ea0 0x42017f3a:0x3fca1ec0 0x42013e6d:0x3fca1ee0 0x4201402a:0x3fca1f10 0x42014051:0x3fca1f30 0x4201364e:0x3fca1f50 0x420136aa:0x3fca1f70 0x420136d1:0x3fca1fc0 0x4201a367:0x3fca1fe0 0x42010c75:0x3fca2000 0x420113b2:0x3fca2020 0x42019273:0x3fca2040 0x42013e9b:0x3fca2060 0x4201402a:0x3fca2090 0x42014051:0x3fca20b0 0x4201364e:0x3fca20d0 0x420136aa:0x3fca20f0 0x420136d1:0x3fca2140 0x4201a367:0x3fca2160 0x42010c75:0x3fca2180 0x420113b2:0x3fca21a0 0x42019273:0x3fca21c0 0x42013e9b:0x3fca21e0 0x4201402a:0x3fca2210 0x42014051:0x3fca2230 0x4201364e:0x3fca2250 0x420136aa:0x3fca2270 0x420136d1:0x3fca22c0 0x4201a367:0x3fca22e0 0x42010c75:0x3fca2300 0x420113b2:0x3fca2320 0x42019273:0x3fca2340 0x42013e9b:0x3fca2360 0x4201402a:0x3fca2390 0x42014051:0x3fca23b0 0x4201364e:0x3fca23d0 0x420136aa:0x3fca23f0 0x420136d1:0x3fca2440 0x4201a367:0x3fca2460 0x42010c75:0x3fca2480 0x420113b2:0x3fca24a0 0x42019273:0x3fca24c0 0x42013e9b:0x3fca24e0 0x4201402a:0x3fca2510 0x42014051:0x3fca2530 0x4201364e:0x3fca2550 0x420136aa:0x3fca2570 0x420136d1:0x3fca25c0 0x4201a367:0x3fca25e0 0x42010c75:0x3fca2600 0x420113b2:0x3fca2620 0x42019273:0x3fca2640 0x42013e9b:0x3fca2660 0x4201402a:0x3fca2690 0x42014051:0x3fca26b0 0x4201364e:0x3fca26d0 0x420136aa:0x3fca26f0 0x420136d1:0x3fca2740 0x4201a367:0x3fca2760 0x42010c75:0x3fca2780 0x420113b2:0x3fca27a0 0x42019273:0x3fca27c0 0x42013e9b:0x3fca27e0 0x4201402a:0x3fca2810 0x42014051:0x3fca2830 0x4201364e:0x3fca2850 0x420136aa:0x3fca2870 0x420136d1:0x3fca28c0 0x4201a367:0x3fca28e0 0x42010c75:0x3fca2900 0x420113b2:0x3fca2920 0x42019273:0x3fca2940 0x42013e9b:0x3fca2960 0x4201402a:0x3fca2990 0x42014051:0x3fca29b0 0x4201364e:0x3fca29d0 0x420136aa:0x3fca29f0 0x420136d1:0x3fca2a40 0x4201a367:0x3fca2a60 0x42010c75:0x3fca2a80 0x420113b2:0x3fca2aa0 0x42019273:0x3fca2ac0 0x42013e9b:0x3fca2ae0 0x4201402a:0x3fca2b10 0x42014051:0x3fca2b30 0x4201364e:0x3fca2b50 0x420136aa:0x3fca2b70 0x420136d1:0x3fca2bc0 0x4201a367:0x3fca2be0 0x42010c75:0x3fca2c00 0x420113b2:0x3fca2c20 0x42019273:0x3fca2c40 0x42013e9b:0x3fca2c60 0x4201402a:0x3fca2c90 0x42014051:0x3fca2cb0 |<-CONTINUES




ELF file SHA256: 69144894737113bf

Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0x2b (SPI_FAST_FLASH_BOOT)
Saved PC:0x40375ab3
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3818,len:0x1750
load:0x403c9700,len:0x4
load:0x403c9704,len:0xbe4
load:0x403cc700,len:0x2d18
entry 0x403c9908
I (26) boot: ESP-IDF v5.1.3 2nd stage bootloader
I (26) boot: compile time Oct 24 2024 11:38:11
I (26) boot: Multicore bootloader
I (29) boot: chip revision: v0.1
I (33) boot.esp32s3: Boot SPI Speed : 80MHz
I (38) boot.esp32s3: SPI Mode       : DIO
I (43) boot.esp32s3: SPI Flash Size : 4MB
I (47) boot: Enabling RNG early entropy source...
I (53) boot: Partition Table:
I (56) boot: ## Label            Usage          Type ST Offset   Length
I (64) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (71) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (79) boot:  2 factory          factory app      00 00 00010000 00180000
I (86) boot:  3 lfs              unknown          c2 01 00190000 00010000
I (93) boot:  4 storage          Unknown data     01 82 001a0000 00070000
I (101) boot: End of partition table
I (105) esp_image: segment 0: paddr=00010020 vaddr=3c0c0020 size=2bd24h (179492) map
I (146) esp_image: segment 1: paddr=0003bd4c vaddr=3fc98f00 size=042cch ( 17100) load
I (150) esp_image: segment 2: paddr=00040020 vaddr=42000020 size=bb140h (766272) map
I (289) esp_image: segment 3: paddr=000fb168 vaddr=3fc9d1cc size=0032ch (   812) load
I (290) esp_image: segment 4: paddr=000fb49c vaddr=40374000 size=14e3ch ( 85564) load
I (314) esp_image: segment 5: paddr=001102e0 vaddr=600fe000 size=00064h (   100) load
I (323) boot: Loaded app from partition at offset 0x10000
I (323) boot: Disabling RNG early entropy source...
I (324) cpu_start: Multicore app
I (328) cpu_start: Pro cpu up.
I (331) cpu_start: Starting app cpu, entry point is 0x403756a0
I (0) cpu_start: App cpu up.
I (347) cpu_start: Pro cpu start user code
I (347) cpu_start: cpu freq: 160000000 Hz
I (347) cpu_start: Application information:
I (347) cpu_start: Project name:     nodemcu
I (347) cpu_start: App version:      tmr-libmain-binpatch150-891-ga0
I (347) cpu_start: Compile time:     Oct 24 2024 11:38:08
I (348) cpu_start: ELF file SHA256:  69144894737113bf...
I (348) cpu_start: ESP-IDF:          v5.1.3
I (348) cpu_start: Min chip rev:     v0.0
I (349) cpu_start: Max chip rev:     v0.99 
I (349) cpu_start: Chip rev:         v0.1
I (349) heap_init: Initializing. RAM available for dynamic allocation:
I (349) heap_init: At 3FCA1868 len 00047EA8 (287 KiB): DRAM
I (350) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (350) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (350) heap_init: At 600FE064 len 00001F84 (7 KiB): RTCRAM
I (351) spi_flash: detected chip: generic
I (351) spi_flash: flash io: dio
W (352) rmt(legacy): legacy driver is deprecated, please migrate to `driver/rmt_tx.h` and/or `driver/rmt_rx.h`
W (352) ADC: legacy driver is deprecated, please migrate to `esp_adc/adc_oneshot.h`
I (353) sleep: Configure to isolate all GPIO pins in sleep state
I (353) sleep: Enable automatic switching of GPIO sleep configuration
I (354) app_start: Starting scheduler on CPU0
I (354) app_start: Starting scheduler on CPU1
I (354) main_task: Started on CPU0
I (364) main_task: Calling app_main()

**E (424) mmap: esp_mmu_paddr_to_vaddr(752): paddr isn't mapped**
LFS image loaded
I (424) pp: pp rom version: e7ae62f
I (424) net80211: net80211 rom version: e7ae62f
I (444) wifi:wifi driver task: 3fcb246c, prio:23, stack:6656, core=0
I (454) wifi:wifi firmware version: 0016c4d
I (454) wifi:wifi certification version: v7.0
I (454) wifi:config NVS flash: enabled
I (454) wifi:config nano formating: disabled
I (454) wifi:Init data frame dynamic rx buffer num: 32
I (454) wifi:Init static rx mgmt buffer num: 5
I (454) wifi:Init management short buffer num: 32
I (454) wifi:Init dynamic tx buffer num: 32
I (454) wifi:Init static tx FG buffer num: 2
I (454) wifi:Init static rx buffer size: 1600
I (454) wifi:Init static rx buffer num: 10
I (454) wifi:Init dynamic rx buffer num: 32
I (454) wifi_init: rx ba win: 6
I (454) wifi_init: tcpip mbox: 32
I (454) wifi_init: udp mbox: 6
I (454) wifi_init: tcp mbox: 6
I (454) wifi_init: tcp tx win: 5760
I (454) wifi_init: tcp rx win: 5760
I (454) wifi_init: tcp mss: 1440
I (464) wifi_init: WiFi IRAM OP enabled
I (464) wifi_init: WiFi RX IRAM OP enabled

NodeMCU ESP32 build 2024-10-24 11:37 powered by Lua 5.3.5 [5.3-int32-singlefp] on IDF v5.1.3
cannot open init.lua: No such file or directory

esp32s2 breaks USB connection when trying to write LFS image.

However, in both cases the image is eventually written correctly and the program is executed from LFS.

> node.LFS.main()
Print from LFS
> 

EDIT:

crash log for esp32s2
I (36) boot: ESP-IDF v5.1.3 2nd stage bootloader
I (36) boot: compile time Oct 31 2024 15:36:46
I (36) boot: chip revision: v0.0
I (36) boot.esp32s2: SPI Speed      : 80MHz
I (36) boot.esp32s2: SPI Mode       : DIO
I (37) boot.esp32s2: SPI Flash Size : 4MB
I (37) boot: Enabling RNG early entropy source...
I (37) boot: Partition Table:
I (37) boot: ## Label            Usage          Type ST Offset   Length
I (38) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (39) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (40) boot:  2 factory          factory app      00 00 00010000 00180000
I (42) boot:  3 lfs              unknown          c2 01 00190000 00010000
I (43) boot:  4 storage          Unknown data     01 82 001a0000 00070000
I (44) boot: End of partition table
I (44) esp_image: segment 0: paddr=00010020 vaddr=3f000020 size=2b85ch (178268) map
I (80) esp_image: segment 1: paddr=0003b884 vaddr=3ff9e02c size=00004h (     4) load
I (80) esp_image: segment 2: paddr=0003b890 vaddr=3ffc9b90 size=03590h ( 13712) load
I (84) esp_image: segment 3: paddr=0003ee28 vaddr=40024000 size=011f0h (  4592) load
I (85) esp_image: segment 4: paddr=00040020 vaddr=40080020 size=bf668h (783976) map
I (242) esp_image: segment 5: paddr=000ff690 vaddr=400251f0 size=149a0h ( 84384) load
I (264) esp_image: segment 6: paddr=00114038 vaddr=40070000 size=0002ch (    44) load
I (276) boot: Loaded app from partition at offset 0x10000
I (277) boot: Disabling RNG early entropy source...

E (339) mmap: esp_mmu_paddr_to_vaddr(752): paddr isn't mapped
LFS image loaded

NodeMCU ESP32 build 2024-10-31 15:43 powered by Lua 5.3.5 [5.3-int32-singlefp] on IDF v5.1.3
cannot open init.lua: No such file or directory
> node.LFS.reload("lfs.img")
I (36) boot: ESP-IDF v5.1.3 2nd stage bootloader
I (36) boot: compile time Oct 31 2024 15:36:46
I (36) boot: chip revision: v0.0
I (36) boot.esp32s2: SPI Speed      : 80MHz
I (36) boot.esp32s2: SPI Mode       : DIO
I (38) boot.esp32s2: SPI Flash Size : 4MB
I (38) boot: Enabling RNG early entropy source...
I (38) boot: Partition Table:
I (38) boot: ## Label            Usage          Type ST Offset   Length
I (39) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (40) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (41) boot:  2 factory          factory app      00 00 00010000 00180000
I (43) boot:  3 lfs              unknown          c2 01 00190000 00010000
I (44) boot:  4 storage          Unknown data     01 82 001a0000 00070000
I (45) boot: End of partition table
I (45) esp_image: segment 0: paddr=00010020 vaddr=3f000020 size=2b85ch (178268) map
I (81) esp_image: segment 1: paddr=0003b884 vaddr=3ff9e02c size=00004h (     4) load
I (82) esp_image: segment 2: paddr=0003b890 vaddr=3ffc9b90 size=03590h ( 13712) load
I (86) esp_image: segment 3: paddr=0003ee28 vaddr=40024000 size=011f0h (  4592) load
I (87) esp_image: segment 4: paddr=00040020 vaddr=40080020 size=bf668h (783976) map
I (244) esp_image: segment 5: paddr=000ff690 vaddr=400251f0 size=149a0h ( 84384) load
I (266) esp_image: segment 6: paddr=00114038 vaddr=40070000 size=0002ch (    44) load
I (278) boot: Loaded app from partition at offset 0x10000
I (279) boot: Disabling RNG early entropy source...

E (341) mmap: esp_mmu_paddr_to_vaddr(752): paddr isn't mapped

Erasing LFS from flash addr 0x190000.E (371) task_wdt: esp_task_wdt_init(592): Invalid arguments
to 0x19ffff
LFS image loaded
E (461) gpio: gpio_install_isr_service(500): GPIO isr service already installed
Guru Meditation Error: Core  0 panic'ed (Memory protection fault). 
Unknown operation at address 0xffffffff not permitted (INVALID_MEM_TYPE)

Core  0 register dump:
PC      : 0x40007e42  PS      : 0x00060534  A0      : 0x80098ee1  A1      : 0x3ffd25b0  
--- 0x40007e42: strlen in ROM

A2      : 0x52505f00  A3      : 0x52505efc  A4      : 0x000000ff  A5      : 0x0000ff00  
A6      : 0x00ff0000  A7      : 0xff000000  A8      : 0x00000000  A9      : 0x3ffd2580  
A10     : 0x3ffdafd4  A11     : 0x3f00a825  A12     : 0x00000003  A13     : 0x00000024  
A14     : 0x00ff0000  A15     : 0xff000000  SAR     : 0x0000001e  EXCCAUSE: 0x00000007  
EXCVADDR: 0x00000000  LBEG    : 0x00000003  LEND    : 0x00000024  LCOUNT  : 0x400254d4  
--- Error: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
--- Waiting for the device to reconnect--- 0x400254d4: xt_highint4 at /home/serg/Projects/lua/nodeMCU-firmware/sdk/esp32-esp-idf/components/esp_system/port/soc/esp32s2/highint_hdl.S:60



Backtrace: 0x40007e3f:0x3ffd25b0 0x40098ede:0x3ffd25c0 0x400962e4:0x3ffd2620 0x40096331:0x3ffd2670 0x4009cfab:0x3ffd2690 0x400938f1:0x3ffd26b0 0x40093fb5:0x3ffd26d0 0x4009be9c:0x3ffd26f0 0x40096af3:0x3ffd2710 0x40096c82:0x3ffd2740 0x40096ca9:0x3ffd2760 0x400962ae:0x3ffd2780 0x4009630a:0x3ffd27a0 0x40096331:0x3ffd27f0 0x4009cfab:0x3ffd2810 0x400938f1:0x3ffd2830 0x40094022:0x3ffd2850 0x4009bea7:0x3ffd2870 0x40096af3:0x3ffd2890 0x40096c82:0x3ffd28c0 0x40096ca9:0x3ffd28e0 0x400962ae:0x3ffd2900 0x4009630a:0x3ffd2920 0x40096331:0x3ffd2970 0x4009cfab:0x3ffd2990 0x400938f1:0x3ffd29b0 0x40094022:0x3ffd29d0 0x4009bea7:0x3ffd29f0 0x40096af3:0x3ffd2a10 0x40096c82:0x3ffd2a40 0x40096ca9:0x3ffd2a60 0x400962ae:0x3ffd2a80 0x4009630a:0x3ffd2aa0 0x40096331:0x3ffd2af0 0x4009cfab:0x3ffd2b10 0x400938f1:0x3ffd2b30 0x40094022:0x3ffd2b50 0x4009bea7:0x3ffd2b70 0x40096af3:0x3ffd2b90 0x40096c82:0x3ffd2bc0 0x40096ca9:0x3ffd2be0 0x400962ae:0x3ffd2c00 0x4009630a:0x3ffd2c20 0x40096331:0x3ffd2c70 0x4009cfab:0x3ffd2c90 0x400938f1:0x3ffd2cb0 0x40094022:0x3ffd2cd0 0x4009bea7:0x3ffd2cf0 0x40096af3:0x3ffd2d10 0x40096c82:0x3ffd2d40 0x40096ca9:0x3ffd2d60 0x400962ae:0x3ffd2d80 0x4009630a:0x3ffd2da0 0x40096331:0x3ffd2df0 0x4009cfab:0x3ffd2e10 0x400938f1:0x3ffd2e30 0x40094022:0x3ffd2e50 0x4009bea7:0x3ffd2e70 0x40096af3:0x3ffd2e90 0x40096c82:0x3ffd2ec0 0x40096ca9:0x3ffd2ee0 0x400962ae:0x3ffd2f00 0x4009630a:0x3ffd2f20 0x40096331:0x3ffd2f70 0x4009cfab:0x3ffd2f90 0x400938f1:0x3ffd2fb0 0x40094022:0x3ffd2fd0 0x4009bea7:0x3ffd2ff0 0x40096af3:0x3ffd3010 0x40096c82:0x3ffd3040 0x40096ca9:0x3ffd3060 0x400962ae:0x3ffd3080 0x4009630a:0x3ffd30a0 0x40096331:0x3ffd30f0 0x4009cfab:0x3ffd3110 0x400938f1:0x3ffd3130 0x40094022:0x3ffd3150 0x4009bea7:0x3ffd3170 0x40096af3:0x3ffd3190 0x40096c82:0x3ffd31c0 0x40096ca9:0x3ffd31e0 0x400962ae:0x3ffd3200 0x4009630a:0x3ffd3220 0x40096331:0x3ffd3270 0x4009cfab:0x3ffd3290 0x400938f1:0x3ffd32b0 0x40094022:0x3ffd32d0 0x4009bea7:0x3ffd32f0 0x40096af3:0x3ffd3310 0x40096c82:0x3ffd3340 0x40096ca9:0x3ffd3360 0x400962ae:0x3ffd3380 0x4009630a:0x3ffd33a0 0x40096331:0x3ffd33f0 0x4009cfab:0x3ffd3410 0x400938f1:0x3ffd3430 0x40094022:0x3ffd3450 0x4009bea7:0x3ffd3470 0x40096af3:0x3ffd3490 0x40096c82:0x3ffd34c0 0x40096ca9:0x3ffd34e0 |<-CONTINUES
.
--- 0x40007e3f: strlen in ROM
0x40098ede: luaO_pushvfstring at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lobject.c:414
0x400962e4: luaG_runerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:714 (discriminator 3)
0x40096331: luaG_typeerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:642
0x4009cfab: luaV_finishget at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lvm.c:169
0x400938f1: auxgetstr at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:607
0x40093fb5: lua_getglobal at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:617
0x4009be9c: msghandler at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lua.c:84
0x40096af3: luaD_precall at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:438
0x40096c82: luaD_call at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:502
0x40096ca9: luaD_callnoyield at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:513
0x400962ae: luaG_errormsg at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:701
0x4009630a: luaG_runerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:718
0x40096331: luaG_typeerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:642
0x4009cfab: luaV_finishget at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lvm.c:169
0x400938f1: auxgetstr at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:607
0x40094022: lua_getfield at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:633
0x4009bea7: msghandler at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lua.c:85
0x40096af3: luaD_precall at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:438
0x40096c82: luaD_call at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:502
0x40096ca9: luaD_callnoyield at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:513
0x400962ae: luaG_errormsg at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:701
0x4009630a: luaG_runerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:718
0x40096331: luaG_typeerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:642
0x4009cfab: luaV_finishget at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lvm.c:169
0x400938f1: auxgetstr at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:607
0x40094022: lua_getfield at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:633
0x4009bea7: msghandler at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lua.c:85
0x40096af3: luaD_precall at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:438
0x40096c82: luaD_call at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:502
0x40096ca9: luaD_callnoyield at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:513
0x400962ae: luaG_errormsg at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:701
0x4009630a: luaG_runerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:718
0x40096331: luaG_typeerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:642
0x4009cfab: luaV_finishget at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lvm.c:169
0x400938f1: auxgetstr at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:607
0x40094022: lua_getfield at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:633
0x4009bea7: msghandler at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lua.c:85
0x40096af3: luaD_precall at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:438
0x40096c82: luaD_call at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:502
0x40096ca9: luaD_callnoyield at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:513
0x400962ae: luaG_errormsg at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:701
0x4009630a: luaG_runerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:718
0x40096331: luaG_typeerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:642
0x4009cfab: luaV_finishget at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lvm.c:169
0x400938f1: auxgetstr at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:607
0x40094022: lua_getfield at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:633
0x4009bea7: msghandler at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lua.c:85
0x40096af3: luaD_precall at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:438
0x40096c82: luaD_call at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:502
0x40096ca9: luaD_callnoyield at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:513
0x400962ae: luaG_errormsg at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:701
0x4009630a: luaG_runerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:718
0x40096331: luaG_typeerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:642
0x4009cfab: luaV_finishget at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lvm.c:169
0x400938f1: auxgetstr at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:607
0x40094022: lua_getfield at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:633
0x4009bea7: msghandler at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lua.c:85
0x40096af3: luaD_precall at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:438
0x40096c82: luaD_call at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:502
0x40096ca9: luaD_callnoyield at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:513
0x400962ae: luaG_errormsg at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:701
0x4009630a: luaG_runerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:718
0x40096331: luaG_typeerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:642
0x4009cfab: luaV_finishget at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lvm.c:169
0x400938f1: auxgetstr at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:607
0x40094022: lua_getfield at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:633
0x4009bea7: msghandler at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lua.c:85
0x40096af3: luaD_precall at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:438
0x40096c82: luaD_call at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:502
0x40096ca9: luaD_callnoyield at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:513
0x400962ae: luaG_errormsg at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:701
0x4009630a: luaG_runerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:718
0x40096331: luaG_typeerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:642
0x4009cfab: luaV_finishget at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lvm.c:169
0x400938f1: auxgetstr at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:607
0x40094022: lua_getfield at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:633
0x4009bea7: msghandler at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lua.c:85
0x40096af3: luaD_precall at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:438
0x40096c82: luaD_call at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:502
0x40096ca9: luaD_callnoyield at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:513
0x400962ae: luaG_errormsg at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:701
0x4009630a: luaG_runerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:718
0x40096331: luaG_typeerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:642
0x4009cfab: luaV_finishget at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lvm.c:169
0x400938f1: auxgetstr at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:607
0x40094022: lua_getfield at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:633
0x4009bea7: msghandler at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lua.c:85
0x40096af3: luaD_precall at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:438
0x40096c82: luaD_call at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:502
0x40096ca9: luaD_callnoyield at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:513
0x400962ae: luaG_errormsg at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:701
0x4009630a: luaG_runerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:718
0x40096331: luaG_typeerror at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldebug.c:642
0x4009cfab: luaV_finishget at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lvm.c:169
0x400938f1: auxgetstr at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:607
0x40094022: lua_getfield at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lapi.c:633
0x4009bea7: msghandler at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lua.c:85
0x40096af3: luaD_precall at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:438
0x40096c82: luaD_call at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:502
0x40096ca9: luaD_callnoyield at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/ldo.c:513





ELF file SHA256: 5beb6

@jmattsson
Copy link
Member

I am not (currently) able to reproduce the "once only" issue on my s2 here. I can upload multiple files just fine, using the default log settings (Info).

And yes, when the CDC console is active, WiFi initialisation interferes with USB enumeration somehow, as far as I can tell. Deferring wifi initialisation works around that issue, but results in the wifi log messages appearing after the Lua startup messages and prompt.

Can you reproduce the LFS issue on the main dev-esp32 branch too?

@serg3295
Copy link
Author

serg3295 commented Nov 1, 2024

Unfortunately I still have the "once only" issue. I tested CDC console on esp32-s2 Mini and esp32-s3 Zero using the latest upload-file.py.

I'm on Linux Mint 22 x86_64 Linux Lenovo 6.8.0-48-generic

❯ python ./upload-file.py -p /dev/ttyACM0 a.txt
Loaded 521 bytes of file contents
Synchronising serial... ok
Uploading "a.txt" as "a.txt"
Sending loader........................................................................ ok
Waiting for go-ahead... ok
Sending file contents (using blocksize 80)....... ok, sent 7 blocks
Waiting for final ack... ok
Upload complete.
❯ python ./upload-file.py -p /dev/ttyACM0 a.txt
Loaded 521 bytes of file contents
Synchronising serial...!!!!!
NodeMCU not responding

I even tried running upload-file.py on Windows. Upload failed.

PS C:\Temp> python .\upload-file.py -p COM12 .\srrr.txt
Loaded 397 bytes of file contents
Synchronising serial... ok
Uploading ".\srrr.txt" as ".\srrr.txt"
Sending loader....................................................................Lua error:    stdin:65: invalid escape sequence near '".\s'
>   console.mode(console.NONINTERACTIVE)
>

I'll try to run upload-file.py on another computer later to rule out a hardware (software?) problem with the USB port.

What value is CONFIG_ESP_CONSOLE_USB_CDC_RX_BUF_SIZE set in your sdkconfig?

@serg3295
Copy link
Author

serg3295 commented Nov 1, 2024

Can you reproduce the LFS issue on the main dev-esp32 branch too?

We can not upload LFS image to ESP via usb-serial-jtag on the dev-esp32 branch, so there is no issue with node.reload() 😄

On esp32, esp32-c6 connected via uart console there are also multiple reboots with Guru Meditation error, but there is no freeze during reboot.

LFS reload log for esp32c6 uart console

mode:DIO, clock div:2
load:0x4086c410,len:0xd44
load:0x4086e610,len:0x2de4
load:0x40875728,len:0x17d0
entry 0x4086c410
I (26) boot: ESP-IDF v5.1.3 2nd stage bootloader
I (27) boot: compile time Nov  1 2024 10:42:06
I (28) boot: chip revision: v0.0
I (30) boot.esp32c6: SPI Speed      : 80MHz
I (34) boot.esp32c6: SPI Mode       : DIO
I (39) boot.esp32c6: SPI Flash Size : 4MB
I (44) boot: Enabling RNG early entropy source...
I (49) boot: Partition Table:
I (53) boot: ## Label            Usage          Type ST Offset   Length
I (60) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (68) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (75) boot:  2 factory          factory app      00 00 00010000 00180000
I (83) boot:  3 lfs              unknown          c2 01 00190000 00010000
I (90) boot:  4 storage          Unknown data     01 82 001a0000 00070000
I (98) boot: End of partition table
I (102) esp_image: segment 0: paddr=00010020 vaddr=420e0020 size=2f548h (193864) map
I (189) esp_image: segment 1: paddr=0003f570 vaddr=40800000 size=00aa8h (  2728) load
I (192) esp_image: segment 2: paddr=00040020 vaddr=42000020 size=d0630h (853552) map
I (543) esp_image: segment 3: paddr=00110658 vaddr=40800aa8 size=199a0h (104864) load
I (592) esp_image: segment 4: paddr=0012a000 vaddr=50000000 size=00048h (    72) load
I (603) boot: Loaded app from partition at offset 0x10000
I (604) boot: Disabling RNG early entropy source...
I (615) cpu_start: Unicore app
I (616) cpu_start: Pro cpu up.
W (625) clk: esp_perip_clk_init() has not been implemented yet
I (632) cpu_start: Pro cpu start user code
I (632) cpu_start: cpu freq: 160000000 Hz
I (632) cpu_start: Application information:
I (635) cpu_start: Project name:     nodemcu
I (640) cpu_start: App version:      tmr-libmain-binpatch150-888-g7c
I (647) cpu_start: Compile time:     Nov  1 2024 10:42:00
I (653) cpu_start: ELF file SHA256:  4fb08325410851ec...
I (659) cpu_start: ESP-IDF:          v5.1.3
I (664) cpu_start: Min chip rev:     v0.0
I (668) cpu_start: Max chip rev:     v0.99 
I (673) cpu_start: Chip rev:         v0.0
I (678) heap_init: Initializing. RAM available for dynamic allocation:
I (685) heap_init: At 4081F9C0 len 0005CC50 (371 KiB): D/IRAM
I (691) heap_init: At 4087C610 len 00002F54 (11 KiB): STACK/DIRAM
I (698) heap_init: At 50000048 len 00003FA0 (15 KiB): RTCRAM
I (705) spi_flash: detected chip: generic
I (709) spi_flash: flash io: dio
W (713) spi_flash: Detected size(8192k) larger than the size in the binary image header(4096k). Using the size in the binary image header.
W (726) rmt(legacy): legacy driver is deprecated, please migrate to `driver/rmt_tx.h` and/or `driver/rmt_rx.h`
W (737) ADC: legacy driver is deprecated, please migrate to `esp_adc/adc_oneshot.h`
I (745) sleep: Configure to isolate all GPIO pins in sleep state
I (752) sleep: Enable automatic switching of GPIO sleep configuration
I (759) coexist: coex firmware version: 77cd7f8
I (764) coexist: coexist rom version 5b8dcfa
I (769) app_start: Starting scheduler on CPU0
I (774) main_task: Started on CPU0
I (774) main_task: Calling app_main()

E (804) mmap: esp_mmu_paddr_to_vaddr(752): paddr isn't mapped
I (804) pp: pp rom version: 5b8dcfa
I (804) net80211: net80211 rom version: 5b8dcfa
I (814) wifi:wifi driver task: 4082cee8, prio:23, stack:6656, core=0
I (824) wifi:wifi firmware version: 0016c4d
I (824) wifi:wifi certification version: v7.0
I (824) wifi:config NVS flash: enabled
I (824) wifi:config nano formating: disabled
I (834) wifi:mac_version:HAL_MAC_ESP32AX_761,ut_version:N
I (844) wifi:Init data frame dynamic rx buffer num: 32
I (854) wifi:Init static rx mgmt buffer num: 5
I (854) wifi:Init management short buffer num: 32
I (854) wifi:Init dynamic tx buffer num: 32
I (864) wifi:Init static tx FG buffer num: 2
I (864) wifi:Init static rx buffer size: 1700
I (864) wifi:Init static rx buffer num: 10
I (874) wifi:Init dynamic rx buffer num: 32
I (874) wifi_init: rx ba win: 6
I (874) wifi_init: tcpip mbox: 32
I (874) wifi_init: udp mbox: 6
I (884) wifi_init: tcp mbox: 6
I (884) wifi_init: tcp tx win: 5760
I (884) wifi_init: tcp rx win: 5760
I (894) wifi_init: tcp mss: 1440
I (894) wifi_init: WiFi IRAM OP enabled
I (904) wifi_init: WiFi RX IRAM OP enabled

Erasing LFS from flash addr 0x190000 to 0x19ffff
LFS image loaded
E (944) gpio: gpio_install_isr_service(500): GPIO isr service already installed
Guru Meditation Error: Core  0 panic'ed (Load access fault). Exception was unhandled.

Core  0 register dump:
MEPC    : 0x40021388  RA      : 0x40022542  SP      : 0x40820080  GP      : 0x40817784  
TP      : 0x407f4f44  T0      : 0x40021328  T1      : 0xffffffe0  T2      : 0x4081f9d4  
S0/FP   : 0x4201ecfc  S1      : 0x0407e793  A0      : 0x0407e793  A1      : 0x00000024  
A2      : 0x00001800  A3      : 0x0407e7a3  A4      : 0x00000001  A5      : 0x00000009  
A6      : 0x00000008  A7      : 0x00000000  S2      : 0x00000000  S3      : 0x00000024  
S4      : 0x00000003  S5      : 0x4081f000  S6      : 0x00000000  S7      : 0x4201ecfc  
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000  
T3      : 0x00000000  T4      : 0x696e696d  T5      : 0x00000000  T6      : 0x84ec291d  
MSTATUS : 0x00001881  MTVEC   : 0x40800001  MCAUSE  : 0x00000005  MTVAL   : 0x0407e7a7  
MHARTID : 0x00000000  

Stack memory:
40820080: 0x00000000 0x4081f000 0x00000003 0x00000000 0x408200a0 0x40880000 0x4201ecfc 0x40022542
408200a0: 0x7fffffff 0x00000004 0x00000005 0x00000024 0x408200a0 0x00000024 0x00001800 0x40800a34
408200c0: 0x408200c4 0x00005004 0x65747461 0x00000000 0x00000006 0x00000000 0x408296a0 0x00000000
408200e0: 0x00001800 0x00000024 0x00000024 0x40800c5e 0x00000000 0x40829718 0x00000024 0x420182ee
40820100: 0x00000064 0x00000026 0x4201cf7e 0x00000001 0x00000000 0x40834100 0x408296a0 0x4201b6ba
40820120: 0x00000001 0x42000036 0x408296a0 0x420165a2 0x03c4000a 0x00000000 0x408218b4 0x00000000
40820140: 0x00000006 0x00000026 0x408340f8 0x408340f8 0x000007d0 0x408293f8 0x408296a0 0x420167b0
40820160: 0x00000000 0x00000000 0x408296a0 0x420167e0 0x00000006 0x00000026 0x408296a0 0x42015bd6
40820180: 0x000007d0 0x408293f8 0x408296a0 0x42015c3a 0x00000004 0x4081f000 0x00000003 0x00000001
408201a0: 0x408293f8 0x40880000 0x4081f9c0 0x408201c8 0x7fffffff 0x408340f0 0x408296a0 0x42015c6a
408201c0: 0x408200a0 0x00000024 0x420f28a8 0x420e7aa0 0x42105a68 0x00000000 0x00000008 0x00000000
408201e0: 0x00000006 0x40829894 0x420e7aa0 0x420f28a8 0x420e7844 0x408296a0 0x408340f0 0x4201e4f6
40820200: 0x00000000 0x00000026 0x4201cf7e 0x00000001 0x40829d54 0x408340f0 0x408296a0 0x42012572
40820220: 0x408293f8 0x408340e0 0x408296a0 0x4201cfa2 0x00000000 0x00000000 0x408296a0 0x420165d2
40820240: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000006 0x00000026 0x408340d8 0x408340d8
40820260: 0x000007d0 0x408293d0 0x408296a0 0x420167b0 0x00000000 0x00000000 0x408296a0 0x420167e0
40820280: 0x00000006 0x00000026 0x408296a0 0x42015bd6 0x000007d0 0x408293d0 0x408296a0 0x42015c3a
408202a0: 0x00000004 0x4081f000 0x00000003 0x00000001 0x408293d0 0x40880000 0x4081f9c0 0x408202d8
408202c0: 0x7fffffff 0x408340d0 0x408296a0 0x42015c6a 0x408200a0 0x00000024 0x420f28a8 0x420e7aa0
408202e0: 0x42105a68 0x00000000 0x00000008 0x00000000 0x00000006 0x40829894 0x420e7aa0 0x420f28a8
40820300: 0x420e7844 0x408296a0 0x408340d0 0x4201e4f6 0x00000000 0x00000026 0x4201cf7e 0x00000001
40820320: 0x40829d54 0x408340d0 0x408296a0 0x42012572 0x408293d0 0x408340c0 0x408296a0 0x4201cfa2
40820340: 0x00000000 0x00000000 0x408296a0 0x420165d2 0x00000001 0x00000000 0x00000000 0x00000000
40820360: 0x00000006 0x00000026 0x408340b8 0x408340b8 0x000007d0 0x408293a8 0x408296a0 0x420167b0
40820380: 0x00000000 0x00000000 0x408296a0 0x420167e0 0x00000006 0x00000026 0x408296a0 0x42015bd6
408203a0: 0x000007d0 0x408293a8 0x408296a0 0x42015c3a 0x00000004 0x4081f000 0x00000003 0x00000001
408203c0: 0x408293a8 0x40880000 0x4081f9c0 0x408203e8 0x7fffffff 0x408340b0 0x408296a0 0x42015c6a
408203e0: 0x408200a0 0x00000024 0x420f28a8 0x420e7aa0 0x42105a68 0x00000000 0x00000008 0x00000000
40820400: 0x00000006 0x40829894 0x420e7aa0 0x420f28a8 0x420e7844 0x408296a0 0x408340b0 0x4201e4f6
40820420: 0x00000000 0x00000026 0x4201cf7e 0x00000001 0x40829d54 0x408340b0 0x408296a0 0x42012572
40820440: 0x408293a8 0x408340a0 0x408296a0 0x4201cfa2 0x00000000 0x00000000 0x408296a0 0x420165d2
40820460: 0x00000086 0x4082a160 0x00000000 0x00000000 0x00000006 0x00000026 0x40834098 0x40834098



ELF file SHA256: 4fb08325410851ec

Rebooting...
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001975a
SPIWP:0xee
mode:DIO, clock div:2
load:0x4086c410,len:0xd44
load:0x4086e610,len:0x2de4
load:0x40875728,len:0x17d0
entry 0x4086c410
I (26) boot: ESP-IDF v5.1.3 2nd stage bootloader
I (27) boot: compile time Nov  1 2024 10:42:06
I (28) boot: chip revision: v0.0
I (30) boot.esp32c6: SPI Speed      : 80MHz
I (34) boot.esp32c6: SPI Mode       : DIO
I (39) boot.esp32c6: SPI Flash Size : 4MB
I (44) boot: Enabling RNG early entropy source...
I (49) boot: Partition Table:
I (53) boot: ## Label            Usage          Type ST Offset   Length
I (60) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (68) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (75) boot:  2 factory          factory app      00 00 00010000 00180000
I (83) boot:  3 lfs              unknown          c2 01 00190000 00010000
I (90) boot:  4 storage          Unknown data     01 82 001a0000 00070000
I (98) boot: End of partition table
I (102) esp_image: segment 0: paddr=00010020 vaddr=420e0020 size=2f548h (193864) map
I (189) esp_image: segment 1: paddr=0003f570 vaddr=40800000 size=00aa8h (  2728) load
I (192) esp_image: segment 2: paddr=00040020 vaddr=42000020 size=d0630h (853552) map
I (543) esp_image: segment 3: paddr=00110658 vaddr=40800aa8 size=199a0h (104864) load
I (592) esp_image: segment 4: paddr=0012a000 vaddr=50000000 size=00048h (    72) load
I (603) boot: Loaded app from partition at offset 0x10000
I (604) boot: Disabling RNG early entropy source...
I (615) cpu_start: Unicore app
I (616) cpu_start: Pro cpu up.
W (625) clk: esp_perip_clk_init() has not been implemented yet
I (632) cpu_start: Pro cpu start user code
I (632) cpu_start: cpu freq: 160000000 Hz
I (632) cpu_start: Application information:
I (635) cpu_start: Project name:     nodemcu
I (640) cpu_start: App version:      tmr-libmain-binpatch150-888-g7c
I (647) cpu_start: Compile time:     Nov  1 2024 10:42:00
I (653) cpu_start: ELF file SHA256:  4fb08325410851ec...
I (659) cpu_start: ESP-IDF:          v5.1.3
I (664) cpu_start: Min chip rev:     v0.0
I (668) cpu_start: Max chip rev:     v0.99 
I (673) cpu_start: Chip rev:         v0.0
I (678) heap_init: Initializing. RAM available for dynamic allocation:
I (685) heap_init: At 4081F9C0 len 0005CC50 (371 KiB): D/IRAM
I (691) heap_init: At 4087C610 len 00002F54 (11 KiB): STACK/DIRAM
I (698) heap_init: At 50000048 len 00003FA0 (15 KiB): RTCRAM
I (705) spi_flash: detected chip: generic
I (709) spi_flash: flash io: dio
W (713) spi_flash: Detected size(8192k) larger than the size in the binary image header(4096k). Using the size in the binary image header.
W (726) rmt(legacy): legacy driver is deprecated, please migrate to `driver/rmt_tx.h` and/or `driver/rmt_rx.h`
W (737) ADC: legacy driver is deprecated, please migrate to `esp_adc/adc_oneshot.h`
I (745) sleep: Configure to isolate all GPIO pins in sleep state
I (752) sleep: Enable automatic switching of GPIO sleep configuration
I (759) coexist: coex firmware version: 77cd7f8
I (764) coexist: coexist rom version 5b8dcfa
I (769) app_start: Starting scheduler on CPU0
I (774) main_task: Started on CPU0
I (774) main_task: Calling app_main()

E (804) mmap: esp_mmu_paddr_to_vaddr(752): paddr isn't mapped
LFS image loaded
I (804) pp: pp rom version: 5b8dcfa
I (804) net80211: net80211 rom version: 5b8dcfa
I (824) wifi:wifi driver task: 4082ca38, prio:23, stack:6656, core=0
I (824) wifi:wifi firmware version: 0016c4d
I (824) wifi:wifi certification version: v7.0
I (824) wifi:config NVS flash: enabled
I (824) wifi:config nano formating: disabled
I (834) wifi:mac_version:HAL_MAC_ESP32AX_761,ut_version:N
I (834) wifi:Init data frame dynamic rx buffer num: 32
I (854) wifi:Init static rx mgmt buffer num: 5
I (854) wifi:Init management short buffer num: 32
I (854) wifi:Init dynamic tx buffer num: 32
I (864) wifi:Init static tx FG buffer num: 2
I (864) wifi:Init static rx buffer size: 1700
I (864) wifi:Init static rx buffer num: 10
I (874) wifi:Init dynamic rx buffer num: 32
I (874) wifi_init: rx ba win: 6
I (874) wifi_init: tcpip mbox: 32
I (874) wifi_init: udp mbox: 6
I (884) wifi_init: tcp mbox: 6
I (884) wifi_init: tcp tx win: 5760
I (884) wifi_init: tcp rx win: 5760
I (894) wifi_init: tcp mss: 1440
I (894) wifi_init: WiFi IRAM OP enabled
I (904) wifi_init: WiFi RX IRAM OP enabled

NodeMCU ESP32 build 2024-11-01 10:41 powered by Lua 5.3.5 [5.3-int32-singlefp] on IDF v5.1.3
cannot open init.lua: No such file or directory

@serg3295
Copy link
Author

serg3295 commented Nov 1, 2024

I uploaded lfs.img to esp32c6; (esp_console: usb_serial_jtag; dev-esp32 branch ), then node.LFS.reload("lfs.img")

LFS reload log for esp32c6 usb-serial-jtag console

NodeMCU ESP32 build 2024-11-01 11:12 powered by Lua 5.3.5 [5.3-int32-singlefp] on IDF v5.1.3
cannot open init.lua: No such file or directory
> node.LFS.reload("lfs.img")
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001975a
--- 0x4001975a: software_reset_cpu in ROM

SPIWP:0xee
mode:DIO, clock div:2
load:0x4086c410,len:0xd10
load:0x4086e610,len:0x2d08
load:0x40875728,len:0x17d0
entry 0x4086c410
I (22) boot: ESP-IDF v5.1.3 2nd stage bootloader
I (22) boot: compile time Nov  1 2024 11:12:40
I (24) boot: chip revision: v0.0
I (25) boot.esp32c6: SPI Speed      : 80MHz
I (29) boot.esp32c6: SPI Mode       : DIO
I (34) boot.esp32c6: SPI Flash Size : 4MB
I (39) boot: Enabling RNG early entropy source...
I (44) boot: Partition Table:
I (48) boot: ## Label            Usage          Type ST Offset   Length
I (55) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (63) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (70) boot:  2 factory          factory app      00 00 00010000 00180000
I (78) boot:  3 lfs              unknown          c2 01 00190000 00010000
I (85) boot:  4 storage          Unknown data     01 82 001a0000 00070000
I (93) boot: End of partition table
I (97) esp_image: segment 0: paddr=00010020 vaddr=420d0020 size=2f608h (194056) map
I (183) esp_image: segment 1: paddr=0003f630 vaddr=40800000 size=009e8h (  2536) load
I (186) esp_image: segment 2: paddr=00040020 vaddr=42000020 size=cf980h (850304) map
I (530) esp_image: segment 3: paddr=0010f9a8 vaddr=408009e8 size=198d8h (104664) load
I (579) esp_image: segment 4: paddr=00129288 vaddr=50000000 size=00048h (    72) load
I (591) boot: Loaded app from partition at offset 0x10000
I (592) boot: Disabling RNG early entropy source...
I (593) cpu_start: Unicore app
I (595) cpu_start: Pro cpu up.
W (610) clk: esp_perip_clk_init() has not been implemented yet
I (611) cpu_start: Pro cpu start user code
I (611) cpu_start: cpu freq: 160000000 Hz
I (615) cpu_start: Application information:
I (620) cpu_start: Project name:     nodemcu
I (625) cpu_start: App version:      tmr-libmain-binpatch150-888-g7c
I (632) cpu_start: Compile time:     Nov  1 2024 11:12:35
I (638) cpu_start: ELF file SHA256:  ac361b6b82bfee71...
I (644) cpu_start: ESP-IDF:          v5.1.3
I (649) cpu_start: Min chip rev:     v0.0
I (654) cpu_start: Max chip rev:     v0.99 
I (658) cpu_start: Chip rev:         v0.0
I (663) heap_init: Initializing. RAM available for dynamic allocation:
I (670) heap_init: At 4081F840 len 0005CDD0 (371 KiB): D/IRAM
I (677) heap_init: At 4087C610 len 00002F54 (11 KiB): STACK/DIRAM
I (684) heap_init: At 50000048 len 00003FA0 (15 KiB): RTCRAM
I (691) spi_flash: detected chip: generic
I (695) spi_flash: flash io: dio
W (699) spi_flash: Detected size(8192k) larger than the size in the binary image header(4096k). Using the size in the binary image header.
W (712) rmt(legacy): legacy driver is deprecated, please migrate to `driver/rmt_tx.h` and/or `driver/rmt_rx.h`
W (723) ADC: legacy driver is deprecated, please migrate to `esp_adc/adc_oneshot.h`
I (731) sleep: Configure to isolate all GPIO pins in sleep state
I (737) sleep: Enable automatic switching of GPIO sleep configuration
I (744) coexist: coex firmware version: 77cd7f8
I (745) coexist: coexist rom version 5b8dcfa
I (745) app_start: Starting scheduler on CPU0
I (750) main_task: Started on CPU0
I (750) main_task: Calling app_main()

E (770) mmap: esp_mmu_paddr_to_vaddr(752): paddr isn't mapped
I (770) pp: pp rom version: 5b8dcfa
I (770) net80211: net80211 rom version: 5b8dcfa
I (780) wifi:wifi driver task: 4082c9ec, prio:23, stack:6656, core=0
I (780) wifi:wifi firmware version: 0016c4d
I (780) wifi:wifi certification version: v7.0
I (780) wifi:config NVS flash: enabled
I (780) wifi:config nano formating: disabled
I (780) wifi:mac_version:HAL_MAC_ESP32AX_761,ut_version:N
I (780) wifi:Init data frame dynamic rx buffer num: 32
I (780) wifi:Init static rx mgmt buffer num: 5
I (780) wifi:Init management short buffer num: 32
I (780) wifi:Init dynamic tx buffer num: 32
I (780) wifi:Init static tx FG buffer num: 2
I (780) wifi:Init static rx buffer size: 1700
I (780) wifi:Init static rx buffer num: 10
I (780) wifi:Init dynamic rx buffer num: 32
I (780) wifi_init: rx ba win: 6
I (780) wifi_init: tcpip mbox: 32
I (780) wifi_init: udp mbox: 6
I (780) wifi_init: tcp mbox: 6
I (780) wifi_init: tcp tx win: 5760
I (780) wifi_init: tcp rx win: 5760
I (780) wifi_init: tcp mss: 1440
I (780) wifi_init: WiFi IRAM OP enabled
I (780) wifi_init: WiFi RX IRAM OP enabled

Erasing LFS from flash addr 0x190000 to 0x19ffff
LFS image loaded
E (820) gpio: gpio_install_isr_service(500): GPIO isr service already installed
Guru Meditation Error: Core  0 panic'ed (Load access fault). Exception was unhandled.

Core  0 register dump:
--- Stack dump detected
MEPC    : 0x40022478  RA      : 0x40022532  SP      : 0x4081ff20  GP      : 0x40817624  
--- 0x40022478: multi_heap_internal_lock in ROM
0x40022532: multi_heap_malloc_impl in ROM

TP      : 0x407f4d04  T0      : 0x40022478  T1      : 0x4080f08c  T2      : 0x4081f854  
--- 0x40022478: multi_heap_internal_lock in ROM
0x4080f08c: pm_start_itwt at ??:?

S0/FP   : 0x00000045  S1      : 0x00000024  A0      : 0x00000045  A1      : 0x00000024  
A2      : 0x00001800  A3      : 0x00000024  A4      : 0x4201c312  A5      : 0x4080db0a  
--- 0x4201c312: msghandler at /home/serg/Projects/lua/nodeMCU-firmware/components/lua/lua-5.3/lua.c:84
0x4080db0a: _multi_heap_lock at /home/serg/Projects/lua/nodeMCU-firmware/sdk/esp32-esp-idf/components/heap/multi_heap.c:88

A6      : 0x00000008  A7      : 0x00000000  S2      : 0x40833554  S3      : 0x00000000  
S4      : 0x00000003  S5      : 0x4081f000  S6      : 0x00000000  S7      : 0x00000045  
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000  
T3      : 0x00000000  T4      : 0x696e696d  T5      : 0x00000000  T6      : 0x226f4e61  
MSTATUS : 0x00001881  MTVEC   : 0x40800001  MCAUSE  : 0x00000005  MTVAL   : 0x00000045  
--- 0x40800001: _vector_table at ??:?

MHARTID : 0x00000000  


--- Backtrace:


0x40022478 in ?? ()
#0  0x40022478 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)



ELF file SHA256: ac361b6b82bfee71

Rebooting...
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001975a
--- 0x4001975a: software_reset_cpu in ROM

SPIWP:0xee
mode:DIO, clock div:2
load:0x4086c410,len:0xd10
load:0x4086e610,len:0x2d08
load:0x40875728,len:0x17d0
entry 0x4086c410
I (22) boot: ESP-IDF v5.1.3 2nd stage bootloader
I (22) boot: compile time Nov  1 2024 11:12:40
I (24) boot: chip revision: v0.0
I (25) boot.esp32c6: SPI Speed      : 80MHz
I (29) boot.esp32c6: SPI Mode       : DIO
I (34) boot.esp32c6: SPI Flash Size : 4MB
I (39) boot: Enabling RNG early entropy source...
I (44) boot: Partition Table:
I (48) boot: ## Label            Usage          Type ST Offset   Length
I (55) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (63) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (70) boot:  2 factory          factory app      00 00 00010000 00180000
I (78) boot:  3 lfs              unknown          c2 01 00190000 00010000
I (85) boot:  4 storage          Unknown data     01 82 001a0000 00070000
I (93) boot: End of partition table
I (97) esp_image: segment 0: paddr=00010020 vaddr=420d0020 size=2f608h (194056) map
I (183) esp_image: segment 1: paddr=0003f630 vaddr=40800000 size=009e8h (  2536) load
I (186) esp_image: segment 2: paddr=00040020 vaddr=42000020 size=cf980h (850304) map
I (530) esp_image: segment 3: paddr=0010f9a8 vaddr=408009e8 size=198d8h (104664) load
I (579) esp_image: segment 4: paddr=00129288 vaddr=50000000 size=00048h (    72) load
I (591) boot: Loaded app from partition at offset 0x10000
I (592) boot: Disabling RNG early entropy source...
I (594) cpu_start: Unicore app
I (595) cpu_start: Pro cpu up.
W (610) clk: esp_perip_clk_init() has not been implemented yet
I (611) cpu_start: Pro cpu start user code
I (611) cpu_start: cpu freq: 160000000 Hz
I (615) cpu_start: Application information:
I (620) cpu_start: Project name:     nodemcu
I (625) cpu_start: App version:      tmr-libmain-binpatch150-888-g7c
I (632) cpu_start: Compile time:     Nov  1 2024 11:12:35
I (638) cpu_start: ELF file SHA256:  ac361b6b82bfee71...
I (644) cpu_start: ESP-IDF:          v5.1.3
I (649) cpu_start: Min chip rev:     v0.0
I (654) cpu_start: Max chip rev:     v0.99 
I (658) cpu_start: Chip rev:         v0.0
I (663) heap_init: Initializing. RAM available for dynamic allocation:
I (670) heap_init: At 4081F840 len 0005CDD0 (371 KiB): D/IRAM
I (677) heap_init: At 4087C610 len 00002F54 (11 KiB): STACK/DIRAM
I (684) heap_init: At 50000048 len 00003FA0 (15 KiB): RTCRAM
I (691) spi_flash: detected chip: generic
I (695) spi_flash: flash io: dio
W (699) spi_flash: Detected size(8192k) larger than the size in the binary image header(4096k). Using the size in the binary image header.
W (712) rmt(legacy): legacy driver is deprecated, please migrate to `driver/rmt_tx.h` and/or `driver/rmt_rx.h`
W (723) ADC: legacy driver is deprecated, please migrate to `esp_adc/adc_oneshot.h`
I (731) sleep: Configure to isolate all GPIO pins in sleep state
I (737) sleep: Enable automatic switching of GPIO sleep configuration
I (744) coexist: coex firmware version: 77cd7f8
I (745) coexist: coexist rom version 5b8dcfa
I (745) app_start: Starting scheduler on CPU0
I (750) main_task: Started on CPU0
I (750) main_task: Calling app_main()

E (770) mmap: esp_mmu_paddr_to_vaddr(752): paddr isn't mapped
LFS image loaded
I (770) pp: pp rom version: 5b8dcfa
I (770) net80211: net80211 rom version: 5b8dcfa
I (780) wifi:wifi driver task: 4082c53c, prio:23, stack:6656, core=0
I (780) wifi:wifi firmware version: 0016c4d
I (780) wifi:wifi certification version: v7.0
I (780) wifi:config NVS flash: enabled
I (780) wifi:config nano formating: disabled
I (780) wifi:mac_version:HAL_MAC_ESP32AX_761,ut_version:N
I (780) wifi:Init data frame dynamic rx buffer num: 32
I (780) wifi:Init static rx mgmt buffer num: 5
I (780) wifi:Init management short buffer num: 32
I (780) wifi:Init dynamic tx buffer num: 32
I (780) wifi:Init static tx FG buffer num: 2
I (780) wifi:Init static rx buffer size: 1700
I (780) wifi:Init static rx buffer num: 10
I (780) wifi:Init dynamic rx buffer num: 32
I (780) wifi_init: rx ba win: 6
I (780) wifi_init: tcpip mbox: 32
I (780) wifi_init: udp mbox: 6
I (780) wifi_init: tcp mbox: 6
I (780) wifi_init: tcp tx win: 5760
I (780) wifi_init: tcp rx win: 5760
I (780) wifi_init: tcp mss: 1440
I (780) wifi_init: WiFi IRAM OP enabled
I (780) wifi_init: WiFi RX IRAM OP enabled

NodeMCU ESP32 build 2024-11-01 11:12 powered by Lua 5.3.5 [5.3-int32-singlefp] on IDF v5.1.3
cannot open init.lua: No such file or directory
> 
> node.LFS.main()
Print from LFS
> 

@serg3295
Copy link
Author

serg3295 commented Nov 1, 2024

I am not (currently) able to reproduce the "once only" issue on my s2 here.

I connected the ESP32-S2 (using usb-cdc ) to a USB port on another machine and both upload-file.py and the utilities worked as expected, without errors.
I have very wierd USB ports on my Lenovo ideapad. 😡
Sorry for noice 😕

@jmattsson
Copy link
Member

Are you getting the LFS reload errors even after you got the utilities to work? If so, maybe we should open a new ticket for that? Unless we can demonstrate that it's related to the transmission via the console, I mean.

@serg3295
Copy link
Author

Yes, LFS reload error is still present. I have opened a new issue #3667 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants