where is bootloader document

Post Reply
phil_quik
Posts: 36
Joined: Mon May 18, 2020 12:33 am

In Working.with.Zephyr.pdf, it mentioned a boot loader document to flash image. Where can I find that?

Executing:
It generates the output binary in elf and bin formats in samples/hello_world/build/zephyr.

Follow the instructions in boot loader document to flash the M4 image bin file and execute.
Optionally if you have connected with Jlink you can use GDB server and client to run the app. See
annexure for details.
spingali
Posts: 10
Joined: Fri May 15, 2020 5:58 am

You require Tiny FPGA programmer to program M4 image on to the flash. Please go through below file for details.
https://github.com/QuickLogic-Corp/qorc ... /README.md

I have copied the installation steps here for quick reference:

Flash programmer toolchain: TinyFPGA programmer
To install clone the repository and install the dependancy
$ git clone --recursive https://github.com/QuickLogic-Corp/Tiny ... cation.git
$ pip3 install tinyfpgab
Recommend adding an alias to simplify programming:
$ echo 'alias qfprog="python3 ~/TinyFPGA-Programmer-Application/tinyfpga_programmer-gui.py"' >> ~/.bashrc
$ source ~/.bashrc

I have copied the steps to program and run, from the same document, for quick reference.

1. Reset QuickFeather board and press ‘user button’ while blue LED is flashing.
Should switch to mode where green LED is breathing.
If green LED not breathing, press reset again and ‘user button’ within 5 seconds of releasing reset (while blue LED is still flashing)

2. With green LED breathing, program qf_helloworldsw app into QuickFeather:

$ qfprog --port /dev/ttyXX --m4app output/bin/qf_helloworldsw.bin
replace /dev/ttyXX with the actual device path.

3. After programming has completed, reset the QuickFeather board and do not press the user button.
Blue LED should flash for 5 sec and then load the m4app and run it.

Note: Change the name and path of the bin file as required.

These steps will be added to zephyr documentation in next release.
Post Reply