- Tue Nov 18, 2014 3:06 am
#2829
igrr wrote:Thanks jcmvbkbc for your effort. Qemu + gdb is just the thing i need for the code i am about to write.
I have two issues though.
Code: Select all$ ./configure --prefix=$HOME --target-list=xtensa-softmmu
$ make install
$ qemu-system-xtensa -machine esp8266 -nographic -kernel ../arduino-sketch/app.out -S -s
Great, you've figured out all parts correctly!
igrr wrote:It seems to run, but I can't get any output on serial0. I tried os_sprintf with and without ets_install_putc1. Do you have any sample code that writes to serial successfully? I know serial works because if I run qemu without -kernel argument I get two lines from the bootloader.
The bootloader uses ets_printf, should work in user code as well. Haven't tried myself, will try when I get some free time, maybe later today.
igrr wrote:There is another issue with gdb (maybe it's related to running in on OS X):
Code: Select all(gdb) target remote :1234
Remote debugging using :1234
Remote 'g' packet reply is too long:
Arrgh (: Thanks for the report! The gdb built with the crosstool doesn't have privileged registers definitions fixed, and I used gdb built with my other tool. I've fixed lx106 overlay in the crosstool and checked that now it successfully connects to qemu.