Hi Guys
I have a little bit of a weird issue, I cant quite figure out.
I have been using Arduino IDE 2 for some time, and I had a sketch (actually two different sketches) that worked just fine.
Then I bought my self a new computer, and reinstalled Arduino IDE.
I opened up the sketches and wanted to compile and upload them to the same hardware I have been using all the time, an Heltec ESP32-s3 & SX1262 Wireless Stick LIte V3.
BUT, now when the software runs, I get error -2 consistently from the serial output.
The code didnt change and the hardware didnt change, so I am wondering if I maybe had some other setting on my old computer, either boards info or whatever??
I have these two json files in my boards manager file under preferences:
https://espressif.github.io/arduino-esp32/package_esp32_index.json
https://resource.heltec.cn/download/package_heltec_esp32_index.json
I did download the RadioLib library again, so its there.
The program compiles fine, only issue is.... I ALWAYS get the -2 error
I am kind a dead in the water here, and dont know what to do.
Anyone?
-Dan
I am a bit confused. Are you getting the error in Serial output box or the Output box of the compile. Try adding a screenshot.
Its the serial monitor.
Its RadioLib error code -2
The code compiles fine, and uploads fine.
The weird thing is that this code worked just fine on my old computer when I uploaded it, so it must be something about board settings or libraries etc.
-Dan
@danb Compile and upload are fine, you just have a LORA error. You will need to locate a resource to troubleshoot that.
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
@zander unfortunately thsts not the case.
It's something with my setup.
As mentioned all my hardware worked. All My code worked. When uploaded and compiled on my old computer. But not when compiled and uploaded from my new computer... So something is different, I just can't figure out what.
-Dan
@danb The only thread I can find for that same error had no resolution. As much as you don't think so, something has changed. Since power is on the suspect list, changing computers does change the power. Either use a bench supply or some other guaranteed power source.
The other thing mentioned is wiring. If using a breadboard they are well known failure points, try to get off a breadboard and use a sodered solution. If any wires were changed, meter them for possible open circuit. Does the setup still work back on the old computer?
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
I have FINALLY located the problem.
The post here mentioning about USB power issues, led me to investigate the USB and it turns out there was something fishy about it
It turns out it's faulty and I will now return the PC and get another one.
When I looked under system component settings.. Or what ever it's called... Sometimes.. And only sometimes there was a yellow exclamation signe there.
I also noticed that my wifi (that is connected to a USB port) sometimes dropped out... All though I didn't connect the dots.. Just thought it was bad wifi....
Well... Thanks for leading me in the right direction.
-Dan
@danb You would be surprised how often flaky or weak or noisy power is the root cause.
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
Thank you for sharing I will note it down. And thanks to @zander who takes the time to help.
It seems that using hardware is made more difficult these days because even when you think you should be getting a consistent product such as a PC or in recent posts some esp board they are all full undocumented of variations.
@robotbuilder, (I think I posted this yesterday), the boards I thought were bad were caused by some weird cable bug. The cable was full-function data and power. On a commercial continuity tester, all four pins plus shield (maybe the fifth wire of USB3 as well) showed as good, but when I changed the cable, all the so-called bad boards suddenly worked.
I was so relieved, for a while I thought I was losing my mind. I knew that many of the boards had been used/tested a while ago so when they failed I didn't know why. Only when I started over and checked EVERYTHING did I uncover it.
Lesson learned, always try 3 cables, always check USB power with a quality tester and even use a variable load tester in case loading causes an out of spec voltage drop.
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
Another update....
I got my new computer.... installed it and everything ran just fine.... Until yesterday.
I again got the yellow ! in my system manager.
When I went there and looked under the unit for detais, it said could not use this device due to some registry error... reported error 19 I think it was.
Well... I tried., 5 different ESP32 also different models.
Different wires.
Different ports on the computer
Even tried to inject some USB thingie in between
I ran different windows repair tools
I ran CCcleaner
I uninstalled the USB drivers
I reinstalled other USB driverse
NOTHING helped.
I googled a lot, and some suggested that I should go in and delte something like upperFIlter and Lowerfilter for the usb thingis in Registry, so I did... BUT that didnt solve the problem
BUT once there, I noticed something.... the file hhdspmc64.sys
That file caught my interest, because that was part of some serial monitor I installed that required "high level access" ... I dotn remember the name of the serial monitor now, because I deleted it a few days ago.
WEll I went and found the file hhdspmc64.sys under /system/ folder, and deleted and restarted...
BOOOOM
Then suddenly things works again.
-Dan