Closed JLBCS closed 8 months ago
driver/dac.h
is part of ESP32 Arduino Core. If it cannot be resolved, something is wrong in Arduino configuration.
driver/dac.h
would fail to resolve because the ATmega328P chip at the heart of an Arduino Uno does not have a DAC.Hi,
I checked ESP32 level. seems to be OK. See attached pictures for the environment and the compile log where I could see the level of ESP32: [ESP32@2.0.0]
compile_error.txt
Hello, I did another test. On a PC which has not arduino installed, I started from scratch and installed the IDE, Then I installed ESP32 and then ESP_8_BIT_Color composite video library which installed the example GFX_HelloWorld. Same problem driver/dac.h missing.
What else can I do ???????
I haven't touched this code in over a year. You are using much newer versions of software and libraries compared to my last-known-good versions I listed in README. It's possible something has changed.
According to https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/dac.html
Include
dac.h
to use the legacy driver ordac_oneshot.h
,dac_cosine.h
, anddac_continuous.h
to use the new driver. The legacy driver might be removed in the future.
Perhaps they have removed the legacy driver! I will need to check...
Hello,
Sorry to interrupt your conversation, but the way I did may help you.
For me the installation of the ESP_8_BIT Color Composite, from Roger-random, works following this way:
Enter on Tools -> Board and select the ESP32 board of your choice. (here I always use the "ESP32 Dev Module" for my boards)
Now open and try one of the examples from: File -> Examples -> ESP_8_BIT Color Composite Video Library -> ...
On Tue, Nov 28, 2023 at 9:40 AM JLBCS @.***> wrote:
Hello, I did another test. On a PC which has not arduino installed, I started from scratch and installed the IDE, Then I installed ESP32 and then ESP_8_BIT_Color composite video library which installed the example GFX_HelloWorld. Same problem driver/dac.h missing.
What else can I do ???????
— Reply to this email directly, view it on GitHub https://github.com/Roger-random/ESP_8_BIT_composite/issues/44#issuecomment-1829763818, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOLYHQKFV2GUHPU2C5JWXT3YGXLTBAVCNFSM6AAAAAA74UKU4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRZG43DGOBRHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
--
I get confused with all the ESP32 board. Right now I have the Arduino Nano ESP32. All previous tests have been run on this board. By the way I don't know how to access GPIO25 on the Nano ESP32 board for video support. I anticipated the impossibility with the Nano board so I ordered ESP32-S3-DevKitC-1 ESP32-S3. Is it compatible with ESP_8_bit because designations in Readme.md by Roger mentions only ESP32-D0WD ESP32-D0WDQ6 and ESP32-PICO-D4.
I have never used this Arduino Nano ESP32. I always use that ESP32 model I show to you in the picture. Yes, the GPIO25 is necessary for video output of the ESP_8_BIT_Composite library.
On Thu, Nov 30, 2023 at 5:48 AM JLBCS @.***> wrote:
I get confused with all the ESP32 board. Right now I have the Arduino Nano ESP32. All previous tests have been run on this board. By the way I don't know how to access GPIO25 on the Nano ESP32 board for video support. I anticipated the impossibility with the Nano board so I ordered ESP32-S3-DevKitC-1 ESP32-S3. Is it compatible with ESP_8_bit because designations in Readme.md by Roger mentions only ESP32-D0WD ESP32-D0WDQ6 and ESP32-PICO-D4.
— Reply to this email directly, view it on GitHub https://github.com/Roger-random/ESP_8_BIT_composite/issues/44#issuecomment-1833335980, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOLYHQKBGXV4TDM5NBGVVULYHBB7VAVCNFSM6AAAAAA74UKU4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZTGMZTKOJYGA . You are receiving this because you commented.Message ID: @.***>
--
I cannot see your picture...
[image: image.png]
On Thu, Nov 30, 2023 at 10:46 AM JLBCS @.***> wrote:
I cannot see your picture...
— Reply to this email directly, view it on GitHub https://github.com/Roger-random/ESP_8_BIT_composite/issues/44#issuecomment-1833814773, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOLYHQI4ZF3NA4C3RYBC3VLYHCE37AVCNFSM6AAAAAA74UKU4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZTHAYTINZXGM . You are receiving this because you commented.Message ID: @.***>
--
Today this is what I did: Autres questions How to add ESP32 to Arduino board manager? Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux ... To install the ESP32 board in your Arduino IDE, follow these next instructions:
In your Arduino IDE, go to File> Preferences.
Open the Boards Manager. Go to Tools > Board > Boards Manager…
Search for ESP32 and press install button for the “ESP32 by Espressif Systems“:
That's it
I still have the same problem #include "driver/dac.h" library not found. Have a good weekend
Are you still using the Arduino Nano Esp32? Or a other board model of esp32?
Em sáb., 2 de dez. de 2023 13:48, JLBCS @.***> escreveu:
Today this is what I did: Autres questions How to add ESP32 to Arduino board manager? Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux ... To install the ESP32 board in your Arduino IDE, follow these next instructions:
In your Arduino IDE, go to File> Preferences. Open the Boards Manager. Go to Tools > Board > Boards Manager… Search for ESP32 and press install button for the “ESP32 by Espressif Systems“: That's it
I still have the same problem #include "driver/dac.h" library not found. Have a good weekend
— Reply to this email directly, view it on GitHub https://github.com/Roger-random/ESP_8_BIT_composite/issues/44#issuecomment-1837200301, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOLYHQL3I2JHMJNBLCIJ2ALYHNLXVAVCNFSM6AAAAAA74UKU4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGIYDAMZQGE . You are receiving this because you commented.Message ID: @.***>
I just received a board ESP32-S1-WROOm-1 I then in tool >> board manager >> esp32>> I selected ESP32 WROOM-DA I try to compile GFX_HelloWorld and I get 3 unused variable and the compile aborted.... I try to compile my program which work on a Uno processor and compile on arduino nano ESP32 and it fails to load on the wroom ... Tools>> Board info returns unknown with a S/N, PID and VID
My background IBM main frame from 1968 till 2006. A world of difference !
I will see this example and test here to see what happens here....
Em sáb., 2 de dez. de 2023 15:24, JLBCS @.***> escreveu:
I just received a board ESP32-S1-WROOm-1 I then in tool >> board manager >> esp32>> I selected ESP32 WROOM-DA I try to compile GFX_HelloWorld and I get 3 unused variable and the compile aborted.... I try to compile my program which work on a Uno processor and compile on arduino nano ESP32 and it fails to load on the wroom ... Tools>> Board info returns unknown with a S/N, PID and VID
My background IBM main frame from 1968 till 2006. A world of difference !
— Reply to this email directly, view it on GitHub https://github.com/Roger-random/ESP_8_BIT_composite/issues/44#issuecomment-1837221972, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOLYHQLDTD6G7MWFW35TZO3YHNW6LAVCNFSM6AAAAAA74UKU4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGIZDCOJXGI . You are receiving this because you commented.Message ID: @.***>
Hello, I have progressed during this weekend. Thanks to the 'trouble shooting ESP32 web site. The example WIFI work on the nano and the ESP32-V3 board. But the hello worlld still fails.
I have not been able to reproduce the compilation error.
Here were the steps for my latest test:
setup()
and loop()
)setup()
and loop()
)driver/dac.h
OK I can now reproduce the compilation error.
Deviation from procedure listed above:
[...]
[...]
[...]
ESP_8_BIT_composite.h:48:10: fatal error: driver/dac.h: No such file or directory
#include "driver/dac.h"
^~~~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1
Verdict: This error is expected when compiling with an unsupported Arduino board library.
This library was written for the "esp32 by Espressif Systems" board library at (https://github.com/espressif/arduino-esp32). Thank you for bringing my attention to the fact this library does not work with the "Arduino ESP32 Boards by Arduino" board library. I will update my library README accordingly.
This library has only been tested to work against the original ESP32 line, others may or may not work. I don't have any of the newer derivative products (such as ESP32-S2) to test. According to this page (https://docs.arduino.cc/hardware/nano-esp32) the Arduino Nano ESP32 board uses an ESP32-S3 which is also untested. I will also clarify this point in my README.
For reference, this is the ESP32 development board I used when making this library: (https://amzn.to/4146vWM affiliate link.) Selected because it was the cheapest ESP32 (no -S2, or -S3 suffix) available that day.
In hindsight, @JLBCS filed a perfect issue report. The problem was clearly visible in the provided screen shot, but I was unaware of its importance at the time. My apologies!
Also thanks to @EtienneGomide for contributing data points helping me narrow down this problem.
Tanks to all, I can now compile. Next issue is execution . If necessary I will open a new ticket.
Great to hear of progress! Thank you for the confirmation, I will close this issue.
I am the stupid user. I just discover theis app after failure to migrate TVout from arduino uno to arduino nano ESP32. So I downloaded and install ESP_8_bit like indicated and had a try with Hello world. Beautiful error message ResolveLibrary(driver/dac.h) I cannot belive it What is this mess ?