im trying to build the lilygo focuser but i cant seem to find the "PRO2ESP32TMC2209LGTM" option in controller config.h. im not using the xiao board (bought the wrong version) but have managed to upload to the lilygo with panics and constant reboots. i have uploaded data after the flash but no fix. do i have to use the xiao?
thanks for any help you can give
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Are you using a Lilygo T-Motor Board or a XIAO and witch Xiao (C3 , S3 ...)?
Lilygo T-Motor Board is an ESP32 Pico D4
PRO2ESP32TMC2209LGTM is the right choice.
If not present in controller_config.h it is a mater of release.
I can check that this evening.
Regards
Eric
Le 21/02/2024 à 20:37, stephen webster a écrit :
im trying to build the lilygo focuser but i cant seem to find the
"PRO2ESP32TMC2209LGTM" option in controller config.h. im not using the
xiao board (bought the wrong version) but have managed to upload to
the lilygo with panics and constant reboots. i have uploaded data
after the flash but no fix. do i have to use the xiao?
thanks for any help you can give
im using the t motor board but bought the xiao s3 instead of the c3 (that wouldnt speak to the board) so i used another board but uploads would just panic the board and boot loop. the LGTM option is not available in controller config.h with only the xiao being selectable but in other parts of the sketch LGTM is mentioned so im super confused as to what i should select
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Something is wrong in the crontroler_config.h files.
Please update the end of the board section with :
//#define DRVBRD PRO2ESP32TMC2209LGTM // Eric Harant,
Lilygo-T-Motor board, set target to ESP32 PICO-D4
//#define DRVBRD PRO2ESP32TMC2209XIAOC3 // Eric Harant, Xiao C3 dev
board, set target to ESP32 C3
//#define DRVBRD CUSTOMBRD
and select PRO2ESP32TMC2209LGTM
In Arduino IDE select the ESP32 Pico-D4 board for compiling.
I've not port the software on XIAO S3 yet. it is nearly the same as the
classical ESP32S3 but with different pinout, and for sure not compatible
with XIAO C3.
I have a XIAO S3 in stock, I will do that in a near futur.
When connecting you adapter use only RX TX and GND but not VCC! if you
power the board with the 12V plug.
You will have to put the target device in boot mode manually.
thank you so much for your reply, i noticed the lilygo is quite a newer board for myfp but it is so convenient. i will give the amendments a try tonight
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
// ----------------------------------------------------------------------
// BOARD DEFINES [do not change names]
// ----------------------------------------------------------------------
// Uncomment only your board - ONLY ONE BOARD SHOULD BE UNCOMMENTED
// ESP32 Boards
define DRVBRD PRO2ESP32DRV8825
//#define DRVBRD PRO2ESP32ULN2003
//#define DRVBRD PRO2ESP32L298N
//#define DRVBRD PRO2ESP32L293DMINI
//#define DRVBRD PRO2ESP32L9110S
//#define DRVBRD PRO2ESP32R3WEMOS // fixed step mode
//#define DRVBRD PRO2ESP32TMC2225
//#define DRVBRD PRO2ESP32TMC2209
//#define DRVBRD PRO2ESP32TMC2209P // for Paul using TMC2209 -
58.jsn
//#define DRVBRD PRO2ESP32ST6128 // for CLOSED LOOP ST6128
driver. fixed step mode
//#define DRVBRD PRO2ESP32LOLINS2MINI // for Higany, target is
LOLIN S2 Mini - 60.jsn
//#define DRVBRD PRO2ESP32TMC2209XIAOC3 // Eric Harant,
Lilygo-T-Motor board
//#define DRVBRD CUSTOMBRD
You have to get this :
// ----------------------------------------------------------------------
// BOARD DEFINES [do not change names]
// ----------------------------------------------------------------------
// Uncomment only your board - ONLY ONE BOARD SHOULD BE UNCOMMENTED
// ESP32 Boards
//#define DRVBRD PRO2ESP32DRV8825
//#define DRVBRD PRO2ESP32ULN2003
//#define DRVBRD PRO2ESP32L298N
//#define DRVBRD PRO2ESP32L293DMINI
//#define DRVBRD PRO2ESP32L9110S
//#define DRVBRD PRO2ESP32R3WEMOS // fixed step mode
//#define DRVBRD PRO2ESP32TMC2225
//#define DRVBRD PRO2ESP32TMC2209
//#define DRVBRD PRO2ESP32TMC2209P // for Paul using TMC2209 -
58.jsn
//#define DRVBRD PRO2ESP32ST6128 // for CLOSED LOOP ST6128
driver. fixed step mode
//#define DRVBRD PRO2ESP32LOLINS2MINI // for Higany, target is
LOLIN S2 Mini - 60.jsn
define DRVBRD PRO2ESP32TMC2209LGTM // Eric Harant, Lilygo-T-Motor
board - 61.jsn , set target to ESP32 PICO-D4
//#define DRVBRD PRO2ESP32TMC2209XIAOC3 // Eric Harant, Xiao C3 dev
board -62.jsn, set target to ESP32 C3
//#define DRVBRD CUSTOMBRD
Hope this is clear enought
Best regards
Eric
Le 22/02/2024 à 14:07, stephen webster a écrit :
sorry to ask, but where exactly should i place the amendment? just so
i know im not messing things up lol
Stephen.
Try to compile and load a simple exemple like "hello world"
it should run without problem
Then upload the spifs partition
and at last upload the new firmware.
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just rebuild myfp2esp32_311-02 , with the changes I tell you,
I have to change also line 375 in driver_board.cpp (missing parenthesis)
} else if ((_boardnum == PRO2ESP32TMC2209LGTM) || (_boardnum == PRO2ESP32TMC2209XIAOC3)) {
I load the data before and then compile and load the bin
and evething works
I think that a previous attemp corrupted one the SPIFS files
I usualy always clean the SPIFS before testing a new version.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Eric is the Authoritative source on the LilyGo-T-Motor, I do not have one, so Eric is the goto guy on this - and thanks Eric for helping out, most appreciated
regards
Robert
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thank you both for your help. i had noticed the parenthesis and changed it so im glad i got that right lol. ill give it another go tonight when i get in. ill probably just delete everything and start over with a fresh install of all libraries etc. thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hmm, well i am still getting the boot loop problem even after all the amendments and even using a different board. board doesnt light up, screen isnt coming on and im just getting frustrated lol. i have used other boards and they have worked with no issues, i just cant seem to get these lilygo boards running :(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can you read some messages on the serial console ?
Le 22/03/2024 à 12:25, stephen webster a écrit :
hmm, well i am still getting the boot loop problem even after all the
amendments and even using a different board. board doesnt light up,
screen isnt coming on and im just getting frustrated lol. i have used
other boards and they have worked with no issues, i just cant seem to
get these lilygo boards running :(
the serial monitor screenshot is after i have just tried again and no bootloop this time, but putting the 12v into the board does nothing, no screen power and no led on the board either
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Replace ssid and password with you setting.
ESP Wifi only works with 2.4 GHz Wifi not 5GHz
You will « see » the focuser connected on your netwoork and start to play with it
I will try to found a small usable I2C display in my stock to check it.
Best regards
Eric
Envoyé à partir de Courrier pour Windows
De : stephen webster
Envoyé le :vendredi 22 mars 2024 20:09
À : [myfocuserpro2-esp32:discussion]
Objet :[myfocuserpro2-esp32:discussion] Re: lilygo T-motor issues
the serial monitor screenshot is after i have just tried again and no bootloop this time, but putting the 12v into the board does nothing, no screen power and no led on the board either
The boot loop issue is common and there are two things that cause it.
1. The data sketch files are not uploaded
2. network connectivity issue, wrong ssid credentials etc
the best way is to enable the bootup logging. Outputs messages to serial port when booting up (speed 115200)
Disable debug server
In file controller_defines.h, towards line 25 of the file, change //#define BOOT_PRINT 1
to #define BOOT_PRINT 1
and reprogram the controller.
You will be able to see if the chip is connecting correctly based on the log messages
If spiffs fails to start you will see that -
If you are using WifiConfig you will also see that
If you get to the stage of starting the web server/management server and then fails, the files for that are not on the esp32 in spiffs.
It is always best to upload firmware, upload data sketch files. Since u seem to be having a lot of issues, I would suggest upload of firmware and sketch files are done using Serial port and NOT via OTA.
Also, dont use IDE version 2,x,x as it has an option to clear Spiffs when uploading new firmware. Which is why its always a good idea of loading the sketch data files immediately after a firmware upload.
Regards
Last edit: brownrb 2024-03-25
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
im using 1.8.19 at the moment. ill give these suggestions a go shortly, thank you both so much for your help as i was getting really frustrated with something as simple as this lol
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
my internet credentials are correct, ive tried uploading spiffs before and after firmware upload, ive tried 2 different lillygo boards and get the same result. im about ready to give up and go back to the arduino solderless version :(
De : stephen webster
Envoyé le :lundi 25 mars 2024 16:00
À : [myfocuserpro2-esp32:discussion]
Objet :[myfocuserpro2-esp32:discussion] Re: lilygo T-motor issues
my internet credentials are correct, ive tried uploading spiffs before and after firmware upload, ive tried 2 different lillygo boards and get the same result. im about ready to give up and go back to the arduino solderless version :(
Attachments:
• loop.PNG (40.5 kB; image/png)
im trying to build the lilygo focuser but i cant seem to find the "PRO2ESP32TMC2209LGTM" option in controller config.h. im not using the xiao board (bought the wrong version) but have managed to upload to the lilygo with panics and constant reboots. i have uploaded data after the flash but no fix. do i have to use the xiao?
thanks for any help you can give
Hi Stephen.
Are you using a Lilygo T-Motor Board or a XIAO and witch Xiao (C3 , S3 ...)?
Lilygo T-Motor Board is an ESP32 Pico D4
PRO2ESP32TMC2209LGTM is the right choice.
If not present in controller_config.h it is a mater of release.
I can check that this evening.
Regards
Eric
Le 21/02/2024 à 20:37, stephen webster a écrit :
--
Cet e-mail a été vérifié par le logiciel antivirus d'Avast.
www.avast.com
im using the t motor board but bought the xiao s3 instead of the c3 (that wouldnt speak to the board) so i used another board but uploads would just panic the board and boot loop. the LGTM option is not available in controller config.h with only the xiao being selectable but in other parts of the sketch LGTM is mentioned so im super confused as to what i should select
this is what i was using to upload to the lilygo
Hi Stephen
Something is wrong in the crontroler_config.h files.
Please update the end of the board section with :
//#define DRVBRD PRO2ESP32TMC2209LGTM // Eric Harant,
Lilygo-T-Motor board, set target to ESP32 PICO-D4
//#define DRVBRD PRO2ESP32TMC2209XIAOC3 // Eric Harant, Xiao C3 dev
board, set target to ESP32 C3
//#define DRVBRD CUSTOMBRD
and select PRO2ESP32TMC2209LGTM
In Arduino IDE select the ESP32 Pico-D4 board for compiling.
I've not port the software on XIAO S3 yet. it is nearly the same as the
classical ESP32S3 but with different pinout, and for sure not compatible
with XIAO C3.
I have a XIAO S3 in stock, I will do that in a near futur.
When connecting you adapter use only RX TX and GND but not VCC! if you
power the board with the 12V plug.
You will have to put the target device in boot mode manually.
The json config file will be 61.json.
Le 22/02/2024 à 12:49, stephen webster a écrit :
--
Cet e-mail a été vérifié par le logiciel antivirus d'Avast.
www.avast.com
thank you so much for your reply, i noticed the lilygo is quite a newer board for myfp but it is so convenient. i will give the amendments a try tonight
sorry to ask, but where exactly should i place the amendment? just so i know im not messing things up lol
You have to place it in controller_config.h.
Now you have at the begining of the file :
// ----------------------------------------------------------------------
// BOARD DEFINES [do not change names]
// ----------------------------------------------------------------------
// Uncomment only your board - ONLY ONE BOARD SHOULD BE UNCOMMENTED
// ESP32 Boards
define DRVBRD PRO2ESP32DRV8825
//#define DRVBRD PRO2ESP32ULN2003
//#define DRVBRD PRO2ESP32L298N
//#define DRVBRD PRO2ESP32L293DMINI
//#define DRVBRD PRO2ESP32L9110S
//#define DRVBRD PRO2ESP32R3WEMOS // fixed step mode
//#define DRVBRD PRO2ESP32TMC2225
//#define DRVBRD PRO2ESP32TMC2209
//#define DRVBRD PRO2ESP32TMC2209P // for Paul using TMC2209 -
58.jsn
//#define DRVBRD PRO2ESP32ST6128 // for CLOSED LOOP ST6128
driver. fixed step mode
//#define DRVBRD PRO2ESP32LOLINS2MINI // for Higany, target is
LOLIN S2 Mini - 60.jsn
//#define DRVBRD PRO2ESP32TMC2209XIAOC3 // Eric Harant,
Lilygo-T-Motor board
//#define DRVBRD CUSTOMBRD
You have to get this :
// ----------------------------------------------------------------------
// BOARD DEFINES [do not change names]
// ----------------------------------------------------------------------
// Uncomment only your board - ONLY ONE BOARD SHOULD BE UNCOMMENTED
// ESP32 Boards
//#define DRVBRD PRO2ESP32DRV8825
//#define DRVBRD PRO2ESP32ULN2003
//#define DRVBRD PRO2ESP32L298N
//#define DRVBRD PRO2ESP32L293DMINI
//#define DRVBRD PRO2ESP32L9110S
//#define DRVBRD PRO2ESP32R3WEMOS // fixed step mode
//#define DRVBRD PRO2ESP32TMC2225
//#define DRVBRD PRO2ESP32TMC2209
//#define DRVBRD PRO2ESP32TMC2209P // for Paul using TMC2209 -
58.jsn
//#define DRVBRD PRO2ESP32ST6128 // for CLOSED LOOP ST6128
driver. fixed step mode
//#define DRVBRD PRO2ESP32LOLINS2MINI // for Higany, target is
LOLIN S2 Mini - 60.jsn
define DRVBRD PRO2ESP32TMC2209LGTM // Eric Harant, Lilygo-T-Motor
board - 61.jsn , set target to ESP32 PICO-D4
//#define DRVBRD PRO2ESP32TMC2209XIAOC3 // Eric Harant, Xiao C3 dev
board -62.jsn, set target to ESP32 C3
//#define DRVBRD CUSTOMBRD
Hope this is clear enought
Best regards
Eric
Le 22/02/2024 à 14:07, stephen webster a écrit :
--
Cet e-mail a été vérifié par le logiciel antivirus d'Avast.
www.avast.com
uploaded the changes but all im getting is this in serial monitor :(
Stephen.
Try to compile and load a simple exemple like "hello world"
it should run without problem
Then upload the spifs partition
and at last upload the new firmware.
I just rebuild myfp2esp32_311-02 , with the changes I tell you,
I have to change also line 375 in driver_board.cpp (missing parenthesis)
} else if ((_boardnum == PRO2ESP32TMC2209LGTM) || (_boardnum == PRO2ESP32TMC2209XIAOC3)) {
I load the data before and then compile and load the bin
and evething works
I think that a previous attemp corrupted one the SPIFS files
I usualy always clean the SPIFS before testing a new version.
Screen shot of managment server
Hi
Just confirm that the esp32 section within boarddefs.h looks like
and in Boards part of controller_config.h looks lke
and you have these in the data/boards folder
and the fix that Eric listed above, line 375 in driver_board.cpp (missing parenthesis)
Eric is the Authoritative source on the LilyGo-T-Motor, I do not have one, so Eric is the goto guy on this - and thanks Eric for helping out, most appreciated
regards
Robert
thank you both for your help. i had noticed the parenthesis and changed it so im glad i got that right lol. ill give it another go tonight when i get in. ill probably just delete everything and start over with a fresh install of all libraries etc. thank you
hmm, well i am still getting the boot loop problem even after all the amendments and even using a different board. board doesnt light up, screen isnt coming on and im just getting frustrated lol. i have used other boards and they have worked with no issues, i just cant seem to get these lilygo boards running :(
I will try to help you
Can you read some messages on the serial console ?
Le 22/03/2024 à 12:25, stephen webster a écrit :
--
Cet e-mail a été vérifié par le logiciel antivirus d'Avast.
www.avast.com
hi Eric. ill send some screenshots tonight when i get in from work and a picture of the way i have i wired etc. thank you
If you want you can send me your source and config files in a Zip
archive so I can check them on my LillyGo-T
Best regards
Le 22/03/2024 à 14:30, stephen webster a écrit :
--
Cet e-mail a été vérifié par le logiciel antivirus d'Avast.
www.avast.com
i think what you need is all there, please let me know if you need anything else :)
the serial monitor screenshot is after i have just tried again and no bootloop this time, but putting the 12v into the board does nothing, no screen power and no led on the board either
Hi Stephen.
I make it run but not the display for the moment.
I Believe that you have a issue with wifi connexion.
You can create a wificonfig.jsn text file in the data folder with this format :
{"mySSID":"myssid","myPASSWORD":"mypasswd","mySSID_1":"myssid_EXT","myPASSWORD_1":"mypasswdi"}
Replace ssid and password with you setting.
ESP Wifi only works with 2.4 GHz Wifi not 5GHz
You will « see » the focuser connected on your netwoork and start to play with it
I will try to found a small usable I2C display in my stock to check it.
Best regards
Eric
Envoyé à partir de Courrier pour Windows
De : stephen webster
Envoyé le :vendredi 22 mars 2024 20:09
À : [myfocuserpro2-esp32:discussion]
Objet :[myfocuserpro2-esp32:discussion] Re: lilygo T-motor issues
the serial monitor screenshot is after i have just tried again and no bootloop this time, but putting the 12v into the board does nothing, no screen power and no led on the board either
lilygo T-motor issues
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/myfocuserpro2-esp32/discussion/general/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
--
Cet e-mail a été vérifié par le logiciel antivirus d'Avast.
www.avast.com
well i am still getting the boot loop problem
The boot loop issue is common and there are two things that cause it.
1. The data sketch files are not uploaded
2. network connectivity issue, wrong ssid credentials etc
the best way is to enable the bootup logging. Outputs messages to serial port when booting up (speed 115200)
Disable debug server
In file controller_defines.h, towards line 25 of the file, change
//#define BOOT_PRINT 1
to
#define BOOT_PRINT 1
and reprogram the controller.
You will be able to see if the chip is connecting correctly based on the log messages
If spiffs fails to start you will see that -
If you are using WifiConfig you will also see that
If you get to the stage of starting the web server/management server and then fails, the files for that are not on the esp32 in spiffs.
It is always best to upload firmware, upload data sketch files. Since u seem to be having a lot of issues, I would suggest upload of firmware and sketch files are done using Serial port and NOT via OTA.
Also, dont use IDE version 2,x,x as it has an option to clear Spiffs when uploading new firmware. Which is why its always a good idea of loading the sketch data files immediately after a firmware upload.
Regards
Last edit: brownrb 2024-03-25
im using 1.8.19 at the moment. ill give these suggestions a go shortly, thank you both so much for your help as i was getting really frustrated with something as simple as this lol
my internet credentials are correct, ive tried uploading spiffs before and after firmware upload, ive tried 2 different lillygo boards and get the same result. im about ready to give up and go back to the arduino solderless version :(
May compiler setup
This is what I use :
Envoyé à partir de Courrier pour Windows
De : stephen webster
Envoyé le :lundi 25 mars 2024 16:00
À : [myfocuserpro2-esp32:discussion]
Objet :[myfocuserpro2-esp32:discussion] Re: lilygo T-motor issues
my internet credentials are correct, ive tried uploading spiffs before and after firmware upload, ive tried 2 different lillygo boards and get the same result. im about ready to give up and go back to the arduino solderless version :(
Attachments:
• loop.PNG (40.5 kB; image/png)
lilygo T-motor issues
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/myfocuserpro2-esp32/discussion/general/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
--
Cet e-mail a été vérifié par le logiciel antivirus d'Avast.
www.avast.com