I work with balenaFin to deploy a lorawan gateway. To do that I use RAK2245 like concentrator ( RAK2245 Pi HAT WisLink LPWAN Concentrator Datasheet | RAKwireless Documentation Center ) .
Recently, I want to use the coprocessor to allows to enter in sleeping mode. I use this project to communicate with co-processor GitHub - balena-io/balena-fin-firmata-flash: BalenaFin application to flash the on-board co-processor with the latest version of balenaFin Firmata.
During co-processor flashing operation, I am getting error with my gateway. I think there is a gpio manipulation during flashing and the RAK2245 can’t communicate with CM3 via SPI. On the readme project, we need to enable uart (GPIO 32 and GPIO 33). On balenaFIn schematic, I see there is GPIO41 to select SW or UART of MCU.
In the balena-fin-firmata-flash project, I see in openocd configuration file , there is pin set for jtag protocol. JTAG pins are the same pins used for SPI communication (GPIO 9, 10 and 11)
Once co-processor is flashed, all service work correctly.
Do you know if JTAG pins are used during co-processor flashing process ? How can I do to ensure SPI communication during co-processor flashing stage?