-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for tflm on nucleo-l4r5zi #572
Comments
Hi @jsncepu, thanks for asking a question. Judging from the names of 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:
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). |
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. |
The
Do you see a reasonable output when you run the |
Hi. I used x-cube-ai package in stm32cubeide to generate a small tflm application (e.g., sine model). It can run normally on a real nucleo-l4r5zi board. I can see the output in lpuart1 from a virtual serial port. However, when I tried to load the generated elf file into renode (I used the demo repl and resc of the officicial : nucleo_l4r5zi-hello_world.resc and nucleo_l4r5zi-hello_world.repl), I got nothing from lpusart1. It seems that the official demo uses zephyr rtos. Is it the problem affecting my port effeorts? How can I get a barel version of repl for l4r5zi which doesn't include zephyr rtos just like stm32f746-bb-repl? Could anynoe can help me? Thank you very much!
The text was updated successfully, but these errors were encountered: