gap_sdk icon indicating copy to clipboard operation
gap_sdk copied to clipboard

"Ignoring2 invalid command" when running Profiler

Open bo-dani opened this issue 3 years ago • 4 comments

  • Qt version: Using Qt version 5.13.2 in /home/dama/Qt5/5.13.2/gcc_64/lib
  • SDK version: 4.5.0

I'm trying to run the Profiler against the hello_world example but I'm not able to see any signal outputted when I click on Play. I noticed that the output is different from the tutorial on the website, with a bunch of invalid (empty commands):

╭─ ~/r/baldwin2/v/g/gap_sdk/examples/pmsis/helloworld  on master ?3 ····· ✔  base Py  at 16:01:36 ─╮
╰─ make clean all profiler platform=gvsoc                                                         ─╯
    CC helloworld.c
    ASM  startup_gap9.S
    ....
    CC  FreeRTOS_util.c
gapy [email protected]_evk --platform=gvsoc --work-dir=/home/dama/repos/baldwin2/vendor/greenwaves/gap_sdk/examples/pmsis/helloworld/BUILD/GAP9_V2/GCC_RISCV_FREERTOS    run --image --binary=/home/dama/repos/baldwin2/vendor/greenwaves/gap_sdk/examples/pmsis/helloworld/BUILD/GAP9_V2/GCC_RISCV_FREERTOS/test 
gapy [email protected]_evk --platform=gvsoc --work-dir=/home/dama/repos/baldwin2/vendor/greenwaves/gap_sdk/examples/pmsis/helloworld/BUILD/GAP9_V2/GCC_RISCV_FREERTOS    run --flash --binary=/home/dama/repos/baldwin2/vendor/greenwaves/gap_sdk/examples/pmsis/helloworld/BUILD/GAP9_V2/GCC_RISCV_FREERTOS/test 
gapy [email protected]_evk --platform=gvsoc --work-dir=/home/dama/repos/baldwin2/vendor/greenwaves/gap_sdk/examples/pmsis/helloworld/BUILD/GAP9_V2/GCC_RISCV_FREERTOS    --config-opt="gvsoc/debug-mode=true" --config-opt="gvsoc/events/gen_gtkw=false" run --image --flash --exec-prepare --binary=/home/dama/repos/baldwin2/vendor/greenwaves/gap_sdk/examples/pmsis/helloworld/BUILD/GAP9_V2/GCC_RISCV_FREERTOS/test --event-format=raw --event=.*@all.bin 
cd /home/dama/repos/baldwin2/vendor/greenwaves/gap_sdk/examples/pmsis/helloworld/BUILD/GAP9_V2/GCC_RISCV_FREERTOS && if [ -e all.bin ]; then rm all.bin; fi; mkfifo all.bin
cd /home/dama/repos/baldwin2/vendor/greenwaves/gap_sdk/examples/pmsis/helloworld/BUILD/GAP9_V2/GCC_RISCV_FREERTOS && export PULP_CONFIG_FILE=/home/dama/repos/baldwin2/vendor/greenwaves/gap_sdk/examples/pmsis/helloworld/BUILD/GAP9_V2/GCC_RISCV_FREERTOS/gvsoc_config.json && profiler /home/dama/repos/baldwin2/vendor/greenwaves/gap_sdk/examples/pmsis/helloworld/BUILD/GAP9_V2/GCC_RISCV_FREERTOS /home/dama/repos/baldwin2/vendor/greenwaves/gap_sdk/examples/pmsis/helloworld/BUILD/GAP9_V2/GCC_RISCV_FREERTOS/test gvsoc_config.json --signal-tree-file=/home/dama/repos/baldwin2/vendor/greenwaves/gap_sdk/tools/profiler/gui/images/signalstree_GAP9.txt
[.] Profiling @ 100 KHz
[.] Executable file is: /home/dama/repos/baldwin2/vendor/greenwaves/gap_sdk/examples/pmsis/helloworld/BUILD/GAP9_V2/GCC_RISCV_FREERTOS/test
[.] stall regex is ((^.*/chip/soc/fc/)|(^.*/cluster/pe([0-9]+)/))((pcer_jmp_stall)|(pcer_imiss)|(misaligned)|(pcer_ld_stall))$
[.] gdb child set up
[.] parsing elf 
[.] pulp-pc-info --file /home/dama/repos/baldwin2/vendor/greenwaves/gap_sdk/examples/pmsis/helloworld/BUILD/GAP9_V2/GCC_RISCV_FREERTOS/test --all-file test.debug_info
[+] parse_elf OK
[.] begin listen()
[-] Opening Signals Tree File /home/dama/repos/baldwin2/vendor/greenwaves/gap_sdk/tools/profiler/gui/images/signalstree_GAP9.txt
Ignoring2 invalid command: 
Ignoring2 invalid command: 
Ignoring2 invalid command: 
Ignoring2 invalid command: 
Ignoring2 invalid command: 
Ignoring2 invalid command: 
Ignoring2 invalid command: 
Ignoring2 invalid command: 
Ignoring2 invalid command: 
Ignoring2 invalid command: 
Ignoring2 invalid command: 
Ignoring2 invalid command: 
Ignoring2 invalid command: 
Ignoring2 invalid command: 
Ignoring2 invalid command: 
Ignoring2 invalid command: 
Ignoring2 invalid command: 
Ignoring2 invalid command: 
Ignoring2 invalid command: 
Ignoring2 invalid command: 
Ignoring2 invalid command:

Any idea of what is happening? If you need more information or anything please let me know!

Thanks in advance,

bo-dani avatar Oct 25 '21 14:10 bo-dani

HI @bo-dani ,

Sorry for our late reply, and we found the current version of profiler has lots of problems, so we are rewriting a new version, which should be comming soon. Before the release, I suggest you to use the old "vcd" trace mode in GVSOC with gtkwave. You just need to run your example: make all run runner_args+=--vcd Then open the vcd trace with gtkwave.

Here's a blog about how to use it: https://greenwaves-technologies.com/gvsoc-the-full-system-simulator-for-profiling-gap-applications/

We will let you know when the new version is released.

Regards, Yao

Yaooooo avatar Nov 14 '21 19:11 Yaooooo

Thanks @Yaooooo :)

bo-dani avatar Nov 15 '21 08:11 bo-dani

hi, @Yaooooo , do we have any updates on proiler?

hustc12 avatar Dec 16 '22 21:12 hustc12

Currently, when I run the command: make clean all profiler platform=gvsoc under the helloworld directory, then the following error message pops up: bash: profiler: command not found It looks like the profiler hasn't been built. When I build the gap_sdk, I only executed the command: make gvsoc nntool. Did I miss something here?

My QT information is: QMake version 3.1 Using Qt version 5.12.8 in /usr/lib/x86_64-linux-gnu

hustc12 avatar Dec 16 '22 21:12 hustc12