Problems flashing co-processor on balenaFin V1.1 (via. Raspbian)

I’m trying to flash the co-processor from Raspbian using openocd. I have basically executed all steps that this balena application does, when it is run on balenaOS:

https://github.com/balena-io-playground/balena-fin-firmata-flash

I’m now at a point where uart1 is up and running and I should be able to just run flash.sh. However, when running flash.sh it complains about pin 510 (export error) from the “/co-processor/app/openocd/config/balena-fin-v1.1.cfg” file. If I comment out “sysfsgpio_srst_num 510” in that file, the whole flashing process executes fine, with the following output:


./flash.sh firmata-balena-0.0.2.hex 10
Opening screen terminal for flashing firmata-balena-0.0.2.hex to balenaFin v10
Trying ::1…
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
Open On-Chip Debugger
reset halt
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0fe10000 msp: 0x20000400
program firmware/bootloader.s37
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0fe10000 msp: 0x20000400
** Programming Started **
detected part: EFR32MG1B Blue Gecko, rev 151
flash size = 256kbytes
flash page size = 2048bytes
Padding image section 0 at 0x00000614 with 492 bytes
** Programming Finished **
reset halt
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0fe10000 msp: 0x20000400
program firmware/firmata-balena-0.0.2.hex
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0fe10000 msp: 0x20000400
** Programming Started **
** Programming Finished **
reset run
Connection closed by foreign host.
closing the openocd process…
flashing complete


However, after doing so, the co-processor is not responding when I send firmware version requests ([0xF0, 0x0B, 0x00, 0xF7]) over the uart1 serial line. I’m therefore thinking the flash probably wasn’t successfull and needs the sysfsgpio_srst_num 510 pin to succeed, which I commented out. I therefore have two questions:

  1. From the output listed above, does it look like the flashing of the co-processor succeeded?

  2. If not, do you have an comments to why “sysfsgpio_srst_num 510” in the openocd config file, would throw an error (could not be exported)? And any recommendations in general?

Thanks in advance!
Mads