bitluni / ESP32Lib

http://bitluni.net/esp32-vga/
457 stars 79 forks source link

Error compiling for all example code even "vgahelloworld" in MH-ET LIVE MINIKIT #87

Closed ChocoBotZ closed 5 months ago

ChocoBotZ commented 5 months ago

Arduino version: 2.3.2 & 1.8.13 Board: MH-ET LIVE MINIKIT ESP32LIB Version: 0.34

Hello so i just have an issue, where all of example code throw the same error like this, Is this because from esp-idf v5.0 change the command usage..?

In file included from C:\Users---\Documents\Arduino\libraries\bitluni_ESP32Lib\src/ESP32Lib.h:21, from C:\Users---\AppData\Local\Temp.arduinoIDE-unsaved202458-10304-12qadlq.f79dk\VGAHelloWorld\VGAHelloWorld.ino:6: C:\Users---\Documents\Arduino\libraries\bitluni_ESP32Lib\src/Audio/AudioOutput.h: In member function 'void AudioOutput::init(AudioSystem&)': C:\Users---\Documents\Arduino\libraries\bitluni_ESP32Lib\src/Audio/AudioOutput.h:39:110: error: 'TIMER_BASE_CLK' was not declared in this scope 39 | timer_set_alarm_value((timer_group_t)TIMER_GROUP_0, (timer_idx_t)TIMER_0, 1.0/audioSystem.samplingRate TIMER_BASE_CLK / config.divider); | ^~~~~~ C:\Users---\Documents\Arduino\libraries\bitluni_ESP32Lib\src/Audio/AudioOutput.h: In function 'void timerInterrupt(AudioOutput)': C:\Users---\Documents\Arduino\libraries\bitluni_ESP32Lib\src/Audio/AudioOutput.h:51:42: error: no match for 'operator=' (operand types are 'volatile timg_txupdate_reg_t' and 'int') 51 | TIMERG0.hw_timer[TIMER_0].update = 1; | ^ In file included from C:\Users\gra01\Documents\Arduino\libraries\bitluni_ESP32Lib\src/Audio/AudioOutput.h:13: C:\Users\gra01\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-442a798083/esp32/include/soc/esp32/include/soc/timer_group_struct.h:98:3: note: candidate: 'constexpr timg_txupdate_reg_t& timg_txupdate_reg_t::operator=(timg_txupdate_reg_t&&)' 98 | } timg_txupdate_reg_t; | ^~~~~~~ C:\Users\gra01\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-442a798083/esp32/include/soc/esp32/include/soc/timer_group_struct.h:98:3: note: no known conversion for argument 1 from 'int' to 'timg_txupdate_reg_t&&' C:\Users\gra01\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-442a798083/esp32/include/soc/esp32/include/soc/timer_group_struct.h:98:3: note: candidate: 'constexpr timg_txupdate_reg_t& timg_txupdate_reg_t::operator=(const timg_txupdate_reg_t&)' C:\Users\gra01\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-442a798083/esp32/include/soc/esp32/include/soc/timer_group_struct.h:98:3: note: no known conversion for argument 1 from 'int' to 'const timg_txupdate_reg_t&' C:\Users\gra01\Documents\Arduino\libraries\bitluni_ESP32Lib\src/Audio/AudioOutput.h:52:30: error: 'volatile union timg_int_clr_timers_reg_t' has no member named 't0' 52 | TIMERG0.int_clr_timers.t0 = 1; | ^~ C:\Users\gra01\Documents\Arduino\libraries\bitluni_ESP32Lib\src/Audio/AudioOutput.h:53:40: error: 'volatile union timg_txconfig_reg_t' has no member named 'alarm_en' 53 | TIMERG0.hw_timer[TIMER_0].config.alarm_en = 1; | ^~~~

exit status 1

Compilation error: exit status 1

is there any solution for this error..? i tried downgrading the arduino ide but it doesnt work, i need it for my school assigment project hope there is a way thank you Screenshot 2024-06-08 120046

ChocoBotZ commented 5 months ago

whoops sorry i didn't see the done issue first lol, after i downgrade the esp32 core library to 1.05 version it works perfectly. Thank for all community hard work, appreciate it!. it very useful for somebody like me who doesn't know anything XD