[Solved][Sloeber/Libmaple] Failed to get the Upload recipe - Error

Development environment specific, Arduino, Eclipse, VS2013,Em::Blocks etc
User avatar
Pito
Posts: 1592
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

[Solved][Sloeber/Libmaple] Failed to get the Upload recipe - Error

Post by Pito » Fri Sep 01, 2017 11:32 am

It was discussed in May this year, with none specific outcome. As it hit me too :) this is what I see as the issue:
.
1. When you create a new Project with "a board", then while uploading via standard maple uploader you get a Sloeber error message
Sloeber Upload Problem.JPG
Sloeber Upload Problem.JPG (23.96 KiB) Viewed 278 times
2. I have here many identical project which uploads fine
3. I compared the Eclipse's project files, and except some minor diffs in certain files (when edited no fix to above issue), the most important diff is with:

Code: Select all

./.settings/org.eclipse.cdt.core.prefs
4. The content of the "good" and "bad" differs significantly when the project is not created with the "right" board, mostly missing many environmental vars related to the upload method..

So the fix here is to
1. copy/paste a project where the upload works, or,
2. when creating a new project do start with a "good board",
3. EDIT: fix the boards.txt

So far:

Code: Select all

1. Libmaple F1, MapleMini             OK
2. Libmaple F1, Maple RET6            OK
3. Libmaple F1, GenericF103C (BP)     ERROR
4. Libmpale F1, GenericF103R, F103RE  ERROR
5. Libmpale F1, GenericF103Z, F103ZE  ERROR

6. STM32Generic F1, MapleMini         OK
7. STM32Generic F1, BluePill          OK
8. STM32Generic F1, BLUE F103ZE       OK
PS: to me it seems a problem in boards.txt defs for certain boards, and not the Sloeber issue..
Last edited by Pito on Tue Sep 05, 2017 8:38 am, edited 1 time in total.
Pukao Hats Cleaning Services Ltd.

stevestrong
Posts: 1735
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: [Sloeber/Libmaple] Failed to get the Upload recipe - Error

Post by stevestrong » Fri Sep 01, 2017 12:50 pm

Sorry Pito, but as long those boards work fine with Arduino IDE alone, I think it is fair to say that the problem is NOT with the boards.txt, but maybe in the combination of Sloeber and boards.txt.

As far as I can see, Sloeber generates many problems, I would not rely on it.

Try Platformio, and all your problems will be gone.

User avatar
Pito
Posts: 1592
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: [Sloeber/Libmaple] Failed to get the Upload recipe - Error

Post by Pito » Fri Sep 01, 2017 1:09 pm

stevestrong wrote:
Fri Sep 01, 2017 12:50 pm
As far as I can see, Sloeber generates many problems, I would not rely on it.
Steve, nobody is forcing you to use it :)
Pukao Hats Cleaning Services Ltd.

victor_pv
Posts: 1679
Joined: Mon Apr 27, 2015 12:12 pm

Re: [Sloeber/Libmaple] Failed to get the Upload recipe - Error

Post by victor_pv » Fri Sep 01, 2017 1:24 pm

Pito I have been hit by that same problem, with the same boards.

I believe it started for me when the new optimization options where added. The generic boards have more dropdown boxes than the maple ones, I suspect Sloeber may not be managing that too well.
But I haven't had the time to look at boards.txt to see if something looks different, other than extra options.
Most of the time I load the elf to Ozone for debugging purposes, so I just upload using Ozone, but is annoying that the automatic upload doesn't work.
If I get to find anything I'll post in this thread.

victor_pv
Posts: 1679
Joined: Mon Apr 27, 2015 12:12 pm

Re: [Sloeber/Libmaple] Failed to get the Upload recipe - Error

Post by victor_pv » Fri Sep 01, 2017 1:28 pm

Steve, I have to disagree all the problems will be gone with Platformio. I am using it for the new Marlin HAL and has it's fair share of issues.
Not just for me, but for everyone working on that, every few days there is a post about someone that had to remove it and start clean again because somethign broke, with an update, when adding something, out of the blue...

User avatar
Pito
Posts: 1592
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: [Sloeber/Libmaple] Failed to get the Upload recipe - Error

Post by Pito » Fri Sep 01, 2017 1:38 pm

The FIX:
Add this into the boards.txt for each variant with ERROR (those are all the "genericSTM32F103x" - so add with proper x variant suffix) before the "menu" items start:

Code: Select all

..
genericSTM32F103C.upload.tool=maple_upload
genericSTM32F103C.upload.protocol=maple_dfu
..
Restart Sloeber, create a Project with the fixed board and try to upload..

@Victor: could you test there plz?
Pukao Hats Cleaning Services Ltd.

victor_pv
Posts: 1679
Joined: Mon Apr 27, 2015 12:12 pm

Re: [Sloeber/Libmaple] Failed to get the Upload recipe - Error

Post by victor_pv » Fri Sep 01, 2017 5:57 pm

Pito wrote:
Fri Sep 01, 2017 1:38 pm
@Victor: could you test there plz?
Thanks for the solution, I'll test it later today and let you know.

victor_pv
Posts: 1679
Joined: Mon Apr 27, 2015 12:12 pm

Re: [Sloeber/Libmaple] Failed to get the Upload recipe - Error

Post by victor_pv » Sun Sep 03, 2017 10:12 pm

Pito, just tested the changes you suggested and issues resolved :)

User avatar
RogerClark
Posts: 7137
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: [Sloeber/Libmaple] Failed to get the Upload recipe - Error

Post by RogerClark » Sun Sep 03, 2017 11:09 pm

Does someone want to submit a PR for this ?

victor_pv
Posts: 1679
Joined: Mon Apr 27, 2015 12:12 pm

Re: [Sloeber/Libmaple] Failed to get the Upload recipe - Error

Post by victor_pv » Mon Sep 04, 2017 3:43 pm

Just submitted PR https://github.com/rogerclarkmelbourne/ ... 2/pull/338

@Pito, my arduino IDE is a mess, if yours is working can you confirm adding those settings does not impact negatively in the arduino IDE when trying to upload with other methods such as stlink to one of those boards?

Post Reply