ASCET code generation for STM32 - Doubts and Help #22
-
|
Hi! I came across with your ASCET-STM32 integration content and it is amazing. I'm still a beginner in using ASCET but I'm already working in a project to use it to generate code to a STM32 (initially the F103RB nucleo, but later the F446RE) using the STM32 Cube IDE. May I ask some doubts regarding how to fully integrate it? Even with your examples I'm having some trouble to fully understand it.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hi Welcome to ASCET community 👍 . Regarding your questions: In ASCET projects, for each app and target runtime, the configuration is saved as .launch file. For ST Micro we have have an example here BalanceTube/ASCET-DEVELOPER/BalanceTube/BalanceTube STMicro.launch. If you inspect this in ASCET launch UI you can see that the target folder is 2 levels up into the src-gen folder of the STM Cube IDE project. In Balance tube example we use defaults. The generated code is device agnostic and will definitely compile. For RTOS integration in the BalanceTube/ASCET-DEVELOPER/BalanceTube/BalanceTube.app file, the threads from the classes are grouped logically into different task functions. You have to then call this function from some RTOS function in your STM project or your own scheduler of choice. If you use the built in example for Demo for ST Micro there we have used an FreeRTOS example. Good luck |
Beta Was this translation helpful? Give feedback.
-
|
ASCET-DEV is successor of ASCET 6 line with complete new UI and workflows. It is built on top of Eclipse IDE. If you want to use that then send a mail to Community.ASCET@etas.com to get a link. |
Beta Was this translation helpful? Give feedback.
ASCET-DEV is successor of ASCET 6 line with complete new UI and workflows. It is built on top of Eclipse IDE. If you want to use that then send a mail to Community.ASCET@etas.com to get a link.
It has a small learning curve as many concepts have changed.
If you want to keep working on ASCET 6.4.7, then just export the generated in ASCET 6 from File > Export > Generated Code > Recursive .
Then copy paste the code to the src-gen folder of your ST project. The additinal includes you need will be inside the .\target\ansi-c folder of your ascet 6 installation.