GithubHelp home page GithubHelp logo

Support for tflm on nucleo-l4r5zi about renode HOT 3 OPEN

jsncepu avatar jsncepu commented on May 25, 2024
Support for tflm on nucleo-l4r5zi

from renode.

Comments (3)

mateusz-holenko avatar mateusz-holenko commented on May 25, 2024

Hi @jsncepu, thanks for asking a question.

Judging from the names of resc and repl scripts I assume you've found them on the Dashboard or Renodepedia,, is that correct? In such case yes, those are based on the Zephyr RTOS.

Renode is software agnostic, meaning that it should be able to run any payload that works on actual HW (ranging from custom baremetal, through RTOSes like Zephyr, more advanced OSes like Linux, etc.). The level of support might vary between platforms, though - it depends on the completeness of models.

In order to debug what's happening with the simulation I suggest enabling the following logs in Monitor/resc script:

cpu0 LogFunctionNames true
sysbus LogPeripheralAccess lpuart1 true

It might be that your software loops during initialization before it even reaches any UART output, but this should be visible in logs.

BTW, if you're interested in tflm, we also have a running demo of it in https://renodepedia.renode.io/boards/nucleo_l4r5zi/?view=software&demo=tensorflow_lite_micro (but it's also Zephyr based).

from renode.

jsncepu avatar jsncepu commented on May 25, 2024

Thank you for your reply @mateusz-holenko . I will try to debug my program according to your advice. I guess the main problem is that I don't know how to configure the parameters in the repl file for baremetal board without the RTOS becuase when I run my problem directly on the example based on the example resc and repl files, the monitor of Renode reported the error of no vector table. However, after I commentted out the line of codes of vector table, I got nothing from lpuart port.

from renode.

PiotrZierhoffer avatar PiotrZierhoffer commented on May 25, 2024

The vector_table line is Zephyr-specific. We typically try to guess the vector table offset for Cortex-M, but it doesn't work on every binary. You can set it manually to a symbol that is available in your ELF:

cpu0 VectorTableOffset `sysbus GetSymbolAddress "your_symbol_name"`

Do you see a reasonable output when you run the LogFunctionNames command mentioned above? Does it seem like your binary is actually executing?

from renode.

Related Issues (20)

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.