This page details how to compilecompiling, loadloading, and run running the N6Cam BSP.
Table of Contents
Table of Contents |
---|
...
References
...
Requirements (hard/software)
Compiling the BSP demo
Loading & running the demo
Requirements
N6Cam
Note |
---|
This info needs to be updated for N6Cam revB |
...
Power
...
Debug
The debug connector (2) provides a standard STDC14 interface to plug a debugger.
Boot Mode
The boot selector switch (1) selects the board's operating mode. Facing the N6Cam from the front (camera):
...
Development
...
Switch to the right: Operation mode.
Development Hardware
To debug and flash new firmware you’ll need either one of the following:
...
Loading & running the demo
Signing binaries
You'll need to sign the binaries first to enable the N6Cam to run the application in operation modeBefore loading the application to the N6Cam, you must sign the binaries. To achieve this you’ll need to:
...
With the N6Cam unpowered and STLink unplugged from your host machine.
Set the N6Cam switch to development mode
Plug the STDC14-STDC14 flat cable to connect the STLink and the N6Cam
Plug the N6Cam and the STLink to your host machine
Open the STM32CubeProgrammer (if closed):
Configure the external loader:
(1) Go to the “External loaders” tab
(2) Search for
STM32N6
(3) Select the
MX66UW1G45G
loader
Connect to the device:
(1) Select “ST-LINK” from the dropdown menu
(2) Configure the device as shown:
Hot plug
mode, withSoftware reset
, for access port1
(3) Click “Connect”
Flashing the firmware:
(1) Go to the “Erasing & Programming” tab
(2) Browse for the binaries and (3) configure the start address as follows:
FSBL:
Image:
<ROOT>\Binaries\Siana.N6Cam.BSP.FSBL.signed.bin
Address:
0x70000000
Standalone:
Image:
<ROOT>\Binaries\Siana.N6Cam.BSP.Standalone.signed.bin
Address:
0x70080000
(4) Click “Start Programming”
Flashing the AI model:
(1) Go to the “Erasing & Programming” tab
(2) Browse for model binaries:
<ROOT>\Sources\Model\network_data.hex
Note: Since this is a hex file you don’t need to set the target address(3) Click “Start Programming”
Disconnect both the N6Cam and the STLink
Set the N6Cam to operation mode
Running the demo
These instructions assume you’ve loaded the binaries to the device and the N6Cam is in operation mode.
Connect the N6Cam to the host machine
Open the viewer tool included in
<ROOT>\Tools
. Binaries for both Windows and Linux are included
If the flashing process is OK, the N6Cam will be recognized as a UVC device by the host and the viewer will be able to read the stream:
...
In the image:
...
N6Cam being detected as a camera device on Windows
...
Follow the steps in https://siana-systems.atlassian.net/wiki/spaces/N6Cam/pages/3919937537/Intro+unboxing#Running-the-demo