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

Documentation #26

Open
thawkins opened this issue Mar 14, 2021 · 5 comments
Open

Documentation #26

thawkins opened this issue Mar 14, 2021 · 5 comments

Comments

@thawkins
Copy link

It should be documented that if you are building for a Chitu V6 board that the following line in platformio.ini (near top of the file)

"default_envs = chitu_v5_gpio_init # LPC1769"

should be changed to

"default_envs = chitu_f103"

so that the binaries are built for the STM32F1 when using the default "clean all" and "build all" actions in VSCode

@orangeworx
Copy link

orangeworx commented Mar 22, 2021

You need not change anything in platform.io.
I've successfully compiled and flashed a v6 by following the example files & readme
The change is done in Configuration.h around line 135

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

VS code gets the dependencies at build time

@Eliminateur
Copy link

There's no need for that, you can use chitu_v5_gpio_init for the v6 board as well(tested it).
If you check line 1154:

platform      = ${common_stm32f1.platform}
extends       = env:chitu_f103
build_flags   = ${env:chitu_f103.build_flags} -DCHITU_V5_Z_MIN_BUGFIX

It uses the f103 settings and adding the z min bugfix

@orangeworx
Copy link

There's no need for that, you can use chitu_v5_gpio_init for the v6 board as well(tested it).
If you check line 1154:

platform      = ${common_stm32f1.platform}
extends       = env:chitu_f103
build_flags   = ${env:chitu_f103.build_flags} -DCHITU_V5_Z_MIN_BUGFIX

It uses the f103 settings and adding the z min bugfix

there has been no need to modify the platform.io file in the most recent building process... everything can (and should, from my understanding) be done in configuration.h and configuration_adv.h

@Eliminateur
Copy link

i haven't tested that, ¿so it doesn't matter what you set your default_envs?(or you have to comment the line?), because in my case, changing it(or not) in in the ini can break Z-limit, if i don't specifically set the correct environment. Example:
board declared as chitu_v6 in configuration.h, board set as "default_envs = chitu_f103" in platformio -> Z endstop fails.
now board defined the same but environment changed to chitu_v5_gpio_init -->works correctly.

So there is in fact a need to modify the .INI

@orangeworx
Copy link

TBH, I cannot confirm this as I've not had to edit the platformio.ini and have not had issues with VSCode getting the dependencies for the v6 board I'm running. I do know that it's now recommended to use VSCode Vs Arduino IDE, with the Auto Build Marlin addon, though for the Chitu boards, you'll need to grab the cbd fw file and SD flash to board instead of flashing directly from within Auto Build Marlin.

HTH

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

3 participants