You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can can setup docker and compile the latest version of the orchestrator with the command:
292
-
293
-
```sh
294
-
task board:init
295
-
```
296
-
297
-
### Jomla microcontroller
298
-
299
-
Jomla is a development microcontroller board that can be attached to the RB1.
300
-
301
-
Linux and Jomla share a set of GPIOs a serial port at `/dev/ttyHS1`, and a SPI bus (not yet configured).
302
-
303
-
The important GPIOs are:
304
-
305
-
- GPIO 71: Jomla board enable
306
-
- 0: Jomla board enabled
307
-
- 1: Jomla board disabled
308
-
309
-
- GPIO 40: Jomla reset
310
-
- 0: Jomla reset
311
-
- 1: Jomla normal operation
312
-
313
-
The board starts with the microcontroller disabled by default, and it is also recommended to toggle the reset pin before flashing the firmware or the sketch.
314
-
315
-
On the board, you can do it with the following commands:
gpioset -c /dev/gpiochip1 -t0 40=1 # Set Jomla board to normal operation
321
-
```
322
-
323
-
The flashing is done with a custom version of OpenOCD, that uses the gpiod to flash either the Zephyr firmware or the sketch. OpenOCD is needed only on the board and the `task board:init` command will install it in `/opt/openocd/bin/openocd`. There are also a set of configuration files also installed in `/opt/openocd/`.
Although the `cmd/uploader` go command is wrapping those command and handling the flashing of the sketch and it is working either in the board or in the host. It required libusb1 installed on the host.
340
-
341
-
#### Set up the Zephyr platform
342
-
343
-
In order to compile a sketch for Jomla you need the Zephyr platform installed. There is a private developed version with the branch jomla with everything needed, i.e., https://github.com/bcmi-labs/ArduinoCore-zephyr/tree/jomla.
344
-
345
-
The setup of the platform could be complicated so for quick development you can use the archive at `./debian/jomla/ArduinoCore-zephyr.tar.xz` and extract in the arduino folder as a custom platform.
346
-
347
-
For example if you are on a MacOS you can do
348
-
349
-
```sh
350
-
tar -xJf ./debian/jomla/ArduinoCore-zephyr.tar.xz -C ~/Documents/Arduino/hardware/dev
351
-
```
352
-
353
-
Remember to also install all the tools needed by the platform with `arduino-cli core install arduino:zephyr --additional-urls https://downloads.arduino.cc/packages/package_zephyr_index.json`
354
-
355
-
You can now build a sketch by using the `Jomla` platform, for example:
The `--build-path` is needed to avoid the `arduino-cli` to use the default path so that we can manually invoke the uploader. For instance you flash the sketch with the command:
362
-
363
-
```sh
364
-
go run ./cmd/uploader build/sketch.ino.elf-zsk.bin
365
-
```
366
-
367
-
Before doing that, you also need to flash the zephyr firmware on the Jomla board, which is done with the command:
368
-
369
-
```sh
370
-
go run ./cmd/uploader ~/Documents/Arduino/hardware/dev/ArduinoCore-zephyr/firmwares/zephyr-b_u585i_iot02a_stm32u585xx.elf
0 commit comments