move to esp32 from stm32
Posted: Fri Jan 22, 2021 5:45 am
New to esp32 and wonder how to setup the dev environment.
Now for stm32, I can compile by,
arm-none-eabi-gcc -Wall -Wextra -g3 -O0 -MD -mcpu=cortex-m3 -mthumb -DSTM32F1 -Ilibopencm3/include -c -o pill_blink.o pill_blink.c
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -nostartfiles -Llibopencm3/lib -Llibopencm3/lib/stm32/f1 -Wl,-T,bluepill.ld -o pill_blink.elf pill_blink.o -lopencm3_stm32f1 -lc -lnosys
get openocd running by,
openocd -f /usr/share/openocd/scripts/interface/jlink.cfg -c "transport select swd" -f /usr/share/openocd/scripts/target/stm32f1x.cfg
then,
telnet localhost 444
program pill_blink.elf verify reset
I see there is an openocd-esp32 repo, do espressif provide esp32 flavored gcc? Any suggestion and clarification are welcome!
Now for stm32, I can compile by,
arm-none-eabi-gcc -Wall -Wextra -g3 -O0 -MD -mcpu=cortex-m3 -mthumb -DSTM32F1 -Ilibopencm3/include -c -o pill_blink.o pill_blink.c
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -nostartfiles -Llibopencm3/lib -Llibopencm3/lib/stm32/f1 -Wl,-T,bluepill.ld -o pill_blink.elf pill_blink.o -lopencm3_stm32f1 -lc -lnosys
get openocd running by,
openocd -f /usr/share/openocd/scripts/interface/jlink.cfg -c "transport select swd" -f /usr/share/openocd/scripts/target/stm32f1x.cfg
then,
telnet localhost 444
program pill_blink.elf verify reset
I see there is an openocd-esp32 repo, do espressif provide esp32 flavored gcc? Any suggestion and clarification are welcome!