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

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

Closed
n07-5l4y3r opened this issue Sep 15, 2020 · 5 comments
Closed

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

n07-5l4y3r opened this issue Sep 15, 2020 · 5 comments

Comments

@n07-5l4y3r
Copy link

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
�[0;32mI (73) boot: Chip Revision: 1�[0m
�[0;32mI (73) boot_comm: chip revision: 1, min. bootloader chip revision: 0�[0m
�[0;32mI (41) boot: ESP-IDF v3.3-beta2-887-g9e70825d1 2nd stage bootloader�[0m
�[0;32mI (41) boot: compile time 17:12:49�[0m
�[0;32mI (41) boot: Enabling RNG early entropy source...�[0m
�[0;32mI (48) boot: SPI Speed      : 40MHz�[0m
�[0;32mI (52) boot: SPI Mode       : DIO�[0m
�[0;32mI (56) boot: SPI Flash Size : 4MB�[0m
�[0;32mI (60) boot: Partition Table:�[0m
�[0;32mI (64) boot: ## Label            Usage          Type ST Offset   Length�[0m
�[0;32mI (71) boot:  0 nvs              WiFi data        01 02 00009000 00006000�[0m
�[0;32mI (78) boot:  1 phy_init         RF data          01 01 0000f000 00001000�[0m
�[0;32mI (86) boot:  2 factory          factory app      00 00 00010000 00180000�[0m
�[0;32mI (93) boot:  3 lfs              unknown          c2 01 00190000 00010000�[0m
�[0;32mI (101) boot:  4 nodemcuspiffs    unknown          c2 00 001a0000 00070000�[0m
�[0;32mI (108) boot: End of partition table�[0m
�[0;32mI (113) boot_comm: chip revision: 1, min. application chip revision: 0�[0m
�[0;32mI (120) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x24c30 (150576) map�[0m
�[0;32mI (180) esp_image: segment 1: paddr=0x00034c58 vaddr=0x3ffb0000 size=0x035e8 ( 13800) load�[0m
�[0;32mI (185) esp_image: segment 2: paddr=0x00038248 vaddr=0x40080000 size=0x00400 (  1024) load�[0m
�[0;32mI (187) esp_image: segment 3: paddr=0x00038650 vaddr=0x40080400 size=0x079c0 ( 31168) load�[0m
�[0;32mI (207) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0xa0478 (656504) map�[0m
�[0;32mI (430) esp_image: segment 5: paddr=0x000e0498 vaddr=0x40087dc0 size=0x0d5bc ( 54716) load�[0m
�[0;32mI (451) esp_image: segment 6: paddr=0x000eda5c vaddr=0x400c0000 size=0x00064 (   100) load�[0m
�[0;32mI (465) boot: Loaded app from partition at offset 0x10000�[0m
�[0;32mI (465) boot: Disabling RNG early entropy source...�[0m
�[0;32mI (465) cpu_start: Pro cpu up.�[0m
�[0;32mI (469) cpu_start: Application information:�[0m
�[0;32mI (474) cpu_start: Project name:     NodeMCU�[0m
�[0;32mI (479) cpu_start: App version:      dd3b217-dirty�[0m
�[0;32mI (484) cpu_start: Compile time:     Sep 15 2020 17:12:52�[0m
�[0;32mI (490) cpu_start: ELF file SHA256:  8de9dabc96a3e962...�[0m
�[0;32mI (496) cpu_start: ESP-IDF:          v3.3-beta2-887-g9e70825d1�[0m
�[0;32mI (503) cpu_start: Starting app cpu, entry point is 0x400812e8�[0m
�[0;32mI (489) cpu_start: App cpu up.�[0m
�[0;32mI (513) heap_init: Initializing. RAM available for dynamic allocation:�[0m
�[0;32mI (520) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM�[0m
�[0;32mI (526) heap_init: At 3FFB9CC8 len 00026338 (152 KiB): DRAM�[0m
�[0;32mI (533) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM�[0m
�[0;32mI (539) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM�[0m
�[0;32mI (545) heap_init: At 4009537C len 0000AC84 (43 KiB): IRAM�[0m
�[0;32mI (551) cpu_start: Pro cpu start user code�[0m
�[0;32mI (234) cpu_start: Starting scheduler on PRO CPU.�[0m
�[0;32mI (0) cpu_start: Starting scheduler on APP CPU.�[0m

Mounting flash filesystem...
No LFS image loaded
I (395) wifi:wifi driver task: 3ffc4430, prio:23, stack:3584, core=0
�[0;32mI (395) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE�[0m
�[0;32mI (395) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE�[0m
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
Copy link
Owner

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:

  • build a binary on the cloud builder using only the default modules
  • flash it
  • confirm you get a clean boot message
  • connect to your WiFi

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

@n07-5l4y3r
Copy link
Author

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:

  • forged a binary using the cloud builder
  • flashed it
  • got boot
  • uploaded hello world script
  • got expected reply
  • uploaded this script image
  • also got expected reply EXCEPT pulsecnt == nil

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
Copy link
Author

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
�[0;32mI (73) boot: Chip Revision: 1�[0m
�[0;32mI (73) boot_comm: chip revision: 1, min. bootloader chip revision: 0�[0m
�[0;32mI (41) boot: ESP-IDF v3.3-beta2-887-g9e70825d1 2nd stage bootloader�[0m
�[0;32mI (41) boot: compile time 19:44:49�[0m
�[0;32mI (41) boot: Enabling RNG early entropy source...�[0m
�[0;32mI (48) boot: SPI Speed      : 40MHz�[0m
�[0;32mI (52) boot: SPI Mode       : DIO�[0m
�[0;32mI (56) boot: SPI Flash Size : 4MB�[0m
�[0;32mI (60) boot: Partition Table:�[0m
�[0;32mI (64) boot: ## Label            Usage          Type ST Offset   Length�[0m
�[0;32mI (71) boot:  0 nvs              WiFi data        01 02 00009000 00006000�[0m
�[0;32mI (78) boot:  1 phy_init         RF data          01 01 0000f000 00001000�[0m
�[0;32mI (86) boot:  2 factory          factory app      00 00 00010000 00180000�[0m
�[0;32mI (93) boot:  3 lfs              unknown          c2 01 00190000 00010000�[0m
�[0;32mI (101) boot:  4 nodemcuspiffs    unknown          c2 00 001a0000 00070000�[0m
�[0;32mI (108) boot: End of partition table�[0m
�[0;32mI (113) boot_comm: chip revision: 1, min. application chip revision: 0�[0m
�[0;32mI (120) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x25e38 (155192) map�[0m
�[0;32mI (181) esp_image: segment 1: paddr=0x00035e60 vaddr=0x3ffb0000 size=0x035ec ( 13804) load�[0m
�[0;32mI (187) esp_image: segment 2: paddr=0x00039454 vaddr=0x40080000 size=0x00400 (  1024) load�[0m
�[0;32mI (188) esp_image: segment 3: paddr=0x0003985c vaddr=0x40080400 size=0x067b4 ( 26548) load�[0m
�[0;32mI (207) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0xa2278 (664184) map�[0m
�[0;32mI (432) esp_image: segment 5: paddr=0x000e2298 vaddr=0x40086bb4 size=0x0e7c8 ( 59336) load�[0m
�[0;32mI (455) esp_image: segment 6: paddr=0x000f0a68 vaddr=0x400c0000 size=0x00064 (   100) load�[0m
�[0;32mI (469) boot: Loaded app from partition at offset 0x10000�[0m
�[0;32mI (469) boot: Disabling RNG early entropy source...�[0m
�[0;32mI (469) cpu_start: Pro cpu up.�[0m
�[0;32mI (473) cpu_start: Application information:�[0m
�[0;32mI (478) cpu_start: Project name:     NodeMCU�[0m
�[0;32mI (483) cpu_start: App version:      dd3b217-dirty�[0m
�[0;32mI (488) cpu_start: Compile time:     Sep 15 2020 19:44:52�[0m
�[0;32mI (494) cpu_start: ELF file SHA256:  cfc264376821d2e0...�[0m
�[0;32mI (500) cpu_start: ESP-IDF:          v3.3-beta2-887-g9e70825d1�[0m
�[0;32mI (507) cpu_start: Starting app cpu, entry point is 0x400812e8�[0m
�[0;32mI (493) cpu_start: App cpu up.�[0m
�[0;32mI (518) heap_init: Initializing. RAM available for dynamic allocation:�[0m
�[0;32mI (524) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM�[0m
�[0;32mI (530) heap_init: At 3FFB9CD0 len 00026330 (152 KiB): DRAM�[0m
�[0;32mI (537) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM�[0m
�[0;32mI (543) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM�[0m
�[0;32mI (549) heap_init: At 4009537C len 0000AC84 (43 KiB): IRAM�[0m
�[0;32mI (556) cpu_start: Pro cpu start user code�[0m
�[0;32mI (238) cpu_start: Starting scheduler on PRO CPU.�[0m
�[0;32mI (0) cpu_start: Starting scheduler on APP CPU.�[0m

Mounting flash filesystem...
No LFS image loaded
I (399) wifi:wifi driver task: 3ffc4624, prio:23, stack:3584, core=0
�[0;32mI (399) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE�[0m
�[0;32mI (399) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE�[0m
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
�[0;32mI (73) boot: Chip Revision: 1�[0m
�[0;32mI (73) boot_comm: chip revision: 1, min. bootloader chip revision: 0�[0m
�[0;32mI (41) boot: ESP-IDF v3.3-beta2-887-g9e70825d1 2nd stage bootloader�[0m
�[0;32mI (41) boot: compile time 19:44:49�[0m
�[0;32mI (41) boot: Enabling RNG early entropy source...�[0m
�[0;32mI (48) boot: SPI Speed      : 40MHz�[0m
�[0;32mI (52) boot: SPI Mode       : DIO�[0m
�[0;32mI (56) boot: SPI Flash Size : 4MB�[0m
�[0;32mI (60) boot: Partition Table:�[0m
�[0;32mI (64) boot: ## Label            Usage          Type ST Offset   Length�[0m
�[0;32mI (71) boot:  0 nvs              WiFi data        01 02 00009000 00006000�[0m
�[0;32mI (78) boot:  1 phy_init         RF data          01 01 0000f000 00001000�[0m
�[0;32mI (86) boot:  2 factory          factory app      00 00 00010000 00180000�[0m
�[0;32mI (93) boot:  3 lfs              unknown          c2 01 00190000 00010000�[0m
�[0;32mI (101) boot:  4 nodemcuspiffs    unknown          c2 00 001a0000 00070000�[0m
�[0;32mI (108) boot: End of partition table�[0m
�[0;32mI (113) boot_comm: chip revision: 1, min. application chip revision: 0�[0m
�[0;32mI (120) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x25e38 (155192) map�[0m
�[0;32mI (181) esp_image: segment 1: paddr=0x00035e60 vaddr=0x3ffb0000 size=0x035ec ( 13804) load�[0m
�[0;32mI (187) esp_image: segment 2: paddr=0x00039454 vaddr=0x40080000 size=0x00400 (  1024) load�[0m
�[0;32mI (188) esp_image: segment 3: paddr=0x0003985c vaddr=0x40080400 size=0x067b4 ( 26548) load�[0m
�[0;32mI (207) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0xa2278 (664184) map�[0m
�[0;32mI (432) esp_image: segment 5: paddr=0x000e2298 vaddr=0x40086bb4 size=0x0e7c8 ( 59336) load�[0m
�[0;32mI (455) esp_image: segment 6: paddr=0x000f0a68 vaddr=0x400c0000 size=0x00064 (   100) load�[0m
�[0;32mI (469) boot: Loaded app from partition at offset 0x10000�[0m
�[0;32mI (469) boot: Disabling RNG early entropy source...�[0m
�[0;32mI (469) cpu_start: Pro cpu up.�[0m
�[0;32mI (473) cpu_start: Application information:�[0m
�[0;32mI (478) cpu_start: Project name:     NodeMCU�[0m
�[0;32mI (483) cpu_start: App version:      dd3b217-dirty�[0m
�[0;32mI (488) cpu_start: Compile time:     Sep 15 2020 19:44:52�[0m
�[0;32mI (494) cpu_start: ELF file SHA256:  cfc264376821d2e0...�[0m
�[0;32mI (500) cpu_start: ESP-IDF:          v3.3-beta2-887-g9e70825d1�[0m
�[0;32mI (507) cpu_start: Starting app cpu, entry point is 0x400812e8�[0m
�[0;32mI (493) cpu_start: App cpu up.�[0m
�[0;32mI (518) heap_init: Initializing. RAM available for dynamic allocation:�[0m
�[0;32mI (524) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM�[0m
�[0;32mI (530) heap_init: At 3FFB9CD0 len 00026330 (152 KiB): DRAM�[0m
�[0;32mI (537) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM�[0m
�[0;32mI (543) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM�[0m
�[0;32mI (549) heap_init: At 4009537C len 0000AC84 (43 KiB): IRAM�[0m
�[0;32mI (556) cpu_start: Pro cpu start user code�[0m
�[0;32mI (238) cpu_start: Starting scheduler on PRO CPU.�[0m
�[0;32mI (0) cpu_start: Starting scheduler on APP CPU.�[0m

Mounting flash filesystem...
No LFS image loaded
I (399) wifi:wifi driver task: 3ffc4624, prio:23, stack:3584, core=0
�[0;32mI (399) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE�[0m
�[0;32mI (399) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE�[0m
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
Copy link
Author

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
�[0;32mI (73) boot: Chip Revision: 1�[0m
�[0;32mI (73) boot_comm: chip revision: 1, min. bootloader chip revision: 0�[0m
�[0;32mI (41) boot: ESP-IDF v3.3-beta2-887-g9e70825d1 2nd stage bootloader�[0m
�[0;32mI (41) boot: compile time 20:02:18�[0m
�[0;32mI (41) boot: Enabling RNG early entropy source...�[0m
�[0;32mI (48) boot: SPI Speed      : 40MHz�[0m
�[0;32mI (52) boot: SPI Mode       : DIO�[0m
�[0;32mI (56) boot: SPI Flash Size : 4MB�[0m
�[0;32mI (60) boot: Partition Table:�[0m
�[0;32mI (63) boot: ## Label            Usage          Type ST Offset   Length�[0m
�[0;32mI (71) boot:  0 nvs              WiFi data        01 02 00009000 00006000�[0m
�[0;32mI (78) boot:  1 phy_init         RF data          01 01 0000f000 00001000�[0m
�[0;32mI (86) boot:  2 factory          factory app      00 00 00010000 00180000�[0m
�[0;32mI (93) boot:  3 lfs              unknown          c2 01 00190000 00010000�[0m
�[0;32mI (101) boot:  4 nodemcuspiffs    unknown          c2 00 001a0000 00070000�[0m
�[0;32mI (108) boot: End of partition table�[0m
�[0;32mI (112) boot_comm: chip revision: 1, min. application chip revision: 0�[0m
�[0;32mI (120) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x25e40 (155200) map�[0m
�[0;32mI (181) esp_image: segment 1: paddr=0x00035e68 vaddr=0x3ffb0000 size=0x035ec ( 13804) load�[0m
�[0;32mI (186) esp_image: segment 2: paddr=0x0003945c vaddr=0x40080000 size=0x00400 (  1024) load�[0m
�[0;32mI (188) esp_image: segment 3: paddr=0x00039864 vaddr=0x40080400 size=0x067ac ( 26540) load�[0m
�[0;32mI (207) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0xa2278 (664184) map�[0m
�[0;32mI (432) esp_image: segment 5: paddr=0x000e2298 vaddr=0x40086bac size=0x0e7d0 ( 59344) load�[0m
�[0;32mI (455) esp_image: segment 6: paddr=0x000f0a70 vaddr=0x400c0000 size=0x00064 (   100) load�[0m
�[0;32mI (469) boot: Loaded app from partition at offset 0x10000�[0m
�[0;32mI (469) boot: Disabling RNG early entropy source...�[0m
�[0;32mI (469) cpu_start: Pro cpu up.�[0m
�[0;32mI (473) cpu_start: Application information:�[0m
�[0;32mI (478) cpu_start: Project name:     NodeMCU�[0m
�[0;32mI (483) cpu_start: App version:      dd3b217-dirty�[0m
�[0;32mI (488) cpu_start: Compile time:     Sep 15 2020 20:02:21�[0m
�[0;32mI (494) cpu_start: ELF file SHA256:  6303efc429f147ca...�[0m
�[0;32mI (500) cpu_start: ESP-IDF:          v3.3-beta2-887-g9e70825d1�[0m
�[0;32mI (507) cpu_start: Starting app cpu, entry point is 0x400812e8�[0m
�[0;32mI (0) cpu_start: App cpu up.�[0m
�[0;32mI (517) heap_init: Initializing. RAM available for dynamic allocation:�[0m
�[0;32mI (524) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM�[0m
�[0;32mI (530) heap_init: At 3FFB9CD0 len 00026330 (152 KiB): DRAM�[0m
�[0;32mI (536) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM�[0m
�[0;32mI (543) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM�[0m
�[0;32mI (549) heap_init: At 4009537C len 0000AC84 (43 KiB): IRAM�[0m
�[0;32mI (555) cpu_start: Pro cpu start user code�[0m
�[0;32mI (238) cpu_start: Starting scheduler on PRO CPU.�[0m
�[0;32mI (0) cpu_start: Starting scheduler on APP CPU.�[0m

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
�[0;32mI (7219) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE�[0m
�[0;32mI (7219) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE�[0m
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
�[0;32mI (73) boot: Chip Revision: 1�[0m
�[0;32mI (73) boot_comm: chip revision: 1, min. bootloader chip revision: 0�[0m
�[0;32mI (41) boot: ESP-IDF v3.3-beta2-887-g9e70825d1 2nd stage bootloader�[0m
�[0;32mI (41) boot: compile time 20:02:18�[0m
�[0;32mI (41) boot: Enabling RNG early entropy source...�[0m
�[0;32mI (48) boot: SPI Speed      : 40MHz�[0m
�[0;32mI (52) boot: SPI Mode       : DIO�[0m
�[0;32mI (56) boot: SPI Flash Size : 4MB�[0m
�[0;32mI (60) boot: Partition Table:�[0m
�[0;32mI (64) boot: ## Label            Usage          Type ST Offset   Length�[0m
�[0;32mI (71) boot:  0 nvs              WiFi data        01 02 00009000 00006000�[0m
�[0;32mI (78) boot:  1 phy_init         RF data          01 01 0000f000 00001000�[0m
�[0;32mI (86) boot:  2 factory          factory app      00 00 00010000 00180000�[0m
�[0;32mI (93) boot:  3 lfs              unknown          c2 01 00190000 00010000�[0m
�[0;32mI (101) boot:  4 nodemcuspiffs    unknown          c2 00 001a0000 00070000�[0m
�[0;32mI (108) boot: End of partition table�[0m
�[0;32mI (113) boot_comm: chip revision: 1, min. application chip revision: 0�[0m
�[0;32mI (120) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x25e40 (155200) map�[0m
�[0;32mI (181) esp_image: segment 1: paddr=0x00035e68 vaddr=0x3ffb0000 size=0x035ec ( 13804) load�[0m
�[0;32mI (187) esp_image: segment 2: paddr=0x0003945c vaddr=0x40080000 size=0x00400 (  1024) load�[0m
�[0;32mI (188) esp_image: segment 3: paddr=0x00039864 vaddr=0x40080400 size=0x067ac ( 26540) load�[0m
�[0;32mI (207) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0xa2278 (664184) map�[0m
�[0;32mI (432) esp_image: segment 5: paddr=0x000e2298 vaddr=0x40086bac size=0x0e7d0 ( 59344) load�[0m
�[0;32mI (455) esp_image: segment 6: paddr=0x000f0a70 vaddr=0x400c0000 size=0x00064 (   100) load�[0m
�[0;32mI (469) boot: Loaded app from partition at offset 0x10000�[0m
�[0;32mI (469) boot: Disabling RNG early entropy source...�[0m
�[0;32mI (469) cpu_start: Pro cpu up.�[0m
�[0;32mI (473) cpu_start: Application information:�[0m
�[0;32mI (478) cpu_start: Project name:     NodeMCU�[0m
�[0;32mI (483) cpu_start: App version:      dd3b217-dirty�[0m
�[0;32mI (488) cpu_start: Compile time:     Sep 15 2020 20:02:21�[0m
�[0;32mI (494) cpu_start: ELF file SHA256:  6303efc429f147ca...�[0m
�[0;32mI (500) cpu_start: ESP-IDF:          v3.3-beta2-887-g9e70825d1�[0m
�[0;32mI (507) cpu_start: Starting app cpu, entry point is 0x400812e8�[0m
�[0;32mI (493) cpu_start: App cpu up.�[0m
�[0;32mI (518) heap_init: Initializing. RAM available for dynamic allocation:�[0m
�[0;32mI (524) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM�[0m
�[0;32mI (530) heap_init: At 3FFB9CD0 len 00026330 (152 KiB): DRAM�[0m
�[0;32mI (537) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM�[0m
�[0;32mI (543) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM�[0m
�[0;32mI (549) heap_init: At 4009537C len 0000AC84 (43 KiB): IRAM�[0m
�[0;32mI (556) cpu_start: Pro cpu start user code�[0m
�[0;32mI (238) cpu_start: Starting scheduler on PRO CPU.�[0m
�[0;32mI (0) cpu_start: Starting scheduler on APP CPU.�[0m

Mounting flash filesystem...
No LFS image loaded
I (399) wifi:wifi driver task: 3ffc4624, prio:23, stack:3584, core=0
�[0;32mI (399) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE�[0m
�[0;32mI (399) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE�[0m
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
Copy link
Owner

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 marcelstoer/nodemcu-custom-build#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.

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

No branches or pull requests

2 participants