bigtreetech / BIGTREETECH-SKR-PRO-V1.1

Aiming at some problems existing in 3D printed motherboards in the market. Bigtree Technology Co., Ltd. launched a high performance 3D printer master board with STM32F407ZGT6 as the core controller, BIGTREETECH-SKR-PRO-V1.1.
274 stars 221 forks source link

Compile Error for environment BIGTREE_SKR_PRO #17

Open ruttenfam opened 5 years ago

ruttenfam commented 5 years ago

This is probably related to my previous issue. Documentation doesn't seem to be quite up to date with the files here.

I used SKR PRO firmware files, and it uses; env_default = BIGTREE_SKR_PRO

However, on compiling the file I get an error: Environment BIGTREE_SKR_PRO [FAILED] ==================== 1 failed, 0 succeeded in 1.22 seconds ==================== See screenshot compile error

Thanks

golfromeo-fr commented 5 years ago

same here PinNames.h error: 'PortA' (and others) undeclared here

Compiling .pioenvs\BIGTREE_SKR_PRO\FrameworkArduino\stm32\core_callback.c.o In file included from C:\users\romagnyg.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/pinmap.h:22:0, from C:\users\romagnyg.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/PeripheralPins.h:34, Compiling .pioenvs\BIGTREE_SKR_PRO\FrameworkArduino\stm32\dwt.c.o from C:\users\romagnyg.platformio\packages\framework-arduinoststm32\variants\BIGTREE_GENERIC_STM32F407_5X/variant.h:37, from C:\users\romagnyg.platformio\packages\framework-arduinoststm32\system\STM32F4xx/stm32f4xx_hal_conf.h:4, from C:\users\romagnyg.platformio\packages\framework-arduinoststm32\system\Drivers\STM32F4xx_HAL_Driver\Inc/stm32f4xx_hal.h:30, from C:\users\romagnyg.platformio\packages\framework-arduinoststm32\system\Drivers\CMSIS\Device\ST\STM32F4xx\Include/stm32f4xx.h:250, from C:\users\romagnyg.platformio\packages\framework-arduinoststm32\cores\arduino\stm32\stm32_def.h:35, from C:\users\romagnyg.platformio\packages\framework-arduinoststm32\cores\arduino\stm32\PortNames.h:33, from C:\users\romagnyg.platformio\packages\framework-arduinoststm32\cores\arduino\stm32\PortNames.c:30: C:\users\romagnyg.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/PinNames.h:16:12: error: 'PortA' undeclared here (not in a function)

ruttenfam commented 5 years ago

UPDATE: Reinstalled GIT (soooo slow. not sure whats wrong with that software!) Finally managed to make ATOM the default reader and the code now ran a bit further. Still Not completing. Now the errors start with the Port packages.

Any support from Bigtreetech?

compile error 2

ruttenfam commented 5 years ago

BIGTREETECH: pls update your manual for the SKR PRO inline with where your Marlin merge is up to. Also, should we use ATOM or Microsoft as the reader? Does it matter?

Thanks

Evg33 commented 5 years ago

platformio.ini

[env:BIGTREE_SKR_PRO]
#platform = ststm32
platform = ststm32@5.4.3

Broken at https://github.com/platformio/platform-ststm32/commit/3c27299f954a5e9b084db9e7e91c79cf9a1818aa

issue: https://github.com/platformio/platform-ststm32/issues/267

NickMilton commented 5 years ago

This is probably related to my previous issue. Documentation doesn't seem to be quite up to date with the files here.

I used SKR PRO firmware files, and it uses; env_default = BIGTREE_SKR_PRO

However, on compiling the file I get an error: Environment BIGTREE_SKR_PRO [FAILED] ==================== 1 failed, 0 succeeded in 1.22 seconds ==================== See screenshot compile error

Thanks

I am having identical issue - very frustrating. Need help or the board goes in the bin!

ruttenfam commented 5 years ago

Bigtreetech please respond with a full answer to allow customers to compile the firmware successfully. Without proper customer support, the industry will turn their backs to your products and company pretty quickly. Already pretty pissed off customers in this thread!

golfromeo-fr commented 5 years ago

I guess we can stop using this repository for now. I guess the repository is trash now

I have managed to install vscode + plateformio and MarlinFirmware/Marlin from bugfix-2.0.x using env_default = BIGTREE_SKR_PRO

I can compile with

define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

but my MKS version of the screen doesn't light up => I am trying to buy the LCD 12864 LCD Control from BigTreeTech in case it works better (my hope)

So now I can send Gcode commands to the USB connection with pronterface so I can see the nema motors moving => so there are positive things happening but I need a working screen especially the LCD 12864

note : vscode and platformio can become very messy as all the configuration and stored packages are much hidden to the user. I have deleted .plateformio local folder and others things to make the official Marlin compile properly

NickMilton commented 5 years ago

Bigtreetech please respond with a full answer to allow customers to compile the firmware successfully. Without proper customer support, the industry will turn their backs to your products and company pretty quickly. Already pretty pissed off customers in this thread!

To be fair - I am a first time user of VCS/Platformio so I might be making a basic mistake? However as I followed the Bigtreetech guides and used their version of Marlin 2.0 I would have expected it at least to compile... I don't know enough about this error to be able to proceed -

NickMilton commented 5 years ago

I guess we can stop using this repository for now. I guess the repository is trash now

I have managed to install vscode + plateformio and MarlinFirmware/Marlin from bugfix-2.0.x using env_default = BIGTREE_SKR_PRO

I can compile with

define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

but my MKS version of the screen doesn't light up => I am trying to buy the LCD 12864 LCD Control from BigTreeTech in case it works better (my hope)

So now I can send Gcode commands to the USB connection with pronterface so I can see the nema motors moving => so there are positive things happening but I need a working screen especially the LCD 12864

note : vscode and platformio can become very messy as all the configuration and stored packages are much hidden to the user. I have deleted .plateformio local folder and others things to make the official Marlin compile properly

Ahh - I have a Bigtreetech LCD 12864 so I can test....once I can get the f/w to compile LOL

NickMilton commented 5 years ago

I guess we can stop using this repository for now. I guess the repository is trash now

I have managed to install vscode + plateformio and MarlinFirmware/Marlin from bugfix-2.0.x using env_default = BIGTREE_SKR_PRO

I can compile with

define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

but my MKS version of the screen doesn't light up => I am trying to buy the LCD 12864 LCD Control from BigTreeTech in case it works better (my hope)

So now I can send Gcode commands to the USB connection with pronterface so I can see the nema motors moving => so there are positive things happening but I need a working screen especially the LCD 12864

note : vscode and platformio can become very messy as all the configuration and stored packages are much hidden to the user. I have deleted .plateformio local folder and others things to make the official Marlin compile properly

Great news - I replicated what you did. I am getting Environment BIGTREE_SKR_PRO [FAILED]. Can you tell me how you deleted the local folder and other things? I'll see if I can replciate on my end..

cheers

bigtreetech commented 5 years ago

Please according to here https://github.com/MarlinFirmware/Marlin/issues/14672 and here https://github.com/MarlinFirmware/Marlin/pull/14674 this if because of the STM32 platform dependency libraries have be updated,But it's not sure whether the latest version is incompatible or have bugs. so will Limited Version to 5.4.3, This will solve this issue.

bigtreetech commented 5 years ago

https://github.com/bigtreetech/BIGTREETECH-SKR-PRO-V1.1/commit/21356040541a08aedf731c7e7be9c43f9250b678 have be updated

NickMilton commented 5 years ago

2135604 have be updated

Thank you! This works now Kind regards

golfromeo-fr commented 5 years ago

2135604 have be updated

Thank you! This works now Kind regards

does your bigtreetech LCD 12864 work please?

NickMilton commented 5 years ago

Problem solved... see

https://github.com/MarlinFirmware/Marlin/issues

[BUG] BIGTREETECH SKR PRO V1.1 - only boots when serial host connected #14767

Thanks for all the help Ta

Yes it works fine and the SD card slot works too. What I found are 2 things:

1 The LCD lights up on power up but does not display boot screen until I plug the USB cable into computer

2 The LCD will not move off the boot screen until I connect the host (In this case Repetier Host) running on the computer.

The board is configured for external power. Looking through forums to see if this problem is known

Ta

DavidThijs commented 5 years ago

@NickMilton This is indeed my observation too. I'm wondering why it only starts working when the USB connector is plugged in. Tought about a ground loop, but +5v and GND are there on EXP1, but when using only EXP1 and EXP2, the display is dim. Only when adding the TFT connector, then it is bright. The 12864 emulation only seems to work when USB plugged in. Strange indeed.

chasinreno commented 5 years ago

I downloaded the current BIGTREE_PRO firmware with the changes above but still get the BITGREE_SKR_PRO environment error. ARGGG! bigtreetech SKR v1.3 usb-driver won't install on my win8.1 so that board is wasted and now SKR PRO won't compile.

dant220 commented 5 years ago

Use the marlin latest release instead.

On Wed, Jul 31, 2019 at 5:55 PM chasinreno notifications@github.com wrote:

I downloaded the current BIGTREE_PRO firmware with the changes above but still get the BITGREE_SKR_PRO environment error. ARGGG! bigtreetech SKR v1.3 usb-driver won't install on my win8.1 so that board is wasted and now SKR PRO won't compile.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-SKR-PRO-V1.1/issues/17?email_source=notifications&email_token=AMPCUGQ7QO25HNJI5PQFLSDQCIC6HA5CNFSM4IFNVVMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3IVY3Y#issuecomment-517037167, or mute the thread https://github.com/notifications/unsubscribe-auth/AMPCUGVCNCWCHXAEWFIKMZTQCIC6HANCNFSM4IFNVVMA .

ruttenfam commented 5 years ago

@Bigtreetech can you please ensure that the files available here are a combination of marlin 2.0 and the board specific changes are all reflected in the firmware. If the base file should still be the latest marlin 2.0 code from marlin and not the one you have posted here, then the files should be deleted from GitHub and only the required changes to the stock code should be shown.

Also please answer the USB/LCD question/above. The reason user post here on the @bigtreetech GitHub page and not a general Forum, is because we expect answers from the manufacturer to support their product all these users paid for. If other users can help that is great, but the answers should first come from @bigtreetech in the first place. Thank you.

chasinreno commented 5 years ago

My issue was solved by deleting git in control panel. I wonder if it was a conflict between git desktop and git client. I can't explain it but bugfix 2.0 now compiles without error. Thanks to everyone who helped including Bit Tree Tech support. ;)

RudiBlubb commented 5 years ago

Dear All, i just compile it minutes before with the the same Platformio and the results are 1 Warning (i am not sure if relevant) and 4 compile PROBLEMS (but all 4 the same thing)

I seems some one has use an outdated notation "boolean". I corrected it to "bool" for times. See attached pdf !

Bigtreetech guys, please check and change for all others the relevant file !

Happy programming !

wesk-ms commented 5 years ago

Hard to help without knowing the errors or your config. :)

Please zip and attach your platformio.ini, configuration.h, configuration_adv.h, and the complete output from your compile attempt.

wesk-ms commented 5 years ago

@rlvanhuis I've tried two different browsers and I'm not seeing any attached files in your last response. Are you sure they are getting attached to your message? If you're attaching them in an email response, it doesn't appear to be working. You might try attaching the files through the Github website.

What stepper drivers do you have plugged into the SKR pro board? Platformio is trying to process anything and everything related to a long list of dependencies bigtreetech has specified in the platformio.ini file. I doubt you actually need all that excess baggage. The problem causing the compile failure is that platformio is trying to process the TMC26XStepper library and the folder structure on your disk is so nested that it's hitting a path limitation.

'c:\Users\rlvan\Desktop\New folder (2)\BIGTREETECH-SKR-PRO-V1.1\firmware\Marlin-SKR-Pro\.piolibdeps\BIGTREE_SKR_PRO\_tmp_installing-cr6pke-package\TMC26XStepper-c1921b4856a5ef4b659b661b8cb5dd56f3075e57\examples\TMC26XMotorTester\processing\TMC26XMotorTest':

The fix is probably real easy, we just need to know what stepper drivers you're using.

@bigtreetech , your most recent commit that changed the TMCStepper library to your branch is causing this folder to be created on the local disk: TMC26XStepper-c1921b4856a5ef4b659b661b8cb5dd56f3075e57 OR, maybe it's platformio that appending the unnecessary and long hex string to the TMC26XStepper folder. Either way, the hex string needs to go.

Oh, and there's absolutely no reason that platformio needs to be processing example code that in that library that has zero to do with Marlin or your board.

jeffkarney commented 5 years ago

Whats sad is this is the worst thread I have ever seen. Absolutely no information from anyone as to what their problem is. "Failed" is not a description of a problem. A screenshot of your config helps none without the real error.

Unfortunately I think this is the closest thing I can find to a possible problem I can not find anything on.

Trying to compile Marlin on OSX for this board...

AVAILABLE: dfu, jlink, stlink
CURRENT: upload_protocol = stlink
Uploading .pioenvs/BIGTREE_SKR_PRO/firmware.elf
GNU MCU Eclipse OpenOCD, 64-bitOpen On-Chip Debugger 0.10.0+dev-00593-g23ad80df4 (2019-04-23-00:01)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
debug_level: 1
embedded:startup.tcl:56: Error: Can't find scripts/interface/stlink.cfg
in procedure 'script'
at file "embedded:startup.tcl", line 56
*** [upload] Error 1

Have no idea what the issue is.

darknode commented 5 years ago

@jeffkarney You have compiled/builded firmware, then you tried to upload ("CURRENT: upload_protocol = stlink").

"Uploading .pioenvs/BIGTREE_SKR_PRO/firmware.elf" - according to this, you could copy firmware file .pioenvs/BIGTREE_SKR_PRO/firmware.bin on sdcard and update your board.

wesk-ms commented 5 years ago

@rlvanhuis, Yes, the 206 error is caused by a nested folder structure. Bigtreetech warns about this here: https://github.com/bigtreetech/BIGTREETECH-SKR-PRO-V1.1/tree/master/firmware

Note: if you want to design your own version naming rules, folder names must not exceed 64 characters in length, marlin 2.0 project files in other folders, folder nesting depth can not exceed 3, otherwise, when opening the project compilation project, there will be unexpected compilation errors! It is recommended that the file name should not be named too long, the shorter the better. File nesting depth should not be too much, the less nesting, the better.

Unfortunately, you still haven't attached any configuration files or compiler output, so there's really no way for anyone to help you. If you are now getting a completely different compile error we have no way of knowing what it is unless you tell us.

If you're going to be using TMC5160 drivers, then you need to edit the configuration.h and specify TMC5160 as the drivers you're using.

Also, I'd recommend removing this line from the platformio.ini since you aren't using TMC 26xx drivers.

https://github.com/trinamic/TMC26XStepper/archive/c1921b4.zip

jeffkarney commented 5 years ago

@jeffkarney You have compiled/builded firmware, then you tried to upload ("CURRENT: upload_protocol = stlink").

"Uploading .pioenvs/BIGTREE_SKR_PRO/firmware.elf" - according to this, you could copy firmware file .pioenvs/BIGTREE_SKR_PRO/firmware.bin on sdcard and update your board.

Thank you for pointing this out! Even though I knew this, I was unable to find this file originally. But you inspired me to re-read the instructions, it does clearly state to just "Build" not "Build/Program". Which will leave the file there.

Romano26 commented 5 years ago

hi Someone would have done a tutorial? Thx

defalkner commented 5 years ago

@NickMilton This is indeed my observation too. I'm wondering why it only starts working when the USB connector is plugged in. Tought about a ground loop, but +5v and GND are there on EXP1, but when using only EXP1 and EXP2, the display is dim. Only when adding the TFT connector, then it is bright. The 12864 emulation only seems to work when USB plugged in. Strange indeed.

Did you move the jumper in the middle of the board so it uses the PSU's power and not the USB? The board gives you the option for either - this jumper dictates where the power comes from for the CPU & minor devices.