dirkx / SMPTE-EBU-TimecodeGenerator-ESP32

ESP32 based SMPTE/EBU timecode generator, with NTP slaving, for Leitch and similar studio/broadcast clocks.
Apache License 2.0
48 stars 14 forks source link

'RMT' was not declared in this scope #12

Open seeb73 opened 3 weeks ago

seeb73 commented 3 weeks ago

I can't compile this for the ESP32-S3, por likely due to changes in interrupts. Unfortunately, I am not proficient in handling this on ESP32.

C:\Users\seeb7\Documents\Arduino\SMPTE-EBU-TimecodeGenerator-ESP32-master\SMPTEGenerator\RMT.ino: In function 'void rmt_isr_handler(void*)':

RMT:104:3: error: 'RMT' was not declared in this scope

104 | RMT.int_clr.ch0_tx_thr_event = 1;

  |   ^~~

C:\Users\seeb7\Documents\Arduino\SMPTE-EBU-TimecodeGenerator-ESP32-master\SMPTEGenerator\RMT.ino: In function 'void fill()':

RMT:196:5: error: 'RMTMEM' was not declared in this scope

196 | RMTMEM.chan[RMT_TX_CHANNEL].data32[at].val = w.val; | ^~

exit status 1

'RMT' was not declared in this scope

dirkx commented 3 weeks ago

The reason for this is that Espressif changed the API in their latest version of the IDE/SDK - and I’ve not yet updated the code for this newer API.

Easiest is to go back to version 2.0.17 - i.e the most recent version 2 (as opposed to version 3.x).

Dw.

Dw

dirkx commented 3 weeks ago

Extra information: https://docs.espressif.com/projects/arduino-esp32/en/latest/migration_guides/2.x_to_3.0.html?highlight=rmt#id4