Closed PhilippEBZ closed 3 years ago
I expect the sdfat library is not correctly installed. Take also care of the version that you install (otherwise you have to make a minor change in a file). Look in the tutorial of RS-CNC 32 on this side to have more detail https://www.makerfr.com/forum/viewtopic.php?f=38&t=6446&start=240
Hi! Thank you for the fast reply!
You were right, I didn`t have that document and I didnt know that the newest SdFat Lib from the Arduino Library Manager wouldn´t work.
I could succefully compile and upload through the Arduino IDE.
I hooked up an SD Card reader to the pins in the decription on Github and set the CS pin accordingly. I also set the wifi settings to AP. Because I dont have the TFT and neither the nunchuk and just want to try the browser interface, sd card and serial pass through I commented the following:
out of the setup() routine.
Unfortunatly, the ESP32 is rebooting over and over.
Is it possible to test the grbl_controller without tft and nunchuk or would that be impossible?
Is there a away over a define maybe to turn off those features which I (and maybe others) are not using?
In general I really like the idea of your project!!! Thank you for the help
This is what I get out of the terminal:
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:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:9720
ho 0 tail 12 room 4
load:0x40080400,len:6352
entry 0x400806b8
using config.h param for WiFi
Wifi config will be executed
Guru Meditation Error: Core 1 panic'ed (InstrFetchProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x00000000 PS : 0x00060630 A0 : 0x800d7921 A1 : 0x3ffb1f70
A2 : 0x3ffc1edd A3 : 0x3ffc33c4 A4 : 0x3ffc3a40 A5 : 0x00000000
A6 : 0x400d2b4c A7 : 0x0101a8c0 A8 : 0x800d50fa A9 : 0x3ffc180c
A10 : 0x00000000 A11 : 0x3f402019 A12 : 0x3ffc33c4 A13 : 0x3ffc33a1
A14 : 0x3ffb1f4c A15 : 0x3ffc3c28 SAR : 0x0000000a EXCCAUSE: 0x00000014
EXCVADDR: 0x00000000 LBEG : 0x400e20b4 LEND : 0x400e2116 LCOUNT : 0x00000000
Backtrace: 0x00000000:0x3ffb1f70 0x400d791e:0x3ffb1f90 0x400e4205:0x3ffb1fb0 0x4008939d:0x3ffb1fd0
Rebooting...
It is possible to use the ESP32 without the TFT. If you just want to test the wifi (and access to the SD card via the wifi), you do not have to modify the original firmware. If you want to test the serial pass through you have to change just one line of code.
To do so, change in the file grbl_controller_esp32.ino, in line 124 there is currently: uint8_t statusPrinting = PRINTING_STOPPED ;
You can change it to: uint8_t statusPrinting = PRINTING_FROM_USB ;
When this version is flashed in the ESP32, it will work like you manually entered in the print using USB mode. So, il you connect the ESP32 board to GRBL, you should be able to communicate directly from pc to GRBL using e.g. the Arduino serial terminal (e.g. to send a command like $$ to get the GRBL parameter). Do not forget to set the baudrate in arduino serial terminal on 115200 baudrate
Hi,
I tried that, changed statusPrinting to PRINTING_FROM_USB and uncommeted those things I mentioned above, but than I just get the serial output:
failed to open calibrate.txt
There was opening and closing a wifi AP with the name I defined before when I had those things in a comment and it was rebooting all the time. I couldnt access the AP because it was gone every 2s but I could see it in my phone. Now there is no AP showing up.
So I put a comment on tft_init() again and now it succesfully initialized and opend the AP! :-) It also connected to my Arduino Nano running GRBL 1.1h.
Unfortunatly, after connecting with the AP, i couldnt access a webpage under the IP i gave in config.h. I even set my Wifi Card in the laptop to the same address range with a fixed IP, but it still wouldnt connect.
Do you have any more ideas?
Greetings Philipp
It is strange. Other users said me that just changing one line of code in the original firmware was enough and no body reported an issue with calibrate.txt. I think that this text is just informative (I probably forgot to put it as comment after debugging).
I sea 2 reasons for the ESP32 rebooting:
Hi,
I tried to compile the project with Arduino 1.8.13. At first I didnt have the SdFat library which I installed, but now I get this error and i dont know how to make it work. Do you have some ideas?
Here is the output I get:
Thank you!!