Compiling and running application on Zedboard (Pulpissimo)
Because the OP never responded and I'm in basically the same situation, I thought it would make sense to continue this thread for future reference.
I try to run the example, following the steps mentioned in the GitHub.
Just like in jmmarosteguis' case it seems to hang at the (gdb) continue part.

After I load the bitstream on the Zedboard ( make -C pulpissimo-zedboard download ) the blue LED (LD12) is on, as well as LD0.
From what I understand this means that the bitstream download was a success.

I do not own the Digilent HS-2 or the Altera USB Blaster but I connected JTAG and UART with my adapter according to the readme of the Zedboard.
I am also using minicom.

So now I just follow the steps until I reach the (gdb) continue part where it's stuck on "Continuing."

Here is the log of openocd (for readability I shortened the output of the disabled harts):

Quote:Open On-Chip Debugger 0.10.0+dev-00615-g5ead86ea9 (2020-08-24-15:25)
Licensed under GNU GPL v2
For bug reports, read
none separate
adapter speed: 1000 kHz
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
  TapName             Enabled  IdCode     Expected   IrLen IrCap IrMask
-- ------------------- -------- ---------- ---------- ----- ----- ------
0 riscv.unknown0         Y     0x00000000 0x10102001     5 0x01  0x03
1 riscv.cpu              Y     0x00000000 0x249511c3     5 0x01  0x03
Info : J-Link ARM V8 compiled Nov 28 2014 13:44:46
Info : Hardware version: 8.00
Info : VTarget = 3.364 V
Info : clock speed 1000 kHz
Info : JTAG tap: riscv.unknown0 tap/device found: 0x10102001 (mfg: 0x000 (<invalid>), part: 0x0102, ver: 0x1)
Info : JTAG tap: riscv.cpu tap/device found: 0x249511c3 (mfg: 0x0e1 (Wintec Industries), part: 0x4951, ver: 0x2)
Info : datacount=2 progbufsize=8
Info : Examined RISC-V core; found 1024 harts
Info :  hart 0: currently disabled
... (all other harts also disabled) ...
Info :  hart 991: currently disabled
Info :  hart 992: XLEN=32, misa=0x40901104
Info :  hart 993: currently disabled
... (all other harts also disabled) ...
Info :  hart 1023: currently disabled
Info : Listening on port 3333 for gdb connections
Ready for Remote Connections
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : accepting 'gdb' connection on tcp/3333

Here is the log of gdb:

Quote:NU gdb (GDB)
Copyright © 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-pc-linux-gnu --target=riscv32-unknown-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /local/lpla/pulpissimo/pulp-rt-examples/hello/build/pulpissimo/test/test...done.
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
warning: Target-supplied registers are not supported by the current architecture
0x1a000080 in ?? ()
(gdb) b _start
Breakpoint 1 at 0x1c008080: file kernel/riscv/rt/crt0.S, line 202.
(gdb) load
Loading section .data_tiny_fc, size 0x31c lma 0x1c000004
Loading section .init_array, size 0x2c lma 0x1c000320
Loading section .fini_array, size 0xc lma 0x1c00034c
Loading section .rodata, size 0x164 lma 0x1c000358
Loading section .data, size 0x110 lma 0x1c000cc0
Loading section .vectors, size 0xa0 lma 0x1c008000
Loading section .text, size 0x204c lma 0x1c0080a0
Loading section .l2_data, size 0xec lma 0x1c010000
Start address 0x1c008080, load size 10144
Transfer rate: 5 KB/sec, 1268 bytes/write.
(gdb) continue

Breakpoint 1, _start () at kernel/riscv/rt/crt0.S:202
202  jal x0, _entry
(gdb) continue

Here is the log of minicom (minicom -D /dev/ttyUSB0 115200):

Quote:Welcome to minicom 2.6.2

Compiled on May  5 2014, 09:45:24.
Port /dev/ttyUSB0, 13:13:12

Press CTRL-A Z for help on special keys
I added the breakpoint (b _start in gdb) and set the PULP_CFLAGS in the makefile of the app to -O0 -g as it has been suggested.
Hopefully this information will help in finding a solution.

Edit: I managed to get the output on minicom!
The only thing that still persists is the infinite Continue.
Even when enabling semihost it still won't work.
Right now I am setting a breakpoint on exit but it would be nice to have it just run till the end and then stop.


Messages In This Thread
RE: Compiling and running application on Zedboard (Pulpissimo) - by LPLA - 08-27-2020, 11:54 AM

Forum Jump: