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

Error with rmttx_stepper_queue_v4 #3

Open
mcmadhatter opened this issue Nov 26, 2019 · 14 comments
Open

Error with rmttx_stepper_queue_v4 #3

mcmadhatter opened this issue Nov 26, 2019 · 14 comments

Comments

@mcmadhatter
Copy link

I tried uploading and running the lua code, but I get and error on startup

�[0;32mI (468406) gpio: GPIO[16]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 �[0m
Slept DRV8825
loop or previous error loading module 'rmttx_stepper_queue_v4'

@chilipeppr
Copy link
Owner

chilipeppr commented Nov 26, 2019 via email

@mcmadhatter
Copy link
Author

I've uploaded the 13 lua files that are in the repo, and compiled all to .lc flies.

The only ones that are in the chilipeppr.png that are not in the repo are fan_temp_ctrl.lua tmp36_v2.lua gcode_jog_btns.lua and gcode.txt
lua

@chilipeppr
Copy link
Owner

Ok, just re-checked in my latest code. What a pain transferring out of ChiliPeppr into Github. I need a better way to use a Github repo in ChiliPeppr!

This is a pretty big difference using my latest code. The main entry point is main_cayenn_robot_v5.lua as you'll see in init.lua. This is now using Cayenn so you can see the actuator show up in the Cayenn widget in ChiliPeppr inside the ESP32 workspace and the robot workspace, which is working kinda/sorta now with the Axes widget in upper right corner.

Let me know how it goes.

image

@mcmadhatter
Copy link
Author

Hi , with the latest it gets a bit further before a kernel panic. I should be using the NodeMCU-touch-pulsecnt-rmttx.bin in the firmware folder shouldn't I?

NodeMCU ESP32 build unspecified powered by Lua 5.1.4 on SDK IDF
�[0;32mI (336) gpio: GPIO[16]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 �[0m
Slept DRV8825
Initted fan & temp sensor. Freq:30, Duty:8192
Apppending
Initted Gcode file save/retrieve
Initting ws2812. Using channel 7. GPIO 26. memBlocks 1
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x40147b01 PS : 0x00060a30 A0 : 0x80147cd0 A1 : 0x3ffbc1b0
A2 : 0x3ffc0d3c A3 : 0x00000000 A4 : 0x00000000 A5 : 0x3ffcd944
A6 : 0x3ffcd954 A7 : 0x00000000 A8 : 0x80147491 A9 : 0x3ffbc160
A10 : 0x3ffc7f58 A11 : 0x3ffc15c8 A12 : 0x00001800 A13 : 0x00000800
A14 : 0x00000001 A15 : 0x00000000 SAR : 0x0000001b EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xfffffffd

ELF file SHA256: a239507fd8d32e86f79312bdb2015e39d7edf86abcf3757da8f7e68d121d0aac

Backtrace: 0x40147b01:0x3ffbc1b0 0x40147ccd:0x3ffbc1d0 0x401472f7:0x3ffbc200 0x40145470:0x3ffbc220 0x400d49c9:0x3ffbc240 0x4013d777:0x3ffbc270 0x40143b61:0x3ffbc2b0 0x4013d84e:0x3ffbc300 0x401452a5:0x3ffbc320 0x40168afe:0x3ffbc340 0x4013d777:0x3ffbc360 0x40143b61:0x3ffbc3a0 0x4013d84e:0x3ffbc3f0 0x401447cd:0x3ffbc410 0x4013d095:0x3ffbc430 0x4013d936:0x3ffbc4b0 0x401452e6:0x3ffbc4e0 0x4013f57c:0x3ffbc510 0x4013f86d:0x3ffbc530 0x4013d777:0x3ffbc560 0x4013d845:0x3ffbc5a0 0x40144811:0x3ffbc5c0 0x4013d095:0x3ffbc5e0 0x4013d936:0x3ffbc660 0x40145316:0x3ffbc690 0x4013f9f6:0x3ffbc6c0 0x400f8f51:0x3ffbc6f0 0x400d269f:0x3ffbc730

Rebooting...

@chilipeppr
Copy link
Owner

chilipeppr commented Nov 27, 2019 via email

@chilipeppr
Copy link
Owner

chilipeppr commented Nov 27, 2019 via email

@mcmadhatter
Copy link
Author

mcmadhatter commented Nov 27, 2019

Hi, I flashed the new firmware

 ~/Programming/robot-actuator-esp32-v8/firmware   master ● ⍟2  esptool.py --port /dev/cu.Repleo-CP2102-01DB132C write_flash 0x1000 bootloader.bin 0x10000 NodeMCU-touch-pulsecnt-rmttx.bin 0x8000 partitions_singleapp.bin
esptool.py v2.6
Serial port /dev/cu.Repleo-CP2102-01DB132C
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:0a:c4:c6:7b:f0
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 22656 bytes to 14177...
Wrote 22656 bytes (14177 compressed) at 0x00001000 in 1.2 seconds (effective 145.1 kbit/s)...
Hash of data verified.
Compressed 998560 bytes to 639050...
Wrote 998560 bytes (639050 compressed) at 0x00010000 in 56.6 seconds (effective 141.2 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 1668.3 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

Edited 23:12 GMT - cleared everything, refreshed and re-uploaded all files, this is what I get now.

NodeMCU ESP32 build unspecified powered by Lua 5.1.4 on SDK IDF
�[0;32mI (487) gpio: GPIO[16]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 �[0m
Slept DRV8825
Initted fan & temp sensor. Freq:30, Duty:0
lua: ?:0: attempt to index global 'ctrl' (a boolean value)
stack traceback:
	?: in main chunk
	[C]: in function 'dofile'
	init.lua:7: in main chunk
	[C]: ?

@mcmadhatter
Copy link
Author

Just a thought can esptool dump the filesystem from an esp32, so it can be flashed to another esp32?

@chilipeppr
Copy link
Owner

chilipeppr commented Nov 27, 2019 via email

@chilipeppr
Copy link
Owner

chilipeppr commented Nov 27, 2019 via email

@chilipeppr
Copy link
Owner

chilipeppr commented Nov 27, 2019 via email

@mcmadhatter
Copy link
Author

esptool.py --port read_flash 0 0x400000 flash_contents.bin will dump everything including the filesystem.

Would you be ok to try doing that on your working chip, and sending me the flash_contents.bin to try on mine?

@chilipeppr
Copy link
Owner

chilipeppr commented Nov 28, 2019 via email

@mcmadhatter
Copy link
Author

OK, no worries.

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