[Toolchain] Windows


#1

Tested on Windows XP

Path setting

Your PATH variable in Windows should look like:

xxxxxxx;C:\Program Files (x86)\GNU Tools ARM Embedded\4.9 2015q1\bin;C:\MinGW;C:\Program Files (x86)\GnuWin32\bin;C:\MinGW\msys\1.0\bin

  • cd to the firmware directory followed by main

  • try make clean all v=1


Photon, local build, on Windows
Toolchain for Windows Installer
Writing core firmware to external flash
Photon/P1 pin function chages
Photon softAP usage?
Toolchain for Windows Installer
Local build of Photon firmware freezes
Toolchain for Windows Installer
0.4.0 firmware available (pre-release)
#2

You can also download a simple installer by @mumblepins here: Toolchain for Windows Installer


#3

#4

What if we don’t have access to fw-private like you do? There’s no main/ folder in the primary firmware repo.

What about compiling for Photon? Does this allow that?

Thanks!


#5

Use the latest branch.


#6

What header include paths should I use for Core and Photon so that Visual Studio IntelliSense matches this toolchain?
Every firmware inc folder I can find?


#7

Just the root folder and it should included all the sub-folders?


#8

NMake in Visual Studio does not include subfolders, apparently. I’ve got C:\Particle\Firmware\Code\communication\src;C:\Particle\Firmware\Code\hal\inc;C:\Particle\Firmware\Code\hal\shared;C:\Particle\Firmware\Code\services\inc;C:\Particle\Firmware\Code\system\inc;C:\Particle\Firmware\Code\wiring\inc just to get rid of missing header file errors, but I can’t get rid of 70 IntelliSense syntax errors in the included header files. I’m guessing that’s because GCC allows different syntax than VC++, so IntelliSense is useless. If I ignore the errors it’s fine, except that in my own code Spark. calls get red underlines.

The only reason I’m using the Windows toolchain instead of Particle Dev is that I need to compile for the local cloud.
Visual Studio is better than nothing, but… for the toolchain on Windows what IDE do you recommend?


#9

hello @kennethlimcp , what if I got is permission denied?


#10

You get this message when you do what exactly? Knowing this would help.

But you can always try a user with an account with Admin privileges.


#11

@syauqy you can try running the CMD as administrator (right click on the exe)


#12

Hi all, I followed the above instruction but after that I am getting following errors…

same thing happens with xxd file

Please help

Thanks


#13

It’s a long time since I’ve set up my system, but I had a similar issue (stat.exe stopped working) which was rooted in a wrong setup in my environment.

Unfortunately I can’t remember what I did to correct it, but checking your PATH and other environment variables might help.