'Relocation truncated to fit' error when moving adc_channel to bss section in ulp_adc_example
Posted: Sat Feb 03, 2018 5:07 pm
Hi,
I would like to control adc channel used in ULP program same as thresholds in ulp_adc_example.
I moved
to
and use adc_channel as adc param
This change introduce compile error:
Please help
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