Skip to content

Example in which Embedded Proto is used to do CAN net booting on a NXP FRDM-KE06Z

Notifications You must be signed in to change notification settings

Embedded-AMS/EmbeddedProto_Example_FRDM_CAN_Bootloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EmbeddedProto_Example_FRDM_CAN_Bootloader

Example in which Embedded Proto is used to do CAN net booting on a NXP FRDM-KE06Z

alt text

Embedded Proto is a product of Embedded AMS B.V. For more information about Embedded Proto please visit EmbeddedProto.com.

Copyrights 2020-2024 Embedded AMS B.V. Amsterdam, www.EmbeddedAMS.nl, [email protected]

Introduction

This repository hosts example code for Embedded Proto, the embedded implementation of Google Protocol Buffers. This is an example showing how the NXP FRDM-KE06Z boots with firmware it receives from a CAN network.

Commands are sent from the PC to a USB to CAN converter which is connected to the FDRM-KE06Z.

You can read the full tutorial here.

Requirements

  • FDRM-KE06Z
  • MCUExpresso
  • USB to CAN adapter, like this one
  • Dupont cables
  • Embedded Proto version 3.4.1 (included as a submodule). The requirements of Embedded Proto are listed here.

Installation

  1. Install MCUXpresso if you have not already.
  2. Install the dependencies required by Embedded Proto. They are listed here.
  3. Clone the repository and auto generate the protobuf files.
git clone --recursive https://github.com/Embedded-AMS/EmbeddedProto_Example_FRDM_CAN_Bootloader.git 
cd EmbeddedProto_Example_FRDM_CAN_Bootloader
python3 setup.py

Running the code

  1. Connect the USB to CAN to the FDRM-KE06Z CAN header.
  2. Upload the code to the FRDM-KE06Z using MCUExpresso. The board includes the PE-Micro debugger.
  3. Run the following instructions
cd EmbeddedProto_Example_FRDM_CAN_Bootloader
source desktop/venv/bin/activate
python3 desktop/main.py desktop/assets/frdmke06z_led_blinky_RED.bin

Debug information will be shown in the terminal. After the booting is done the led will start blinking RED.

There is another example binary to make the led blink GREEN

python3 desktop/main.py desktop/assets/frdmke06z_led_blinky_RED.bin

Have fun!


Three simple things you can do to help improve Embedded Proto:

About

Example in which Embedded Proto is used to do CAN net booting on a NXP FRDM-KE06Z

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published