This commit is contained in:
Arthur 2024-07-11 16:41:17 -04:00
parent 225122de54
commit 29cfbf96ad

View file

@ -10,6 +10,7 @@ Each box is composed of a few components:
- The adapter board that plugs in the base board and provide the input and output power connectors.
- The case, composed of the bottom and top plastic parts and the front and back metal plates.
- The hardware: screws, spacers, spings.
- A label with the device Id and the version.
When fully setup, the box should have all the software and the complete case installed.
@ -41,12 +42,15 @@ Congratulation, the FPGA is ready now.
The base firmware is common to all boxes.
To flash the base firmware to the Atmel microcontroller, follow these steps:
For flashing of the firmware, it is also required to set the GPNVM bits to 0x42.
+ In the `Device Programming` tool, select in the left sidebar `GPNVM Bits`.
+ If the value is anything other than 0x42, set the value to 0x42 and click `Program`.
+ Power ON the box using the ethernet cable.
+ Connect the Atmel adapter to the base board using the vertical port closest to the Atmel chip.
+ If using a virtual machine, enable the USB device as for the FPGA.
+ Open the Microchip software.
+ Select `Tools` #sym.arrow `Device Programming`.
+ #text(fill:red)[??]
+ In the Device dropdown select your device based on the final characters etched on the Atmel chip:
+ ATSAMV71Q19B for the Q19
+ ATSAME70Q20B for the Q20
@ -58,9 +62,6 @@ To flash the base firmware to the Atmel microcontroller, follow these steps:
+ Ensure the selected file is `application.elf` either in the `Debug` or `Debug_V71Q19B` folder.
+ Press `Programm`
For later flashing of the firmware, it is also required to set the GPNVM bits to 0x42.
+ In the `Device Programming` tool, select in the left sidebar `GPNVM Bits`.
+ If the value is anything other than 0x42, set the value to 0x42 and click `Program`.
To set the security bits that disable recovery of the firmware, select `Security` in the left sidebar of the `Devide Programming` menu and press `Set`.
@ -109,11 +110,11 @@ Once the device is added to the frontend, you can find the connection string in
+ Under `Device Management` #sym.arrow `Devices` select the new device you registered.
+ In the ` Primary connection string` select the part after `SharedAccessKey=`. Make sure to exclude the first "=" sign after `SharedAccessKey` but include the last "=" at the end of the connection string.
= Flashing Firmware
= Flashing RTOS Firmware
To flash the firmware, you first need to update the configuration file that stores the informarion specific to this box and then flash the rebuilt firmware to the box.
+ Update the file in `base-firmware-new\application\src\aa_set_device_parameter_here.h`
+ Update the file in `base-firmware-new\application\src\aa_set_device_parameter_here.h`.
+ Change the `SAS_KEY` value to the connection string from the IoT Hub.
+ Change the `AZURE_DEVICE_ID` field to the Id of the box from the label.
+ If needed, change the `MCU_DEVICE_ID` field to the last three characters of the Atmel chip serial.