Toolchain for Windows Installer

To me that actually looks right. Did the code seem to get updated on the module? Per the firmware github page:

As of 12/4/13, you will likely see Error during download get_status as the last line from the dfu-util command. You can ignore this message for now. We're not sure what this error is all about.

ive been trying to update the system firmware for the P1 using the below and I get the below errors. Iā€™ve already tried updating the PATH as you stated above. Any ideas?

put the Photon in DFU mode
cd modules
make PLATFORM=P1 clean all program-dfu

@mumblepins, just tried making the newest branch called latest and i got the below error:. Whats the best way to updated the ARM gcc version to 4.9.3?

Please pull the latest code. The build system now accepts any compiler version that is at least the minimum required.

EDIT: But please also read the message. :slight_smile: Itā€™s saying it needs version 4.9.3 but you have only 4.8.4 installed.

The pervious error above: dfu-suffix command not found. So you should install dfu suffix also, in addition to dfu-util.

1 Like

Updated release, now pulls down 2015q2, and changes the path adding method.

@wesner0019, it sounds like you have a lot of older versions and such cluttering up your build environment. I might suggest a thorough cleaning up of installations and the path, and maybe some reinstalls. Alternatively, a virtual machine can always be your friend :smile:.

2 Likes

@Bspranger, I think the reason you used Ubuntu is that development is way easier to set up. Hereā€™s a one liner to install the necessary stuff (tested on 14.04, raw install).

sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded && sudo apt-get update && sudo apt-get -y install gcc-arm-none-eabi git

You can then clone and build for the Photon with:

git clone https://github.com/spark/firmware && cd firmware && git checkout latest && cd main && make clean all PLATFORM=photon && cd ../build/target/user-part/platform-6-m

Here is a gist with an install script.

1 Like

@mumblepins thanks! I will try this once I get released from the hospitalā€¦ ;-(

@Bspranger take care :smile:

1 Like

@mumblepins
Nice installer! But it seams that I have some problem :frowning:
Everything seems to get installed and no error occurs, but the folders Make and MinGW are totally empty after the installation is completedā€¦

Any ideas?

Why yes I do have ideas :smile: It's because Sourceforge sucks, and the installer can't download them :frowning: This tweet is from 10 hours ago with no update since then, so remember this the next time the Particle cloud has an outage, at least we get updates on it with slightly higher frequency.

#SourceForge site is read-only, developer services disabled due to storage infra fault. Service restoral work in-progress, ETA to follow

ā€” SF.net Operations (@sfnet_ops) July 17, 2015

So, we just have to wait...

1 Like

@mumblepins, thanks for the info!

Have to be patient and waitā€¦ :grin:

Welp. Sourceforge finally is back up (mainly), so I made some improvements. It now will install the toolchain, Netbeans for development, the Particle CLI, and all the assorted requirements for those things. It also includes a Netbeans project, so after setup, you should just be able to run Netbeans and click Build, and youā€™re good to go. See more info here, get it here. Tested on Win7, with nothing else really installed, and it seems to work fine. Let me know of any issues!

@mumblepins, do you know why Iā€™m getting this error when trying to install the modules part? Iā€™ve redownloaded your program to install everything.

That seems to be a makefile issue. I donā€™t know much at all about the P1 platform, so my only advice is to go into the firmware directory, and re-get the firmware from github (See below). If that doesnā€™t work, Iā€™m at a bit of a loss, and would have to direct you towards someone with more knowledge about the P1 firmware.

CAUTION!!!: If you have modified any files, such as application.cpp, or added anything to the firmware directory, THIS COMMAND WILL DELETE IT! With that in mind, you can issue this to reset the firmware to the latest branch: git reset --hard origin\latest

Whatā€™s the -s for?

i thought the -S just show the main lines and not all the activity, like a suppression.

Yep, As a work around, you can build the hal project first. Otherwise there's a fix for this in the develop branch.

@mdma, I was trying to test out the following branch: feature/i2c_timeout. Iā€™m guessing that since this is still open this hasnt been merged into the development branch. So to get this to working I would do the below?

cd firmware/hal
make
cd firmware/main
make
?

  • cd modules
  • make clean all PLATFORM=photon APP=xxxx program-dfu

@mumblepins @kennethlimcp , Iā€™ve installed the toolchain and now I am trying to install particle cli. I get this far and it seems the install just freezes. Any ideas?