VRMiniIO3.0
Jump to navigation
Jump to search
Programming VR Mini IO Board v3.0[edit | edit source]
Preparation[edit | edit source]
- Required items: Linux Board with CAN bus connection, ST-LINK programmer
Bootloader Programming[edit | edit source]
- Open STM32CubeProgrammer program.
- Select 'Programming' section on the left menu.
- Ensure settings are correct, and click the 'Start automatic mode' button.
- Plug in the STM32 programming cable into the board.
- Power on the board.
- Watch the programming output to see if the board is programmed.
Mini IO Firmware Programming[edit | edit source]
- reset the board by unplugging and replugging in the Power / CAN cable.
- watch the bootloader lights pattern to show fast blinking.
- run the script ./mini_io_program.sh on the board, which runs vr-canboot with the current version of the Mini IO firmware.
- 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]
- After programming, the board should reboot into the application. The application will connect over CAN and you should see it at address VRSN00000170.
- Set a VRSerial:
VRSN170 SET VRSERIAL 12345
- Set a ComponentID:
VRSN170 SET COMPONENTID 123
- Commit:
VRSN170 COMMIT
- Done! Apply a board serial number to the board.