lowRISC / ibex-demo-system

A demo system for Ibex including debug support and some peripherals
Apache License 2.0
53 stars 40 forks source link

[util] Add openocd to allow use of Olimex probe with Sonata #101

Closed GregAC closed 7 months ago

GregAC commented 7 months ago

We need to work out a better way to organise OpenOCD configs and stop hard-coding the config file in the load_demo_system.sh script. However not a priority for now so just chucking all of this in a separate new config file.

This works with the Olimex ARM-USB-TINY-H against the Sonata v0.5 board.

marnovandermaas commented 7 months ago

There's already a way to specify the config file, which I added after Sonata: ./util/load_demo_system.sh run ./sw/c/build/demo/hello_world/demo ./util/sonata-openocd-cfg.tcl

GregAC commented 7 months ago

There's already a way to specify the config file, which I added after Sonata: ./util/load_demo_system.sh run ./sw/c/build/demo/hello_world/demo ./util/sonata-openocd-cfg.tcl

Ah great, this had passed me by.

We'll still want a better setup with the TCL files so we can have some board/probe specific files and a more general system file but what we have now with separate files repeating themselves will do the job for now.