2020-11-10 12:13 AM
Hi,
my goal is to use custom template files in AlgoBuilder. For instance have an extra function or class in the main.c file. Therefore I would like to create a new firmware template for NUCLEO-L476RG as described in en.UM2689.
I am working with CubeMX, since in CubeIDE it is not possible to change the "application structure" to "Basic".
I am following the description in en.UM2689, setting the application to "IKS01A3_AlgoBuilder_Template", etc. After generating the code, I copy the whole project location to C:\Users\USER_NAME
\STMicroelectronics\AlgoBuilder\FirmwareTemplate\.
Then I restart Algobuilder and try to create a new design for the new target. However, the new target is not available in the dropdown list as shown on Figure 29.:
Is there anything, I am missing? If I go to C:\Program Files (x86)\STMicroelectronics\AlgoBuilder\ProjectTemplate, I see a target.xml file describing different targets.
Solved! Go to Solution.
2020-11-11 2:51 AM
Hi Miroslav,
I have definitely made some progress:
Here I have some problems. I am looking at the file "algo_builder.c" from the template and compare it to the C code which is shown. I would accept, that they are the same, but it is not the case. Should they be the same or do I misunderstand something at concept level.
I am going to send you:
Thank you for your help!
Best regards,
Attila
2020-11-10 1:50 AM
Hi,
did you select the Toolchain/IDE in the Firmware settings first?
If yes, can you please share with me your Project Template so I can test it?
2020-11-10 2:10 AM
2020-11-10 2:11 AM
2020-11-11 12:26 AM
HI,
I have checked your project.
1) For STM32CubeIDE you have to uncheck the Generate Under Root option in Project Manager tab. The project files must be inside STM32CubeIDE directory.
2) I see peripherals (TIM, CRC, I2C) are not configured as it is described in the UM2689.
2020-11-11 2:51 AM
Hi Miroslav,
I have definitely made some progress:
Here I have some problems. I am looking at the file "algo_builder.c" from the template and compare it to the C code which is shown. I would accept, that they are the same, but it is not the case. Should they be the same or do I misunderstand something at concept level.
I am going to send you:
Thank you for your help!
Best regards,
Attila
2020-11-11 2:56 AM
2020-11-12 12:25 AM
Hi Attila
your latest template seems to be fine. I have tested it quickly and it works.
algo_builder.c is generated by the AlgoBuilder application according to your design, so it wont be the same as it is in the template.
2020-11-13 3:53 AM
Hi Miroslav,
thank you for your support. Everything works fine. We are experimenting with our own blocks based on templates right now. It is super cool!
Best regards,
Attila
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.