Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 4 months ago.
Custom Target Boards (Example STM32F051)
Good day, I have looked all over for information regarding this but am struggling to get the exact answers. We are using System Workbench as an IDE. We want to generate a project in mbed and then a project in Cube. From there they replace the clock code generated by Cube in the mbed project. 1) How do they accomplish this? I can't find any substantial documentation on how to do this. 2) Regarding mbed, is there a way to develop for a controller that isn't one of the current target boards on mbed?
1 Answer
8 years, 4 months ago.
Hi Roy,
In regards to your first question please take a look at: https://developer.mbed.org/questions/62174/about-mbedcubecompiler/
In summary, mbed and Cube are different things and not compatible in this sense, you can fully develop your code in mbed, and in our offline tool too of mbed cli: https://github.com/ARMmbed/mbed-cli
In regards to the second question, yes this is totally possible, to develop for a controller that is not currently there happens often, the best process is to naviagte to mbed-os our SDK.
https://github.com/ARMmbed/mbed-os
From here find the closest possible target within Targets, modify the necessary files, some times its as simple as changing the pin names in "PinNames.h".
Have a look here on how to port.
https://docs.mbed.com/docs/mbed-os-handbook/en/latest/advanced/porting_guide/
Regards,
Andrea, team mbed