I would like to use a Raspberry Zero (Raspbian 10, "Buster") as JTAG dongle to debug ESP32 code.
Unfortunately make fails with a "cast between incompatible function types" error message, see https://github.com/espressif/openocd-esp32/issues/86.
In the issues section on Github for openocd-esp32 as linked above, there is a hint that disabling -Werror and -Wall might serve as a temporary work around.
After some trials I found these options allowed me to compile and install (through ignoring the Compiler warning):
Code: Select all
./configure --enable-sysfsgpio --enable-bcm2835gpio --disable-Werror -–disable-Wall
sudo make install CFLAGS=“-w”
Thanks!
Regards
Werner