Skip to content

NXPHoverGames/RapidIoT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RapidIoT

A detailed manual for embedding the code in the SDK example "hello_world" can be found here: https://nxp.gitbook.io/hovergames/addons/rapid-iot/mavlink-for-rapid-iot

Steps to include the MAVlink demo into the Rapid IoT “Hello World” demo:

Install SDK for Rapid IoT:

  1. Download SDK from here: https://www.nxp.com/webapp/Download?colCode=SLN-RPK-NODE-SDK&appType=license
  2. Install the SDK per Drag&Drop into the “Installed SDKs” Window of MCUXpresso

Import the “rapid_iot_hello_world” project into your workspace

  1. Open the Workspace in which you want to work.
  2. Select “File->New->Project”
  3. A wizard for a new Project opens
  4. Select “MCUXpresso IDE -> Import SDK Examples” and press next
  5. Select the “rapid_iot_k64f” board (you can find it after selecting “K6x” in the window “SDK MCUs”) and press next
  6. Create a project name (prefix) and select the “hello world” project under the item “rapid_iot_apps” and change the "SDK Debug Console" zu UART, then press next
  7. From the project Advanced Settings page, uncheck the two options Redirect SDK “PRINTF” to C library “printf” and Include semihost Hardfault handler and check the option Redlib: Use floating point version of printf, then press Finish

Activating UART2 for the Demo code

  1. Go to the “Peripherals". To do that select Window->Perspective->Open Perspective->Peripherals
  2. Select your project and the functional group “BOARD_Init_TERMIANL_UART” and activate the checkbox of UART2 and name this Peripheral “UART_2”
  3. Update the Project via the “Update Project” button (in some versions it can be called "Update Code")
  4. Build the project. Now errors may occur during compilation. How to fix this is described here: https://nxp.gitbook.io/hovergames/addons/rapid-iot/mavlink-for-rapid-iot

Include the Mavlink Demo into the “Hello World” example

  1. Copy the folder “mavlink” into the project (select the project header by right click and paste the folder there)
  2. Delete the “hello_world.c” in the folder “source”
  3. Copy the file “hg_mavlink_demo.c” in the folder “source”
  4. Build the project

Flashing the code on the Rapid IoT

  1. Select the “GUI Flash Tool” on the top and flash your code to the Rapid IoT
  2. Therefore you have to connect your device to the PC via JLink. Follow the steps in this link till connection of the adapter board with the J-Link: https://nxp.gitbook.io/hovergames/developerguide/program-software-using-debugger after that connect the JST-GH wire to the debug port of the HDIB abapter board (port at the bottom).

About

MAVLINK Demo for a Rapid Iot device

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •