# \[RFC\] Standalone Code Generation and C Runtime for STM32 bare-metal devices

**URL:** <https://discuss.tvm.apache.org/t/rfc-standalone-code-generation-and-c-runtime-for-stm32-bare-metal-devices/9562>\
**Category:** Development\
**Created:** [March 29, 2021, 4:00pm UTC](https://discuss.tvm.apache.org/t/rfc-standalone-code-generation-and-c-runtime-for-stm32-bare-metal-devices/9562 "2021-03-29T16:00:24Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![stoa](https://discuss.tvm.apache.org/letter_avatar_proxy/v4/letter/s/ac8455/32.png) [@stoa](https://discuss.tvm.apache.org/u/stoa)\
**Post date:** [April 2, 2021, 4:20pm UTC](https://discuss.tvm.apache.org/t/rfc-standalone-code-generation-and-c-runtime-for-stm32-bare-metal-devices/9562/9 "2021-04-02T16:20:58Z")

</div>

Hello, Andrew @areusch

Implementing the **Project API** , am encountering a couple of issues:

1. The `generate_project` script takes one tar ball with a model, multiple models do not seem to be supported. I would propose to add a function `add_model(module_library_format_tar)` that will add a given model to the project. Or any other solution you may prefer, so that a project could include multiple models ?
2. We have the stm32 runtime API code that is not included with the `standalone_crt` distribution. How do you propose the project accesses this runtime code ?
3. I can test the `ProjectAPIHandler` methods (from the `microtvm_api_server.py`) directly from a small script, verifying the functionality for `generate_project`, `build`, and `flash`. However, I have not found the `project_api` in the main branch, or is it ? How do you propose I continue ?

---

_[View the full topic](https://discuss.tvm.apache.org/t/rfc-standalone-code-generation-and-c-runtime-for-stm32-bare-metal-devices/9562)._
