The last command will build the BSP. The full build will take about 1-2 hours dpending on machine and internet speed and will require around 25GB disk space.
Flashing an Application to Avenger96 board
******************************************
When the build completes it puts all the required files into the'deploy' folder. Execute the following commands:
The last command creates FlashLayout_sdcard_stm32mp157a-av96-trusted.raw.
We can write it to a uSD card with:
.. code-block:: console
$ sudo dd if=FlashLayout_sdcard_stm32mp157a-av96-trusted.raw bs=1M of=/dev/sdX && sync where /dev/sdX is the block device of the inserted uSD card.
Once you have built your own AV96 Yocto image, your build provides all the files you need to use the Cube Programmer.
Debugging
*********
You can debug an application using OpenOCD and GDB. The Solution proposed below is based on the Linux STM32MP1 SDK OpenOCD and is available only for a Linux environment. The firmware must first be loaded by the Cortex®-A7. Developer then attaches the debugger to the running Zephyr using OpenOCD.