Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About the support of different chips of ST company? #189

Open
CHTUZKI opened this issue Dec 15, 2018 · 1 comment
Open

About the support of different chips of ST company? #189

CHTUZKI opened this issue Dec 15, 2018 · 1 comment

Comments

@CHTUZKI
Copy link

CHTUZKI commented Dec 15, 2018

Hey, I found platformIO a few days ago, I think it is great. Because I just started using it, so there are some questions. The first question, when I use Platformio's Go to function definition function, how do I transfer it back, the second question, when I created a project with an ST chip, for example (STM32F103C86), now I changed a chip For example (STM32F103ZET6), how can I make the same code run on different chips?

@ivankravets ivankravets transferred this issue from platformio/platformio-vscode-ide Jan 30, 2019
@pfeerick
Copy link

pfeerick commented Mar 12, 2019

Hopefully you've found out by now that the VSCode? (assuming that's the IDE you're using) Go to Definition / Go to declaration commands open the relevant code up in a new tab, so you can just close the tab or switch back to the one you were previously on by clicking on it...

To change which microcontroller you're using, you could either change the board parameter for your current build environment, or add a second environment if you want to be able to build code for both microcontrollers. But first, check the boards registry page to see what boards are support, what frameworks, etc. Then when you find it, you can open the specific documentation page for that board / microcontroller, and see what configuration options it needs / supports. Such as the correct boards parameter for the STM32F103ZE.

So, for the F103C8 you might have specified board = genericSTM32F103C8 in your platformio.ini file. Assuming you want the same framework for both (Arduino, libOpenCM3, STM32Cube), you only need to change the board parameter to board = genericSTM32F103ZE, as well as make any changes needed in your code if there was anything specific to the F103C8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants