Welcome! Log In Create A New Profile

Advanced

Madness! PlatformIO is building mega2560 for my ARM processor!

Posted by snovotill 
Madness! PlatformIO is building mega2560 for my ARM processor!
October 19, 2020 03:41PM
Wow, VSCode doing this:

> Executing task: C:\Users\user\.platformio\penv\Scripts\platformio.exe run <
Processing mega2560 (platform: atmelavr; board: megaatmega2560; framework: arduino)

When I have this STM based motherboard in my Configuration.h:

// Choose the name from boards.h that matches your setup
#ifndef MOTHERBOARD
#define MOTHERBOARD BOARD_CHITU3D_V6
#endif

I'm at my wit's end with this. Any ideas how to get it to behave?

Edited 2 time(s). Last edit at 10/19/2020 03:43PM by snovotill.
Re: Madness! PlatformIO is building mega2560 for my ARM processor!
October 19, 2020 06:31PM
Did you select the correct board in your platformio config file?


http://www.marinusdebeer.nl/
Re: Madness! PlatformIO is building mega2560 for my ARM processor!
October 19, 2020 06:35PM
You need to set default_envs in your platformio.ini file to the correct build environment.

In this case it should be default_envs = chitu_f103
Re: Madness! PlatformIO is building mega2560 for my ARM processor!
October 19, 2020 10:48PM
That was it, thank you! I needed to set default_envs = chitu_f103
I thought I read all the instructions but it seems I missed an important document somwhere along the way, ...will find that now!
Re: Madness! PlatformIO is building mega2560 for my ARM processor!
October 20, 2020 04:35AM
Quote
Dust
You need to set default_envs in your platformio.ini file to the correct build environment.

In this case it should be default_envs = chitu_f103

This is what I meant spinning smiley sticking its tongue out Anyway, good to hear it's working.


http://www.marinusdebeer.nl/
Sorry, only registered users may post in this forum.

Click here to login