Skip to content

Support for the stm32 platform#2185

Draft
naichenzhao wants to merge 25 commits intomasterfrom
stm32_2
Draft

Support for the stm32 platform#2185
naichenzhao wants to merge 25 commits intomasterfrom
stm32_2

Conversation

@naichenzhao
Copy link
Copy Markdown
Collaborator

@naichenzhao naichenzhao commented Feb 6, 2024

@lhstrh lhstrh added the feature New feature label Feb 7, 2024
@lhstrh lhstrh changed the title redid the Stm32 support. last one was having rebase issues Support for the stm32 platform Feb 7, 2024
Comment thread core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java Outdated
Comment thread core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java Outdated
@lhstrh lhstrh requested a review from erlingrj February 7, 2024 04:01
@lhstrh
Copy link
Copy Markdown
Member

lhstrh commented Feb 7, 2024

@erlingrj and @tanneberger: it seems to me that a better place to implement this would be in lingo, but @naichenzhao would need help with that. Luckily, this isn't a big PR, so it might be worth bringing it to lingo right away, and not merge it into lingua-franca first. WDYT? Would you be able to help? We do need this functionality soon though, because @naichenzhao and the people in his lab will be using it extensively for their project...

Copy link
Copy Markdown
Collaborator

@erlingrj erlingrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks promising @naichenzhao!

On a higher level. I worry that we will just pile on code and complexity for each target we want to support. It would be a huge improvement if STM32/Pico/Zephyr/++ support could be captured in a single CMake file that is not code-generated but just embedded in the JAR. @petervdonovan discuss this a little her: #2154.

I think we can merge in the STM32 stuff. But after this we should think a little about how we can make this scale better.

Comment thread core/src/main/resources/lib/platform/stm32/arm-none-eabi-gcc.cmake
Comment thread core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java
Comment thread core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java Outdated
Comment thread core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java Outdated
Comment thread core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java Outdated
Comment thread core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java Outdated
Comment thread core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java Outdated
Comment thread core/src/main/java/org/lflang/generator/c/CGenerator.java Outdated
Comment thread core/src/main/java/org/lflang/target/property/type/PlatformType.java Outdated
@lhstrh
Copy link
Copy Markdown
Member

lhstrh commented May 17, 2024

@naichenzhao, do you think you'll find an opportunity to work on this anytime soon? This efforts needs to be revived...

@erlingrj
Copy link
Copy Markdown
Collaborator

erlingrj commented Nov 5, 2024

This PR depends on #2432 to be merged first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants