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

SKR V2.0 and STM32f429 #82

Open
Greyukr opened this issue Oct 31, 2021 · 40 comments
Open

SKR V2.0 and STM32f429 #82

Greyukr opened this issue Oct 31, 2021 · 40 comments

Comments

@Greyukr
Copy link

Greyukr commented Oct 31, 2021

Ask for help!
My English is so...
A few days ago I received a SKR V2.0 with STM32f429. This is a new chip. Marlin doesn’t have that chip yet.
I’m compiling a firmware based on F407. Right?
I want to use BLTouch without using the Z-axis concept contacts.
What should I write here:
#define Z_MIN_PROBE_PIN - ?????????????????

Best regards,
Sergio!

@karabas2011
Copy link

karabas2011 commented Nov 8, 2021

Please post a link to this board or pic
I see only STM32F407 on SKR 2

@karabas2011
Copy link

Technical specifications
In the following list you can find the technical specifications of the SKR 2 electronics:

Size 110mmx85mm, in the previous section you have a diagram of the board
ARM Cortex-M4 STM32F407VGT6 MCU at 168Mhz

@Greyukr
Copy link
Author

Greyukr commented Nov 8, 2021 via email

@karabas2011
Copy link

karabas2011 commented Nov 12, 2021

Thank you, now I see.
marlin 2.0.9.2 has 429 for octopus

@Greyukr
Copy link
Author

Greyukr commented Nov 12, 2021 via email

@radek8
Copy link

radek8 commented Nov 16, 2021

Ask for help! My English is so... A few days ago I received a SKR V2.0 with STM32f429. This is a new chip. Marlin doesn’t have that chip yet. I’m compiling a firmware based on F407. Right? I want to use BLTouch without using the Z-axis concept contacts. What should I write here: #define Z_MIN_PROBE_PIN - ?????????????????

Best regards, Sergio!

image

@marcossfernandez
Copy link

Same here with SKR2 Rev.B with a STM32F429 board.
I don't know what modifications need to do to the platform.io to previous STM32F407 chip.

We are suffering a lot of USB disconnects from Raspberry's Repetier Server. May it could be for using STM32F407 old chip for firmware building?

@Klemens75
Copy link

I have the same problem with F407 to F429. By Marlin´s board.h - list is SKR-2 Rev.2 with STM32F407 chip. But i needet with STM32F429VGT6.
Can anyone help me there. For that I have too little knowledge
boards h
.

@Klemens75
Copy link

023750224

@Klemens75
Copy link

There are still no platformio environment for this processor. And it is not in list of supported ones.
Who could help with that?

@marcossfernandez
Copy link

marcossfernandez commented Nov 18, 2021

I could compile it and make it work with the SKR 2 (407) current processor in platform.io. Aparently all functions are ok, but i don't know if lack some other things or if performace is the right one.

It moves, heat and does the basic things, but it isn't ideal, of course. The new SOC has some instructions and memory who it can't be accessed. I've asked Biqu for help but no sucess at the moment. They only stated:

“Please note that the STM32F407VGT6 chip has been upgraded to the STM32F429VGT6 chip. If you order the motherboard, the F429 chip will be sent by default.
If you're using a 429 motherboard, before DIY firmware modification, customers need to build an F429 environment on the compilation platform for compilation and use, instead of directly using the previous F407 firmware.”

@Klemens75
Copy link

For me, the difference is too great. The F429 could do much more.
grafik
grafik
In detail it is much more.

@marcossfernandez
Copy link

marcossfernandez commented Nov 19, 2021

Biqu guys had sent this link to me after contact them yesterday. Awesome response. It comes with a Marlin last version with F429 enviroment:

https://github.com/bigtreetech/marlin/tree/B1-2.0.9.2.x

You ought to modify and suit your needs.

EDIT: Tested but still F429 enviroment isn't fixed, only F407 it is available at this moment. We check into stm32f4.ini and it is effectively defined for this chipset, but I think it’s missing the board definition for this new SOC in the SKR2 variant or something else.
image

@Greyukr
Copy link
Author

Greyukr commented Nov 20, 2021

Biqu guys should have made a Rev. C

@marcossfernandez
Copy link

https://github.com/bigtreetech/SKR-2/tree/master/Firmware

[platformio]
src_dir = Marlin
boards_dir = buildroot/share/PlatformIO/boards
default_envs = BIGTREE_SKR_2_F429
include_dir = Marlin

This version its the latest bugfix, and corrected F429 enviroment. This one works as expected with the new SOC version.

@JuanPuchol
Copy link

JuanPuchol commented Nov 22, 2021

Good news,

the code has been updated and now environment BIGTREE_SKR_2_F429 can be used!!!
No more random reboots? Testing

@jamesjnadeau
Copy link

Is there a pull request against marlin I can follow for this?

@alienboyxp
Copy link

Is there a pull request against marlin I can follow for this?

MarlinFirmware/Marlin#23177 @jamesjnadeau I think this is the referred to the issue

@Greyukr
Copy link
Author

Greyukr commented Nov 26, 2021

I installed the latest Marlin software for this board. The board reboots every three minutes. I disabled the drivers, WIFi, TFT, but it didn’t work. I need your help! What could be the reason?

@sbaeder
Copy link

sbaeder commented Dec 8, 2021

On the BLTOUCH - I had issue using the "default" plug after it was working before using Z_MIN...In the firmware on the BTT github...It is mapped in the pins.h file for the board. BUT, I switched back to the z-min plug, and defined it in the configuration.h file
#define Z_MIN_PROBE_PIN Z_MIN_PIN // Pin 32 is the RAMPS default
But if ou look at the pins files, they are basically the same - most in a common file...

@sbaeder
Copy link

sbaeder commented Dec 8, 2021

Biqu guys should have made a Rev. C

Technically, the BOARD is the same. Chip pin out is the same, so no real need to revise the environment...

Use the Marlin AUTOBUILD stuff. Makes it simple to invoke the build, and the board and type is listed fine in the code from the Bigtree github

@oleksey oleksey mentioned this issue Dec 14, 2021
@sbaeder
Copy link

sbaeder commented Dec 16, 2021

I installed the latest Marlin software for this board. The board reboots every three minutes. I disabled the drivers, WIFi, TFT, but it didn’t work. I need your help! What could be the reason?

As mentioned above, we had another issue on the reboots. Looks like removing the SDcard will prevent it from happening. Possible that there is an issue in the firmware (Marlin) after flashing/booting that is causing it. Until there is more "proof" (or a better fix), just pull the card after flashing...

@Greyukr
Copy link
Author

Greyukr commented Dec 16, 2021

The reason for the reboot were:
Configuration_adv.h
#define USB_FLASH_DRIVE_SUPPORT
#define USE_OTG_USB_HOST
#define NO_SD_DETECT
#define MULTI_VOLUME
I closed those lines and the reboots stopped

@bfmvtony
Copy link

I installed the latest Marlin software for this board. The board reboots every three minutes. I disabled the drivers, WIFi, TFT, but it didn’t work. I need your help! What could be the reason?

So this finally works? what things they changed? Do you need to comment the lines you wrote in your last post?

Thanks in advance!

@sbaeder
Copy link

sbaeder commented Dec 19, 2021

I have continued to work this issue, and I THINK it might be a conflict between the onboard USB trying to be used vs. the onboard SD card. I think that if BOTH are enabled, it is a conflict on the software that may cause this.
Still need to look at this more.......clearly using the OTG function will mess with the USB connection to the host (even if you use the LCD for the "SD Card"

@Cabinfourus
Copy link

Cabinfourus commented Dec 24, 2021

I have one of the SKR V2.0 with STM32f407 boards. I have been setting up Marlin and have yet to power the board on. Before I do anything else I'd like to know if there is anything I need to change in Platform I/O.
This is what I have it set to:

default_envs = BIGTREE_SKR_2

default_envs = BIGTREE_SKR_2_F407

Are there any other changes I need for this board to work correctly?
Does the SKR_2_F429 environment work with the 407?
My printer setup is:
All BTT
SKR 2 (STM32F407) FET HY1904
UPS power fail unit
Relay V1.2
TMC2209 using sensorless homing
Filament sensor (not BTT)
3D Touch used for homing to the middle of bed and auto-leveling
Marlin version is from the attached files in SKR 2 from GitHub
** When I compile Marlin using # default_envs = BIGTREE_SKR_2_F407 in the ENV, it does succeed.

@bfmvtony
Copy link

bfmvtony commented Dec 24, 2021

I have one of the SKR V2.0 with STM32f407 boards. I have been setting up Marlin and have yet to power the board on. Before I do anything else I'd like to know if there is anything I need to change in Platform I/O.

This is what I have it set to:

default_envs = BIGTREE_SKR_2

default_envs = BIGTREE_SKR_2_F407

Are there any other changes I need for this board to work correctly?

Does the SKR_2_F429 environment work with the 407?

My printer setup is:

All BTT

SKR 2 (STM32F407) FET HY1904

UPS power fail unit

Relay V1.2

TMC2209 using sensorless homing

Filament sensor (not BTT)

3D Touch used for homing to the middle of bed and auto-leveling

Marlin version is from the attached files in SKR 2 from GitHub

** When I compile Marlin using # default_envs = BIGTREE_SKR_2_F407 in the ENV, it does succeed.

--- Check This ---
Check serial port.. with skr cannot be 0. It must be from 1 to 6 or -1

@sbaeder
Copy link

sbaeder commented Dec 25, 2021

Does the SKR_2_F429 environment work with the 407?

no - there are two different "environments" - one for either chip.

@bfmvtony
Copy link

Does the SKR_2_F429 environment work with the 407?

no - there are two different "environments" - one for either chip.

Well, I tested it and works, but not correctly. As someone said before, it suddenly reboots. So better use the right environment.

@buildjournal
Copy link

Okay I got the new board with F429. How do I download this folder: https://github.com/bigtreetech/SKR-2/tree/master/Firmware/Marlin-bugfix-2.0.9.2.x

@Greyukr
Copy link
Author

Greyukr commented Jan 6, 2022

Screenshot_111
Screenshot_112

@buildjournal
Copy link

buildjournal commented Jan 6, 2022 via email

@sbaeder
Copy link

sbaeder commented Jan 7, 2022

How are you building it - are you using the Marlin auto build? If so, be sure to select the F429 based onfiguration. Also, note that there is an "official" Marlin version to support this alternate chip that was released by Marlin on Christmas day (2.0.9.3)

It may have an ender 5 configuration that would also be a good place to start (other than the board name and maybe the LCD configuration..

@buildjournal
Copy link

buildjournal commented Jan 7, 2022 via email

@jamesjnadeau
Copy link

jamesjnadeau commented Jan 7, 2022

@buildjournal

I've been able to build this successfully for the F429 chip using dual z axis motors. Runs great. So it's something in your config that is causing it not to build. I was able to get it to build using the latest marlin bugfix branch and the code available in this repo(both with my custom machine config)

You're settings are either old, or your misconfiguring something this board requires. Read the terminal output of the build, look from some red and yellow lines toward the end. I've found the error message from the build process to be really helpful in determining the problem I'm encountering.

I started with ender 3 config. Please note that some variables have changed names since the original 2.0 release your ender firmware is likely based on. There's also a config variable that has a date stamp in it that will fail the build if it doesn't match what the codebase is expecting.

Read the compile log output, it's there to help

@sbaeder
Copy link

sbaeder commented Jan 7, 2022

or possibly post the log for someone to look at it an help. If you were able to do it for the older chip, AND it's using supported code (as opposed to a modified set of Marlin code), then it should compile.

@buildjournal
Copy link

buildjournal commented Jan 7, 2022 via email

@jamesjnadeau
Copy link

@buildjournal Here's my configs:

https://github.com/jamesjnadeau/Marlin_configs/tree/master/SKR-2

I only changed this line in platformio:

default_envs = BIGTREE_SKR_2_F429

@buildjournal
Copy link

buildjournal commented Jan 11, 2022 via email

@SpectralCreations
Copy link

i too have the SKR2 revb and im having trouble getting this to compile
https://github.com/SpectralCreations/SKR_2_F429
i keep getting "Error: Could not find one of 'package.json' manifest files in the package"
and i have no idea what im doing

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