[Solved] Arduino Core for STM32 v2018.1.18 Problem

Please post bugs and enhancements for the STM core here
fpiSTM
Posts: 314
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: Arduino Core for STM32 v2018.1.18 Problem

Post by fpiSTM » Mon Jan 22, 2018 4:26 pm

There is no link with JSON file.
The input JSON file is only to install the required packages in Arduino local user path.

This line of code is in the platform.txt:

Code: Select all

recipe.hooks.prebuild.1.pattern.windows=cmd /c "if not exist {build.opt.sourcepath} mkdir {build.path}\sketch & type NUL > {build.opt.path}"
with

Code: Select all

build.opt.sourcepath={build.source.path}/{build.opt.name}
in your case
{build.opt.sourcepath} == C:\Program Files (x86)\Arduino\examples\01.Basics\Blink/build_opt.h
So you're right, it does not like space :roll:
I have to fix that as this is the default installation folder used by Arduino.
Windows will make me crazy :mrgreen:

Could you test to edit platform.txt:
and replace this line:

Code: Select all

recipe.hooks.prebuild.1.pattern.windows=cmd /c "if not exist {build.opt.sourcepath} mkdir {build.path}\sketch & type NUL > {build.opt.path}"
by this one

Code: Select all

recipe.hooks.prebuild.1.pattern.windows=cmd /c "if not exist "{build.opt.sourcepath}" mkdir {build.path}\sketch & type NUL > {build.opt.path}"
Sorry for this issue

djw
Posts: 10
Joined: Sat Nov 25, 2017 5:23 pm

Re: Arduino Core for STM32 v2018.1.18 Problem

Post by djw » Mon Jan 22, 2018 5:20 pm

Windoze makes us all nuts,...
The error changes:

Code: Select all

Arduino: 1.8.5 (Windows 7), Board: "Nucleo-64, Nucleo F446RE, Mass Storage, Generic Serial, None, Smallest (-Os default)"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Dan\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Dan\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Dan\Documents\Arduino\libraries -fqbn=STM32:stm32:Nucleo_64:pnum=NUCLEO_F446RE,upload_method=MassStorage,xserial=generic,usb=none,opt=osstd -ide-version=10805 -build-path C:\Users\Dan\AppData\Local\Temp\arduino_build_613137 -warnings=none -build-cache C:\Users\Dan\AppData\Local\Temp\arduino_cache_437889 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.STM32Tools.path=C:\Users\Dan\AppData\Local\Arduino15\packages\STM32\tools\STM32Tools\2017.9.22 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\Dan\AppData\Local\Arduino15\packages\STM32\tools\arm-none-eabi-gcc\6-2017-q2-update -prefs=runtime.tools.CMSIS.path=C:\Users\Dan\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Dan\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Dan\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Dan\Documents\Arduino\libraries -fqbn=STM32:stm32:Nucleo_64:pnum=NUCLEO_F446RE,upload_method=MassStorage,xserial=generic,usb=none,opt=osstd -ide-version=10805 -build-path C:\Users\Dan\AppData\Local\Temp\arduino_build_613137 -warnings=none -build-cache C:\Users\Dan\AppData\Local\Temp\arduino_cache_437889 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.STM32Tools.path=C:\Users\Dan\AppData\Local\Arduino15\packages\STM32\tools\STM32Tools\2017.9.22 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\Dan\AppData\Local\Arduino15\packages\STM32\tools\arm-none-eabi-gcc\6-2017-q2-update -prefs=runtime.tools.CMSIS.path=C:\Users\Dan\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
Using board 'Nucleo_64' from platform in folder: C:\Users\Dan\AppData\Local\Arduino15\packages\STM32\hardware\stm32\2018.1.18
Using core 'arduino' from platform in folder: C:\Users\Dan\AppData\Local\Arduino15\packages\STM32\hardware\stm32\2018.1.18
cmd /c "if not exist "C:\Program Files (x86)\Arduino\examples\01.Basics\Blink/build_opt.h" mkdir C:\Users\Dan\AppData\Local\Temp\arduino_build_613137\sketch & type NUL > C:\Users\Dan\AppData\Local\Temp\arduino_build_613137/sketch/build_opt.h"
The filename, directory name, or volume label syntax is incorrect.

exit status 1
Error compiling for board Nucleo-64.

User avatar
mrburnette
Posts: 2190
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Arduino Core for STM32 v2018.1.18 Problem

Post by mrburnette » Mon Jan 22, 2018 6:22 pm

fpiSTM wrote:
Mon Jan 22, 2018 4:26 pm
...
Windows will make me crazy :mrgreen:
...

I was a MCSE for years and Win 7 to Win 8 then Win 8.1 totally pissed me off. I made the Linux jump when Microsoft trashed my nicely hacked Windows 8.1 with the infamous Win 10 download. The rollback never worked correctly and I figured if I was going to have to reinstall anyway that Linux would be my choice. That was 2 years ago and I have never looked back.

Ray

User avatar
Rick Kimball
Posts: 1077
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: Arduino Core for STM32 v2018.1.18 Problem

Post by Rick Kimball » Mon Jan 22, 2018 7:19 pm

mrburnette wrote:
Mon Jan 22, 2018 6:22 pm
fpiSTM wrote:
Mon Jan 22, 2018 4:26 pm
...
Windows will make me crazy :mrgreen:
...
I was a MCSE for years and Win 7 to Win 8 then Win 8.1 totally pissed me off.
I love it when the cult members see the light : )
-rick

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

Re: Arduino Core for STM32 v2018.1.18 Problem

Post by Pito » Mon Jan 22, 2018 8:09 pm

Market share desktops/notebooks: Win 88.9%, Linux 2.3%.. :)
Pukao Hats Cleaning Services Ltd.

zmemw16
Posts: 1672
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Arduino Core for STM32 v2018.1.18 Problem

Post by zmemw16 » Mon Jan 22, 2018 8:30 pm

you could be a hard sell :!:
:D

fpiSTM
Posts: 314
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: Arduino Core for STM32 v2018.1.18 Problem

Post by fpiSTM » Mon Jan 22, 2018 9:37 pm

I've tested and reproduce the issue...
So, the good line, to deal properly with space in path variable, is/should be/must be/I pray:

Code: Select all

recipe.hooks.prebuild.1.pattern.windows=cmd /c if not exist "{build.opt.sourcepath}" mkdir "{build.path}\sketch" & type NUL > "{build.opt.path}"
That's why I prefer use Linux also... but need to also support win too.... :roll: for the 88.9%

User avatar
mrburnette
Posts: 2190
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Arduino Core for STM32 v2018.1.18 Problem

Post by mrburnette » Mon Jan 22, 2018 10:31 pm

fpiSTM wrote:
Mon Jan 22, 2018 9:37 pm
...
That's why I prefer use Linux also... but need to also support win too.... :roll: for the 88.9%
If we only supported Linux, there would be lots more Linux users! :lol:

Ray

User avatar
mrburnette
Posts: 2190
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Arduino Core for STM32 v2018.1.18 Problem

Post by mrburnette » Mon Jan 22, 2018 10:33 pm

Pito wrote:
Mon Jan 22, 2018 8:09 pm
Market share desktops/notebooks: Win 88.9%, Linux 2.3%.. :)
Sounds like the ratio of non-rich vs the very rich.
But the ratio does not itself make the wealthy bad (people.)

zmemw16
Posts: 1672
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Arduino Core for STM32 v2018.1.18 Problem

Post by zmemw16 » Mon Jan 22, 2018 10:36 pm

smart maybe :?:

Post Reply