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

Problem with the Particle Photon platform #44

Open
Wyldix opened this issue Feb 9, 2018 · 6 comments
Open

Problem with the Particle Photon platform #44

Wyldix opened this issue Feb 9, 2018 · 6 comments

Comments

@Wyldix
Copy link

Wyldix commented Feb 9, 2018

I've been successfully using your program for a Teensy 3.6 platform and everything works fine. I tried to build the firmware for the Particle photon platform but it doesn't compile. The compiler shows an error at the "make all" command of the make file. As far as I know you did not provide any documentation about the Particle photon platform. Would it be possible to have some explications about the command you used to build the firmware like you did for the Teensy?

Tanks, Olivier

@thomasgauthier
Copy link

I had the same problem. Seems like it has to do with GCC. I was able to successfully compile it by downgrading gcc-arm-embedded from 7-2017-q4 to 5.4.

To do it on MacOS

brew cask uninstall --force gcc-arm-embedded
brew cask install https://raw.githubusercontent.com/caskroom/homebrew-cask/ed1b2f3a4182f8512dfe88102ed79b4deb770faa/Casks/gcc-arm-embedded.rb

mkdir build && cd build
cmake .. -DPLATFORM=Particle
make

@Wyldix
Copy link
Author

Wyldix commented Feb 16, 2018

Thank you Thomas!

I was also having some errors when compiling the Particle firmware but i didn't try to downgrade GCC. I will try that! Thanks.

@alexhgian
Copy link

I'm also have this issue with Ubuntu 17.10 on 5.4 and latest

@Wyldix
Copy link
Author

Wyldix commented Mar 19, 2018

I tried again on W10 and Ubuntu 16.04 both with GCC 5.4 and it still didn't compile for the Particle platform. It works for Teensy. It's getting weird since it works on MacOS...

@shwetankshrey
Copy link

Hi
Did anyone successfully compile the code for Particle Photon. If yes, could you please share how you did that? I am working with Linux and have tried it on MacOS as well. However it didn't compile for me even after downgrading. On Linux, the error I get is :
make[3]: *** No rule to make target 'all'. Stop. platform-particle/CMakeFiles/sensor-firmware.dir/build.make:57: recipe for target 'platform-particle/CMakeFiles/sensor-firmware' failed make[2]: *** [platform-particle/CMakeFiles/sensor-firmware] Error 2 CMakeFiles/Makefile2:121: recipe for target 'platform-particle/CMakeFiles/sensor-firmware.dir/all' failed make[1]: *** [platform-particle/CMakeFiles/sensor-firmware.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

@shwetankshrey
Copy link

@thomasgauthier @ashtuchkin Please help me out here. Thanks.

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

4 participants