Notifications
Clear all

Problems with "old" ESP32 code not working

5 Posts
2 Users
3 Reactions
423 Views
(@dronebot-workshop)
Workshop Guru Admin
Joined: 5 years ago
Posts: 1110
Topic starter  

Greetings all

First off, I've been in the hospital with my mother for the last two weeks, she has had a stroke. So, I probably won't be replying to many posts. But I did want to get this message out.

I've seen many threads lately regarding older (i.e., over six months old) ESP32 code no longer compiling, both code from the DroneBot workshop and from other sources. I suspect many of the issues are due to the new Espressif ESP32 Boards Manager 3.0.

Espressif recently changed this, and if you have been keeping your Arduino IDE up to date, you have likely installed version 3. You can look in your Boards Manager to be sure.

Version 3 adds support for many new ESP32 boards, but it also makes major changes to the functionality of things like PWM and I2S.

The excellent Random Nerd Tutorials site (the de facto resource for ESP32) has published an article that outlines these changes.  I highly recommend that you check it out.

If all else fails, you can downgrade your boards manager to version 2 so you can compile your code.

Again, due to my situation, I have not had time to read all the posts, so I may be barking up the wrong tree. But it is something you all should be aware of.

😎

Bill

 

 

"Never trust a computer you can’t throw out a window." — Steve Wozniak


   
Ron reacted
Quote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 7664
 

@dronebot-workshop That explains a few weird problems I have been seeing. Sending my best to your Mom and you.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and 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.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 7664
 

WOW, that's a lot of changes. I forget who I was trying to help a few minutes ago, but I recognize the ledc... functions.

REMEMBER, if you only downgrade, them you will have to remember to re-upgrade when you encounter the new API's as I am sure Bill will eventually want to check out. This does make the case for PlatformIO and vscode, you can have multiple library versions at the expense of disk space. The other option is to manually adjust your code to make use of the new API. The NERDS have a lot if not all the info you need to do that.

Good luck.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and 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.


   
ReplyQuote
(@dronebot-workshop)
Workshop Guru Admin
Joined: 5 years ago
Posts: 1110
Topic starter  

@zander I ran into it myself during the Bluetooth video. I was originally going to add a Bluetooth Speaker project at the end of the video, but I couldn't get the IIS sound working. I now see that the method of calling IIS has changed. 

Unfortunately, in my current position, I can't rework the code (although I have been able to write the script and the articles for the next two videos).

And thanks for the well wishes; I appreciate them. Mom has survived the stroke but is paralyzed on her right side. We have been approved to go to a physiotherapy hospital and are waiting for a room to open up, hopefully later this week.

😎

Bill

"Never trust a computer you can’t throw out a window." — Steve Wozniak


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 7664
 

@dronebot-workshop Thanks for the info Bill, don't worry about us, take care of your Mom AND yourself, we will still be here.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and 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.


   
huckOhio reacted
ReplyQuote