VRMiniIO3.0

From VentureResearchWiki
Jump to navigation Jump to search

Programming VR Mini IO Board v3.0[edit | edit source]

Preparation[edit | edit source]

  1. Required items: Linux Board with CAN bus connection, ST-LINK programmer

Bootloader Programming[edit | edit source]

  1. Open STM32CubeProgrammer program.
  2. Select 'Programming' section on the left menu.
  3. Ensure settings are correct, and click the 'Start automatic mode' button.
    1. File Path for correct Boot Loader
    2. Start address 0x08000000
    3. Verify Programming checked
    4. Full Chip Erase checked
    5. Download File checked
    6. Option Bytes commands set to "-ob rdp=0xbb" for Code Readout Protection
    7. Stm32cubeprogrammer-settings-mini-io.png
  4. Plug in the STM32 programming cable into the board.
  5. Power on the board.
  6. Watch the programming output to see if the board is programmed.

Mini IO Firmware Programming[edit | edit source]

  1. reset the board by unplugging and replugging in the Power / CAN cable.
  2. watch the bootloader lights pattern to show fast blinking.
  3. run the script ./mini_io_program.sh on the board, which runs vr-canboot with the current version of the Mini IO firmware.
    1. This script looks like this:
#!/bin/bash
echo "please press any key when board is plugged into CAN bus and bootloader is blinking"
read WAIT
vr-canboot --start 0x10000 -f Mini_IO_3.0_v3.0.5.bin -v -a 170
# download the firmware file: wget http://readonly:secret@svn/svn/source/projects/STM32/Mini_IO_3.0/Release/Mini_IO_3.0_v3.0.5.bin


VRSerial Setup[edit | edit source]

  1. After programming, the board should reboot into the application. The application will connect over CAN and you should see it at address VRSN00000170.
  2. Set a VRSerial:
VRSN170 SET VRSERIAL 12345
  1. Set a ComponentID:
VRSN170 SET COMPONENTID 123
  1. Commit:
VRSN170 COMMIT
  1. Done! Apply a board serial number to the board.