marcelstoer / docker-nodemcu-build

Docker image to build NodeMCU firmware for the ESP8266 on your machine
https://hub.docker.com/r/marcelstoer/nodemcu-build/
MIT License
131 stars 63 forks source link

pulsecnt module seems to be "missing" in branch esp32-dev #93

Closed n07-5l4y3r closed 4 years ago

n07-5l4y3r commented 4 years ago

So today I tryed my best to get the Pulse Counter working on my ESP32 but encountered some quite unique issues.

Output Log: image

Full Log I also find it interesting that the chip is doing something with wifi but the firmware shouldn't include this module. (Re-Requesting build's also didn't do the trick) ``` node.restart() > node.restart() ets Jun 8 2016 00:22:57 rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0018,len:4 load:0x3fff001c,len:6736 ho 0 tail 12 room 4 load:0x40078000,len:11116 load:0x40080400,len:5940 entry 0x40080700 I (73) boot: Chip Revision: 1 I (73) boot_comm: chip revision: 1, min. bootloader chip revision: 0 I (41) boot: ESP-IDF v3.3-beta2-887-g9e70825d1 2nd stage bootloader I (41) boot: compile time 17:12:49 I (41) boot: Enabling RNG early entropy source... I (48) boot: SPI Speed : 40MHz I (52) boot: SPI Mode : DIO I (56) boot: SPI Flash Size : 4MB I (60) boot: Partition Table: I (64) boot: ## Label Usage Type ST Offset Length I (71) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (78) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (86) boot: 2 factory factory app 00 00 00010000 00180000 I (93) boot: 3 lfs unknown c2 01 00190000 00010000 I (101) boot: 4 nodemcuspiffs unknown c2 00 001a0000 00070000 I (108) boot: End of partition table I (113) boot_comm: chip revision: 1, min. application chip revision: 0 I (120) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x24c30 (150576) map I (180) esp_image: segment 1: paddr=0x00034c58 vaddr=0x3ffb0000 size=0x035e8 ( 13800) load I (185) esp_image: segment 2: paddr=0x00038248 vaddr=0x40080000 size=0x00400 ( 1024) load I (187) esp_image: segment 3: paddr=0x00038650 vaddr=0x40080400 size=0x079c0 ( 31168) load I (207) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0xa0478 (656504) map I (430) esp_image: segment 5: paddr=0x000e0498 vaddr=0x40087dc0 size=0x0d5bc ( 54716) load I (451) esp_image: segment 6: paddr=0x000eda5c vaddr=0x400c0000 size=0x00064 ( 100) load I (465) boot: Loaded app from partition at offset 0x10000 I (465) boot: Disabling RNG early entropy source... I (465) cpu_start: Pro cpu up. I (469) cpu_start: Application information: I (474) cpu_start: Project name: NodeMCU I (479) cpu_start: App version: dd3b217-dirty I (484) cpu_start: Compile time: Sep 15 2020 17:12:52 I (490) cpu_start: ELF file SHA256: 8de9dabc96a3e962... I (496) cpu_start: ESP-IDF: v3.3-beta2-887-g9e70825d1 I (503) cpu_start: Starting app cpu, entry point is 0x400812e8 I (489) cpu_start: App cpu up. I (513) heap_init: Initializing. RAM available for dynamic allocation: I (520) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (526) heap_init: At 3FFB9CC8 len 00026338 (152 KiB): DRAM I (533) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM I (539) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (545) heap_init: At 4009537C len 0000AC84 (43 KiB): IRAM I (551) cpu_start: Pro cpu start user code I (234) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. Mounting flash filesystem... No LFS image loaded I (395) wifi:wifi driver task: 3ffc4430, prio:23, stack:3584, core=0 I (395) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (395) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (425) wifi:wifi firmware version: 44aa95c I (425) wifi:config NVS flash: enabled I (425) wifi:config nano formating: disabled I (425) wifi:Init dynamic tx buffer num: 32 I (435) wifi:Init data frame dynamic rx buffer num: 32 I (435) wifi:Init management frame dynamic rx buffer num: 32 I (445) wifi:Init management short buffer num: 32 I (445) wifi:Init static rx buffer size: 1600 I (455) wifi:Init static rx buffer num: 10 I (455) wifi:Init dynamic rx buffer num: 32 NodeMCU ESP32 built with Docker provided by frightanic.com branch: dev-esp32 commit: f4887bf134235c05e6c9b2efad370e6d5018f91a SSL: true modules: - built on nodemcu-build.com provided by frightanic.com branch: dev-esp32 commit: dd3b217df201fde00fcf84be1d485d555d433bed SSL: false modules: file,gpio,node,pulsecnt,tmr,uart build 2020-09-15-17-10-55 powered by Lua 5.1.4 on ESP-IDF v3.3-beta1-1391-g9e70825d1 on SDK IDF Hello World! file romtable: 0x3f4042a4 gpio romtable: 0x3f404530 node romtable: 0x3f403fe8 pulsecnt nil tmr romtable: 0x3f404b34 uart romtable: 0x3f409064 ```

Code in question: image

Firmware used: image image image

Tool-Chain used: https://nodemcu-build.com/index.php http://chilipeppr.com/esp32 https://github.com/marcelstoer/nodemcu-pyflasher/releases/download/v4.0/NodeMCU-PyFlasher-4.0-x64.exe

Flash Log: image

I am unsure how to act further therefore im opening this issue (which is btw my first so please excuse me for the bad writeup)

marcelstoer commented 4 years ago

This...does not make any sense at all.

NodeMCU ESP32 built with Docker provided by frightanic.com
  branch: dev-esp32
  commit: f4887bf134235c05e6c9b2efad370e6d5018f91a
  SSL: true
  modules: -
built on nodemcu-build.com provided by frightanic.com
  branch: dev-esp32
  commit: dd3b217df201fde00fcf84be1d485d555d433bed
  SSL: false
  modules: file,gpio,node,pulsecnt,tmr,uart
build 2020-09-15-17-10-55 powered by Lua 5.1.4 on ESP-IDF v3.3-beta1-1391-g9e70825d1 on SDK IDF

You either flash the firmware from the cloud builder - what you did according to the screen shot - or the one you built yourself with Docker - which you also seem to have done. I don't understand how you could get a mix therefore? And what's with ChilliPeppr?

Here's what I would do:

If all is well then continue by building a new firmware with the modules you really need and repeat.

n07-5l4y3r commented 4 years ago

The firmware used in those screenshots is one from the cloud-builder. I havent attempted building it myself.

The script in the end shall have just one ability: counting a single channel and returning this measurement through rs232. Therefore no WiFi connection is needed as USB/Serial via UART is enough for this case. So I obviously need the pulsecnt module: which seems undefined according this screen tho, which right now is my only problem.

And what's with ChilliPeppr? Thats just the "IDE" im using for uploading/executing the script.

So again what I did so far:


I am requesting a build without pulsecnt right now which will prolly execute and run just as good but obviously will also not have the pulse counter module. (next comment upcomming)

n07-5l4y3r commented 4 years ago

As promised (and expected):

Mail ``` Your NodeMCU custom build finished successfully. You may now download the firmware: - float: https://nodemcu-build.com/builds/nodemcu-dev-esp32-7-modules-2020-09-15-19-44-47-float.bin - integer: https://nodemcu-build.com/builds/nodemcu-dev-esp32-7-modules-2020-09-15-19-44-47-integer.bin This was built against the dev-esp32 branch and includes the following modules: file, gpio, net, node, tmr, uart, wifi. The files are guaranteed to be available for download for 24h. I invite you to try my standalone desktop tool to flash firmware binaries: https://github.com/marcelstoer/nodemcu-pyflasher Learn how to flash the firmware: https://nodemcu.readthedocs.io/en/dev-esp32/en/flash/. If you're upgrading from a previous version you should carefully study the "Upgrading Firmware" instructions on that page. Please help keep this service alive: http://nodemcu-build.com/faq.php#support ```
Flash-Log ``` Command: esptool.py --port COM3 --baud 115200 --after no_reset write_flash --flash_mode dio 0x00000 F:\Users\user\Downloads\nodemcu-dev-esp32-7-modules-2020-09-15-19-44-47-float.bin --erase-all esptool.py v2.6 Serial port COM3 Connecting...... Detecting chip type... ESP32 Chip is ESP32D0WDQ6 (revision 1) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None MAC: 24:62:ab:ff:8e:64 Uploading stub... Running stub... Stub running... Configuring flash size... Auto-detected Flash size: 4MB Erasing flash (this may take a while)... Chip erase completed successfully in 7.8s Compressed 985840 bytes to 615676... Wrote 985840 bytes (615676 compressed) at 0x00000000 in 54.6 seconds (effective 144.4 kbit/s)... Hash of data verified. Leaving... Staying in bootloader. Firmware successfully flashed. Unplug/replug or reset device to switch back to normal boot mode. ```

stdout ``` node.restart() node.restart() ets Jun 8 2016 00:22:57 rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0018,len:4 load:0x3fff001c,len:6736 ho 0 tail 12 room 4 load:0x40078000,len:11116 load:0x40080400,len:5940 entry 0x40080700 I (73) boot: Chip Revision: 1 I (73) boot_comm: chip revision: 1, min. bootloader chip revision: 0 I (41) boot: ESP-IDF v3.3-beta2-887-g9e70825d1 2nd stage bootloader I (41) boot: compile time 19:44:49 I (41) boot: Enabling RNG early entropy source... I (48) boot: SPI Speed : 40MHz I (52) boot: SPI Mode : DIO I (56) boot: SPI Flash Size : 4MB I (60) boot: Partition Table: I (64) boot: ## Label Usage Type ST Offset Length I (71) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (78) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (86) boot: 2 factory factory app 00 00 00010000 00180000 I (93) boot: 3 lfs unknown c2 01 00190000 00010000 I (101) boot: 4 nodemcuspiffs unknown c2 00 001a0000 00070000 I (108) boot: End of partition table I (113) boot_comm: chip revision: 1, min. application chip revision: 0 I (120) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x25e38 (155192) map I (181) esp_image: segment 1: paddr=0x00035e60 vaddr=0x3ffb0000 size=0x035ec ( 13804) load I (187) esp_image: segment 2: paddr=0x00039454 vaddr=0x40080000 size=0x00400 ( 1024) load I (188) esp_image: segment 3: paddr=0x0003985c vaddr=0x40080400 size=0x067b4 ( 26548) load I (207) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0xa2278 (664184) map I (432) esp_image: segment 5: paddr=0x000e2298 vaddr=0x40086bb4 size=0x0e7c8 ( 59336) load I (455) esp_image: segment 6: paddr=0x000f0a68 vaddr=0x400c0000 size=0x00064 ( 100) load I (469) boot: Loaded app from partition at offset 0x10000 I (469) boot: Disabling RNG early entropy source... I (469) cpu_start: Pro cpu up. I (473) cpu_start: Application information: I (478) cpu_start: Project name: NodeMCU I (483) cpu_start: App version: dd3b217-dirty I (488) cpu_start: Compile time: Sep 15 2020 19:44:52 I (494) cpu_start: ELF file SHA256: cfc264376821d2e0... I (500) cpu_start: ESP-IDF: v3.3-beta2-887-g9e70825d1 I (507) cpu_start: Starting app cpu, entry point is 0x400812e8 I (493) cpu_start: App cpu up. I (518) heap_init: Initializing. RAM available for dynamic allocation: I (524) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (530) heap_init: At 3FFB9CD0 len 00026330 (152 KiB): DRAM I (537) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM I (543) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (549) heap_init: At 4009537C len 0000AC84 (43 KiB): IRAM I (556) cpu_start: Pro cpu start user code I (238) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. Mounting flash filesystem... No LFS image loaded I (399) wifi:wifi driver task: 3ffc4624, prio:23, stack:3584, core=0 I (399) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (399) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (429) wifi:wifi firmware version: 44aa95c I (429) wifi:config NVS flash: enabled I (429) wifi:config nano formating: disabled I (429) wifi:Init dynamic tx buffer num: 32 I (439) wifi:Init data frame dynamic rx buffer num: 32 I (439) wifi:Init management frame dynamic rx buffer num: 32 I (449) wifi:Init management short buffer num: 32 I (449) wifi:Init static rx buffer size: 1600 I (459) wifi:Init static rx buffer num: 10 I (459) wifi:Init dynamic rx buffer num: 32 NodeMCU ESP32 built with Docker provided by frightanic.com branch: dev-esp32 commit: f4887bf134235c05e6c9b2efad370e6d5018f91a SSL: true modules: - built on nodemcu-build.com provided by frightanic.com branch: dev-esp32 commit: dd3b217df201fde00fcf84be1d485d555d433bed SSL: false modules: file,gpio,net,node,tmr,uart,wifi build 2020-09-15-19-44-47 powered by Lua 5.1.4 on ESP-IDF v3.3-beta1-1391-g9e70825d1 on SDK IDF lua: cannot open init.lua file.open("init.lua", "w") file.writeline([[print("Hello World!")]]) file.close() node.compile("init.lua") > file.open("init.lua", "w") > file.writeline([[print("Hello World!")]]) > file.close() > node.compile("init.lua") node.restart() > node.restart() ets Jun 8 2016 00:22:57 rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0018,len:4 load:0x3fff001c,len:6736 ho 0 tail 12 room 4 load:0x40078000,len:11116 load:0x40080400,len:5940 entry 0x40080700 I (73) boot: Chip Revision: 1 I (73) boot_comm: chip revision: 1, min. bootloader chip revision: 0 I (41) boot: ESP-IDF v3.3-beta2-887-g9e70825d1 2nd stage bootloader I (41) boot: compile time 19:44:49 I (41) boot: Enabling RNG early entropy source... I (48) boot: SPI Speed : 40MHz I (52) boot: SPI Mode : DIO I (56) boot: SPI Flash Size : 4MB I (60) boot: Partition Table: I (64) boot: ## Label Usage Type ST Offset Length I (71) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (78) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (86) boot: 2 factory factory app 00 00 00010000 00180000 I (93) boot: 3 lfs unknown c2 01 00190000 00010000 I (101) boot: 4 nodemcuspiffs unknown c2 00 001a0000 00070000 I (108) boot: End of partition table I (113) boot_comm: chip revision: 1, min. application chip revision: 0 I (120) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x25e38 (155192) map I (181) esp_image: segment 1: paddr=0x00035e60 vaddr=0x3ffb0000 size=0x035ec ( 13804) load I (187) esp_image: segment 2: paddr=0x00039454 vaddr=0x40080000 size=0x00400 ( 1024) load I (188) esp_image: segment 3: paddr=0x0003985c vaddr=0x40080400 size=0x067b4 ( 26548) load I (207) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0xa2278 (664184) map I (432) esp_image: segment 5: paddr=0x000e2298 vaddr=0x40086bb4 size=0x0e7c8 ( 59336) load I (455) esp_image: segment 6: paddr=0x000f0a68 vaddr=0x400c0000 size=0x00064 ( 100) load I (469) boot: Loaded app from partition at offset 0x10000 I (469) boot: Disabling RNG early entropy source... I (469) cpu_start: Pro cpu up. I (473) cpu_start: Application information: I (478) cpu_start: Project name: NodeMCU I (483) cpu_start: App version: dd3b217-dirty I (488) cpu_start: Compile time: Sep 15 2020 19:44:52 I (494) cpu_start: ELF file SHA256: cfc264376821d2e0... I (500) cpu_start: ESP-IDF: v3.3-beta2-887-g9e70825d1 I (507) cpu_start: Starting app cpu, entry point is 0x400812e8 I (493) cpu_start: App cpu up. I (518) heap_init: Initializing. RAM available for dynamic allocation: I (524) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (530) heap_init: At 3FFB9CD0 len 00026330 (152 KiB): DRAM I (537) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM I (543) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (549) heap_init: At 4009537C len 0000AC84 (43 KiB): IRAM I (556) cpu_start: Pro cpu start user code I (238) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. Mounting flash filesystem... No LFS image loaded I (399) wifi:wifi driver task: 3ffc4624, prio:23, stack:3584, core=0 I (399) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (399) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (429) wifi:wifi firmware version: 44aa95c I (429) wifi:config NVS flash: enabled I (429) wifi:config nano formating: disabled I (429) wifi:Init dynamic tx buffer num: 32 I (439) wifi:Init data frame dynamic rx buffer num: 32 I (439) wifi:Init management frame dynamic rx buffer num: 32 I (449) wifi:Init management short buffer num: 32 I (449) wifi:Init static rx buffer size: 1600 I (459) wifi:Init static rx buffer num: 10 I (459) wifi:Init dynamic rx buffer num: 32 NodeMCU ESP32 built with Docker provided by frightanic.com branch: dev-esp32 commit: f4887bf134235c05e6c9b2efad370e6d5018f91a SSL: true modules: - built on nodemcu-build.com provided by frightanic.com branch: dev-esp32 commit: dd3b217df201fde00fcf84be1d485d555d433bed SSL: false modules: file,gpio,net,node,tmr,uart,wifi build 2020-09-15-19-44-47 powered by Lua 5.1.4 on ESP-IDF v3.3-beta1-1391-g9e70825d1 on SDK IDF Hello World! ```

Next Comment will be the exact same but with the "Pulse Counter" module.

n07-5l4y3r commented 4 years ago
Mail ``` Your NodeMCU custom build finished successfully. You may now download the firmware: - float: https://nodemcu-build.com/builds/nodemcu-dev-esp32-8-modules-2020-09-15-20-02-16-float.bin - integer: https://nodemcu-build.com/builds/nodemcu-dev-esp32-8-modules-2020-09-15-20-02-16-integer.bin This was built against the dev-esp32 branch and includes the following modules: file, gpio, net, node, pulsecnt, tmr, uart, wifi. The files are guaranteed to be available for download for 24h. I invite you to try my standalone desktop tool to flash firmware binaries: https://github.com/marcelstoer/nodemcu-pyflasher Learn how to flash the firmware: https://nodemcu.readthedocs.io/en/dev-esp32/en/flash/. If you're upgrading from a previous version you should carefully study the "Upgrading Firmware" instructions on that page. Please help keep this service alive: http://nodemcu-build.com/faq.php#support ```
Flash-Log ``` Command: esptool.py --port COM3 --baud 115200 --after no_reset write_flash --flash_mode dio 0x00000 F:\Users\user\Downloads\nodemcu-dev-esp32-8-modules-2020-09-15-20-02-16-float.bin --erase-all esptool.py v2.6 Serial port COM3 Connecting..... Detecting chip type... ESP32 Chip is ESP32D0WDQ6 (revision 1) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None MAC: 24:62:ab:ff:8e:64 Uploading stub... Running stub... Stub running... Configuring flash size... Auto-detected Flash size: 4MB Erasing flash (this may take a while)... Chip erase completed successfully in 7.8s Compressed 985856 bytes to 615704... Wrote 985856 bytes (615704 compressed) at 0x00000000 in 54.6 seconds (effective 144.3 kbit/s)... Hash of data verified. Leaving... Staying in bootloader. Firmware successfully flashed. Unplug/replug or reset device to switch back to normal boot mode. ```
stdout ``` ets Jun 8 2016 00:22:57 rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0018,len:4 load:0x3fff001c,len:6736 ho 0 tail 12 room 4 load:0x40078000,len:11116 load:0x40080400,len:5940 entry 0x40080700 I (73) boot: Chip Revision: 1 I (73) boot_comm: chip revision: 1, min. bootloader chip revision: 0 I (41) boot: ESP-IDF v3.3-beta2-887-g9e70825d1 2nd stage bootloader I (41) boot: compile time 20:02:18 I (41) boot: Enabling RNG early entropy source... I (48) boot: SPI Speed : 40MHz I (52) boot: SPI Mode : DIO I (56) boot: SPI Flash Size : 4MB I (60) boot: Partition Table: I (63) boot: ## Label Usage Type ST Offset Length I (71) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (78) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (86) boot: 2 factory factory app 00 00 00010000 00180000 I (93) boot: 3 lfs unknown c2 01 00190000 00010000 I (101) boot: 4 nodemcuspiffs unknown c2 00 001a0000 00070000 I (108) boot: End of partition table I (112) boot_comm: chip revision: 1, min. application chip revision: 0 I (120) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x25e40 (155200) map I (181) esp_image: segment 1: paddr=0x00035e68 vaddr=0x3ffb0000 size=0x035ec ( 13804) load I (186) esp_image: segment 2: paddr=0x0003945c vaddr=0x40080000 size=0x00400 ( 1024) load I (188) esp_image: segment 3: paddr=0x00039864 vaddr=0x40080400 size=0x067ac ( 26540) load I (207) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0xa2278 (664184) map I (432) esp_image: segment 5: paddr=0x000e2298 vaddr=0x40086bac size=0x0e7d0 ( 59344) load I (455) esp_image: segment 6: paddr=0x000f0a70 vaddr=0x400c0000 size=0x00064 ( 100) load I (469) boot: Loaded app from partition at offset 0x10000 I (469) boot: Disabling RNG early entropy source... I (469) cpu_start: Pro cpu up. I (473) cpu_start: Application information: I (478) cpu_start: Project name: NodeMCU I (483) cpu_start: App version: dd3b217-dirty I (488) cpu_start: Compile time: Sep 15 2020 20:02:21 I (494) cpu_start: ELF file SHA256: 6303efc429f147ca... I (500) cpu_start: ESP-IDF: v3.3-beta2-887-g9e70825d1 I (507) cpu_start: Starting app cpu, entry point is 0x400812e8 I (0) cpu_start: App cpu up. I (517) heap_init: Initializing. RAM available for dynamic allocation: I (524) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (530) heap_init: At 3FFB9CD0 len 00026330 (152 KiB): DRAM I (536) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM I (543) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (549) heap_init: At 4009537C len 0000AC84 (43 KiB): IRAM I (555) cpu_start: Pro cpu start user code I (238) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. Mounting flash filesystem... Formatting file system. Please wait... No LFS image loaded I (7219) wifi:wifi driver task: 3ffc411c, prio:23, stack:3584, core=0 I (7219) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (7219) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (7279) wifi:wifi firmware version: 44aa95c I (7279) wifi:config NVS flash: enabled I (7279) wifi:config nano formating: disabled I (7279) wifi:Init dynamic tx buffer num: 32 I (7279) wifi:Init data frame dynamic rx buffer num: 32 I (7289) wifi:Init management frame dynamic rx buffer num: 32 I (7289) wifi:Init management short buffer num: 32 I (7299) wifi:Init static rx buffer size: 1600 I (7299) wifi:Init static rx buffer num: 10 I (7299) wifi:Init dynamic rx buffer num: 32 NodeMCU ESP32 built with Docker provided by frightanic.com branch: dev-esp32 commit: f4887bf134235c05e6c9b2efad370e6d5018f91a SSL: true modules: - built on nodemcu-build.com provided by frightanic.com branch: dev-esp32 commit: dd3b217df201fde00fcf84be1d485d555d433bed SSL: false modules: file,gpio,net,node,pulsecnt,tmr,uart,wifi build 2020-09-15-20-02-16 powered by Lua 5.1.4 on ESP-IDF v3.3-beta1-1391-g9e70825d1 on SDK IDF lua: cannot open init.lua file.open("init.lua", "w") file.writeline([[print("Hello World!")]]) file.writeline([[]]) file.writeline([[print("gpio module loaded?")]]) file.writeline([[print(gpio)]]) > file.open("init.lua", "w") file.writeline([[]]) > file.writeline([[print("Hello World!")]]) file.writeline([[print("pulsecnt module loaded?")]]) > file.writeline([[]]) file.writeline([[print(pulsecnt)]]) > file.writeline([[print("gpio module loaded?")]]) file.close() node.compile("init.lua") > file.writeline([[print(gpio)]]) > file.writeline([[]]) > file.writeline([[print("pulsecnt module loaded?")]]) > file.writeline([[print(pulsecnt)]]) > file.close() > node.compile("init.lua") node.restart() > node.restart() ets Jun 8 2016 00:22:57 rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0018,len:4 load:0x3fff001c,len:6736 ho 0 tail 12 room 4 load:0x40078000,len:11116 load:0x40080400,len:5940 entry 0x40080700 I (73) boot: Chip Revision: 1 I (73) boot_comm: chip revision: 1, min. bootloader chip revision: 0 I (41) boot: ESP-IDF v3.3-beta2-887-g9e70825d1 2nd stage bootloader I (41) boot: compile time 20:02:18 I (41) boot: Enabling RNG early entropy source... I (48) boot: SPI Speed : 40MHz I (52) boot: SPI Mode : DIO I (56) boot: SPI Flash Size : 4MB I (60) boot: Partition Table: I (64) boot: ## Label Usage Type ST Offset Length I (71) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (78) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (86) boot: 2 factory factory app 00 00 00010000 00180000 I (93) boot: 3 lfs unknown c2 01 00190000 00010000 I (101) boot: 4 nodemcuspiffs unknown c2 00 001a0000 00070000 I (108) boot: End of partition table I (113) boot_comm: chip revision: 1, min. application chip revision: 0 I (120) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x25e40 (155200) map I (181) esp_image: segment 1: paddr=0x00035e68 vaddr=0x3ffb0000 size=0x035ec ( 13804) load I (187) esp_image: segment 2: paddr=0x0003945c vaddr=0x40080000 size=0x00400 ( 1024) load I (188) esp_image: segment 3: paddr=0x00039864 vaddr=0x40080400 size=0x067ac ( 26540) load I (207) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0xa2278 (664184) map I (432) esp_image: segment 5: paddr=0x000e2298 vaddr=0x40086bac size=0x0e7d0 ( 59344) load I (455) esp_image: segment 6: paddr=0x000f0a70 vaddr=0x400c0000 size=0x00064 ( 100) load I (469) boot: Loaded app from partition at offset 0x10000 I (469) boot: Disabling RNG early entropy source... I (469) cpu_start: Pro cpu up. I (473) cpu_start: Application information: I (478) cpu_start: Project name: NodeMCU I (483) cpu_start: App version: dd3b217-dirty I (488) cpu_start: Compile time: Sep 15 2020 20:02:21 I (494) cpu_start: ELF file SHA256: 6303efc429f147ca... I (500) cpu_start: ESP-IDF: v3.3-beta2-887-g9e70825d1 I (507) cpu_start: Starting app cpu, entry point is 0x400812e8 I (493) cpu_start: App cpu up. I (518) heap_init: Initializing. RAM available for dynamic allocation: I (524) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (530) heap_init: At 3FFB9CD0 len 00026330 (152 KiB): DRAM I (537) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM I (543) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (549) heap_init: At 4009537C len 0000AC84 (43 KiB): IRAM I (556) cpu_start: Pro cpu start user code I (238) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. Mounting flash filesystem... No LFS image loaded I (399) wifi:wifi driver task: 3ffc4624, prio:23, stack:3584, core=0 I (399) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (399) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (429) wifi:wifi firmware version: 44aa95c I (429) wifi:config NVS flash: enabled I (429) wifi:config nano formating: disabled I (429) wifi:Init dynamic tx buffer num: 32 I (439) wifi:Init data frame dynamic rx buffer num: 32 I (439) wifi:Init management frame dynamic rx buffer num: 32 I (449) wifi:Init management short buffer num: 32 I (449) wifi:Init static rx buffer size: 1600 I (459) wifi:Init static rx buffer num: 10 I (459) wifi:Init dynamic rx buffer num: 32 NodeMCU ESP32 built with Docker provided by frightanic.com branch: dev-esp32 commit: f4887bf134235c05e6c9b2efad370e6d5018f91a SSL: true modules: - built on nodemcu-build.com provided by frightanic.com branch: dev-esp32 commit: dd3b217df201fde00fcf84be1d485d555d433bed SSL: false modules: file,gpio,net,node,pulsecnt,tmr,uart,wifi build 2020-09-15-20-02-16 powered by Lua 5.1.4 on ESP-IDF v3.3-beta1-1391-g9e70825d1 on SDK IDF Hello World! gpio module loaded? romtable: 0x3f404a70 pulsecnt module loaded? nil ```
Script ``` print("Hello World!") print("gpio module loaded?") print(gpio) print("pulsecnt module loaded?") print(pulsecnt) ```

same problem sadly 😞

marcelstoer commented 4 years ago

I'm a little less confused now. This hit me out of the blue, sorry.

The weird boot message appears to be a bug - never seen anything like that. I'm tracking this at https://github.com/marcelstoer/nodemcu-custom-build/issues/39.

The missing pulse counter module is related to an upstream change in the firmware Kconfig that wasn't properly reflected in the cloud builder. This is already fixed.