I would like to control adc channel used in ULP program same as thresholds in ulp_adc_example.
I moved
Code: Select all
/* ADC1 channel 6, GPIO34 */
.set adc_channel, 6
Code: Select all
.bss
.global adc_channel
adc_channel:
.long 0
Code: Select all
adc r1, 0, adc_channel + 1
Code: Select all
(.text+0x18): relocation truncated to fit: R_ESP32ULP_ADC_MUX against symbol `adc_channel' defined in .bss section in adc.ulp.o