arrow-left

All pages
gitbookPowered by GitBook
1 of 4

Loading...

Loading...

Loading...

Loading...

Connect MCU-Link-MR

This guide provides instructions for connecting the MCU-Link-MR to the MR-CANHUBK344 with the objective of flashing the Cognipilot software or any other Zephyr based onto the board.

circle-check

Either the J-LINK or MCU-Link may be used to program the MR-CANHUBK344

DRAFT-DRAFT-DRAFT Connect the MR-Link-MR to the 7 position JST-GH programing connector to the MR-CANHUBK344. Please, connect it as shown in the following image: <todo> update image to show MR-Link-MR <todo> alternatively connect the 10 pin JTAG/SWD ribbon cable connector <todo update photos below

Connect the USB cable to your development computer and also remember to connect power to the Buggy (the LiPo battery to the PDB) in order to flash the MR-CANHUBK344.

hashtag
Zephyr West : MCU-Link-MR (using pyOCD)

Use this command when programming using the MCU-Link or MCU-Link-MR from Zephyr west tool

The MCU-LINK-MR is an updated version of the MCU-link which includes debug interfaces for robotics including DCD, DCD-LZ, Pixhawk debug large and small, and USB-C to UART console. PyOCD method has to be used when using a or MCU-Link-MR

west flash --runner pyocd


hashtag
Building, Flashing and Debugging — Zephyr Project Documentation

More detailed official documentation for this is available here. See for default runner to use can be set​​ Then, you can return here to follow the instructions:

MCU-Linkarrow-up-right
https://docs.zephyrproject.org/latest/develop/west/build-flash-debug.html#choosing-a-runnerarrow-up-right
Prepare MR-CANHUBK344 real-time vehicle controller

CogniPilot: Prepare MR-CANHUBK344 for programming

Setting up B3RB with CogniPilot environment software

hashtag
Introduction

triangle-exclamation

The definitive guide is the CogniPilot website, these sub-pages are only for additional details and guidance.

hashtag
Prepare MR-CANHUBK344 real-time vehicle controller

Follow this section of CogniPilot to prepare Cognipilot-Cerebri on MR-CANHUBK344:

NEW:

NEW:

This will:

  1. Update MR-CANHUBK344 with the Zephyr+Cognipilot-Cerebri image. (Cerebri is the application, Zephyr is the RTOS. They are flashed simultaneously using a prepared image.)

hashtag
First connect MR-CANHUBK344 to J-LinkEDU Mini

You need to follow this guide to correctly flash Cerebri onto the board:

hashtag
Software Setup for MR-CANHUBK344

triangle-exclamation

The following steps must be performed after you have prepared your Linux Development PC.

circle-info

ros2 launch b3rb_bringup

hashtag
Next Steps

At ths point you are ready to use the MR-B3RB.

You can log into the NavQPlus and even into the MR-CANHUBK344 running CogniPilot/Zephyr

You can run ROS SIL or "real hardware" examples using RVIZ or Foxglove as a control station.

The vehicle is capable of being safely armed through several steps and autonomously navigating to a position and pose as specified/pointed to on the control station software.

hashtag
Execution

hashtag
Software Procedure

hashtag
MR-CANHUBK344

When booted, MR-CANHUBK344 should display the following CogniPilot logo and welcome screen on the console.

circle-info

Errata: If this image doesn't come up when you boot up the board, restart the board several times (by turning it off and on) till this image shows and you can be sure that the board MR-CANHUBK344 is awake and active. Note this issue has been addressed in Zephyr code and should no longer present itself. Please ensure you have the latest version of CANHUBK344 code.

Within a few seconds, the red light on the T1-Ethernet port on both the boards should light up.

hashtag
NavQPlus

hashtag
Links

The developer guide for CogniPilot can be found here:

NEW

https://airy.cognipilot.org/reference_systems/b3rb/setup/arrow-up-right
https://airy.cognipilot.org/reference_systems/b3rb/about/arrow-up-right
https://brave.cognipilot.org/reference_systems/b3rb/setup/arrow-up-right
https://brave.cognipilot.org/reference_systems/b3rb/about/arrow-up-right
Connect J-Link EDU Mini to MR-CANHUBK344 with DCD-LZ adapt board
robot.launch.pyarrow-up-right
https://cognipilot.org/releases/airy/getting_started/installarrow-up-right
https://brave.cognipilot.org/reference_systems/b3rb/setup/arrow-up-right
cd ~/cognipilot/ws/cerebri
west update
cd ~/cognipilot/ws/cerebri/app/b3rb
west build -b mr_canhubk3 -p
west flash
uart:~$
                                          ▄▄▄▄▄▄▄▄
         ▄▄▄▄▄ ▄▄▄▄▄                    ▀▀▀▀▀▀▀▀▀
     ▄███████▀▄██████▄   ▀█████████████████████▀
  ▄██████████ ████████ ▄   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
 ███████████▀ ███████▀ ██   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█████████▀   ▀▀▀▀▀▀▀▀ ████   ▀███████████▀
▀█████▀ ▄▄███████████▄ ████   ▄▄▄▄▄▄▄▄▄
  ▀▀▀ ███████████████▀ ████   ▀▀▀▀▀▀▀▀
       ▀▀█████▀▀▀▀▀▀  ▀▀▀▀   ▄█████▀
               ████████▀    ▄▄▄
               ▀███▀       ▀▀▀
                ▀▀
╔═══╗╔═══╗╔═══╗╔═╗ ╔╗╔══╗╔═══╗╔══╗╔╗   ╔═══╗╔════╗
║╔═╗║║╔═╗║║╔═╗║║║║ ║║╚╣╠╝║╔═╗║╚╣╠╝║║   ║╔═╗║║╔╗╔╗║
║║ ╚╝║║ ║║║║ ╚╝║║╚╗║║ ║║ ║║ ║║ ║║ ║║   ║║ ║║╚╝║║╚╝
║║   ║║ ║║║║╔═╗║╔╗╚╝║ ║║ ║╚═╝║ ║║ ║║   ║║ ║║  ║║
║║ ╔╗║║ ║║║║╚╗║║║╚╗║║ ║║ ║╔══╝ ║║ ║║ ╔╗║║ ║║  ║║
║╚═╝║║╚═╝║║╚═╝║║║ ║║║╔╣╠╗║║   ╔╣╠╗║╚═╝║║╚═╝║ ╔╝╚╗
╚═══╝╚═══╝╚═══╝╚╝ ╚═╝╚══╝╚╝   ╚══╝╚═══╝╚═══╝ ╚══╝
       ┏━━━┓┏━━━┓┏━━━┓┏━━━┓┏━━┓ ┏━━━┓┏━━┓
       ┃┏━┓┃┃┏━━┛┃┏━┓┃┃┏━━┛┃┏┓┃ ┃┏━┓┃┗┫┣┛
       ┃┃ ┗┛┃┗━┓ ┃┗━┛┃┃┗━┓ ┃┗┛┗┓┃┗━┛┃ ┃┃
       ┃┃ ┏┓┃┏━┛ ┃┏┓┏┛┃┏━┛ ┃┏━┓┃┃┏┓┏┛ ┃┃
       ┃┗━┛┃┃┗━━┓┃┃┃┗┓┃┗━━┓┃┗━┛┃┃┃┃┗┓┏┫┣┓
       ┗━━━┛┗━━━┛┗┛┗━┛┗━━━┛┗━━━┛┗┛┗━┛┗━━┛
ros2 launch b3rb_bringup robot.launch.py

Connect J-Link EDU Mini to MR-CANHUBK344 with Cognipilot debugger

This guide provides instructions for connecting the J-Link EDU Mini to the MR-CANHUBK344 with the objective of flashing the Cognipilot software onto the board

circle-check

This is an alternative connection using a Cognipilot debugger adapter.

First take the J-Link EDU Mini, you can find more information here:

Then, get the J-Link EDU Mini. Then, use the cable with a micro USB connector on one end and a USB Type-A connector on the other end.

Then take the and connect it to the J-Link EDU mini:

Please, connect the 10-Pin 2x5 Socket-Socket IDC (SWD) Ribbon cable in the following position to the J-Link EDU Mini:

Next, please pick up the Cognipilot debug adapter:

Next, connect one end of the 10-pin 2x5 Socket-Socket IDC (SWD) ribbon cable to the connector on the Cognipilot debugger. Ensure that the orientation of the connector corresponds to the one shown in the following image:

Finally, connect the other end of the 7 position JST-GH connector to the MR-CANHUBK344. Please, connect it into the pin showed in the following image:

Now, you just need to connectConnect the USB cable to your development computer and also remember to connect power to the Buggy (the LiPo battery to the PDB) in order to flash the MR-CANHUBK344, as the board needs to be connected to the power. Then, you can return here to follow the instructions: .

Connect the MR-Link-MR to the 7 position JST-GH programing connector to the MR-CANHUBK344. Please, connect it as shown in the following image:

Now, you just need to connect the USB cable to your development computer and also remember to connect the LiPo battery to the PDB to flash the MR-CANHUBK344, as the board needs to be connected to the power. Then, you can return here to follow the instructions:

10-Pin 2x5 Socket-Socket IDC (SWD) Ribbon Cablearrow-up-right
7 position JST-GH connector
A close view on how to connect the 7 position JST-GH connector to the debugger
Prepare MR-CANHUBK344 real-time vehicle controller
Prepare MR-CANHUBK344 real-time vehicle controller
https://cognipilot.org/releases/airy/getting_started/installcognipilot.orgchevron-right
J-Link EDU MINI DEBUGGER

Connect J-Link EDU Mini to MR-CANHUBK344 with DCD-LZ adapt board

This guide provides instructions for connecting the J-Link EDU Mini to the MR-CANHUBK344 with the objective of flashing the Cognipilot software onto the board.

circle-info

Make sure you have the following DCD-LZ adapt board

First take the J-Link EDU Mini, you can find more information here: J-Link EDU MINI DEBUGGER

Then, get the J-Link EDU Mini. Then, use the cable with a micro USB connector on one end and a USB Type-A connector on the other end.

Then take the and connect it to the J-Link EDU mini:

Please, connect the 10-Pin 2x5 Socket-Socket IDC (SWD) Ribbon cable in the following position to the J-Link EDU Mini:

Next, please pick up the DCD-LZ adapt board:

Next, connect one end of the 10-pin 2x5 Socket-Socket IDC (SWD) ribbon cable to the connector on the DCD-LZ adapt board. Ensure that the orientation of the connector corresponds to the one shown in the following image:

The pick the 7 position JST-GH connector:

Finally, connect one end to the DCD-LZ adapt board and the other end of the 7 position JST-GH connector to the MR-CANHUBK344. Please, connect it into the pin showed in the following image:

Now, you just need to connect the USB cable to your development computer and also remember to connect the LiPo battery to the PDB to flash the MR-CANHUBK344, as the board needs to be connected to the power. Then, you can return here to follow the instructions:

10-Pin 2x5 Socket-Socket IDC (SWD) Ribbon Cablearrow-up-right
A closer view of the 10-Pin 2x5 Socket-Socket IDC (SWD) Ribbon cable
7 position JST-GH connector
Prepare MR-CANHUBK344 real-time vehicle controller