Coder Social home page Coder Social logo

soc-arch-polito / ex22-pio-renode-uart Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 6 KB

Demo of usage of platformio and renode, for the development of a zephyr app for the K64F board.

License: BSD 3-Clause "New" or "Revised" License

C 70.41% CMake 29.59%
2022 example k64f platformio renode zephyr

ex22-pio-renode-uart's Introduction

Simple demo for the usage of platformio and renode

This simple demo shows how to use platformio and renode to develop a simple zephyr application.

The targets are the

4 environments are created:

  • One for renode upload with the K64F
  • One for renode debug with the K64F
  • One for the real hardware upload and debug with the K64F
  • One for renode upload with the nucleo_f410rb

K64F and renode

For the renode env, you need to create a simple k64f.resc script, as renode does not provide a script for this platform.

:name: K64F
:description: This script creates a machine and loads the K64F platform

:just to type less
using sysbus

:create machine and load platform
mach create "K64F"
machine LoadPlatformDescription @platforms/cpus/nxp-k6xf.repl

The file needs to be placed in the single-node scripts folder of your renode installation. On linux that is:

/opt/renode/scripts/single-node/

The application simply reads lines from an UART, and echo the lines back to the user with some additional info.

The example is inspired by this zephyr post.

For testing purposes, the app opens an analyzer for the uart, and creates a socket in the port 3456. From the host it is possible to access the uart by connecting to the port with:

$ telnet localhost 3456

ex22-pio-renode-uart's People

Contributors

waltergallegog avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.