Photon Firmware Upload and photon does not restart

Are you sure you have the photon in dfu mode - blinking yellow before tring to program with dfu?

In manual mode it will breath white on startup may change later not sure about that

dfu can not be comfused , not just because of yellow, but because of downloading.
the problem is what happens after dfu mode,
rigth now application is ognored.

Please post the actual dfu command I am guessing your dfu command for tinker is missing the :leave parameter

That tells it to end dfu mode

be sure, leave is at its place.

"${OUTPUT_PATH}"dfu-util -d 2b04:d006 -a 0 -s 0x80A0000:leave -D blank.bin

From your earlier post APP= tinker I would have expected your bin to be tinker.bin not blank.bin

Could that be it?

I am trying with different apps.

If you post simple test code it will be easier for others to help.

The problem does noy come from the code.
but that is the code

#include "application.h"

SYSTEM_MODE(MANUAL);

void setup() {
}

/* executes continuously after setup() runs */
void loop() {
  LED_On(LED_RGB);
  LED_SetRGBColor(RGB_COLOR_RED);
  delay(500);
  LED_SetRGBColor(RGB_COLOR_GREEN);
  delay(500);
  LED_SetRGBColor(RGB_COLOR_MAGENTA);
  delay(500);
}

@yianmar, you need to place LED_ON() in setup() since you only do that once. and the rest of the code looks ok.

As I mentioned earlier this test code runs ok, at my first PC.
But not with the other. Something is different , nut I can not imagine what.

Setting system mode manual I expect photon to flush white and then the colors I command to.
But photon goes to cloud connection procedure flashing cyan.

I just tested the code it works either way regarding the placement of LED_ON()

So this is the same Photon but programmed from different PCs?

Maybe you could compare the user bin from the 2 machines?

Have you tried flashing from PC#2 the bin file that was built on PC#1 ?

I will do it, but the first is at work the second at home,
and security restrictions gives me no option for teamviewer.
But I am sure something goes wrong at the chain about calling app to be executed

The exact code you have above compiles to exactly 1976 bytes on my machine, if that helps?

Here is my compiler version

arm-none-eabi-gcc --version

arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 224288]

Other than that you probably are going to have to post some of the compiling and flashing feedback you get from the command line so that others can comment further.

GNU Tools ARM Embedded\4.9 2015q2\ is the one I am using giving 2252 bytes to be downloaded

Hey I made a mistake that 1976 bytes was when I complied with particle dev when I built it again from the command line I got 2252 bytes

ok no problem, what is the url for ARM/embedded-4_9-branch revision 224288

Here is were you can get it https://launchpad.net/gcc-arm-embedded/+download

@yannimar - if you let the photon connect to the cloud, what color does the LED breathe? Does particle cli list the tinker functions (digitalread/digitalwrite etc…)?

When you flash your firmware and the photon reboots, do you see a small flash of green and then another reboot (back to white?) this could mean for some reason the device is rejecting the firmware and reverting to factory backup.