# Argon doesn't take WiFi credentials

**URL:** <https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674>\
**Category:** Troubleshooting\
**Tags:** argon\
**Created:** [December 31, 2018, 12:22pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674 "2018-12-31T12:22:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![chargeMan](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@chargeMan](https://community.particle.io/u/chargeMan)\
**Post date:** [December 31, 2018, 12:22pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/1 "2018-12-31T12:22:48Z")

</div>

Hi

Do you have any update when maybe the  
SYSTEM\_THREAD and SYSTEM\_MODE(SEMI\_AUTOMATIC) issues in 0.8.0 rc27 will be resolved

See below the feeback from my dev team  
We have tested following sketch on Particle Argon.  
This code is working on Particle Photon/P1 now.

```cpp
SYSTEM_THREAD(ENABLED);
SYSTEM_MODE(SEMI_AUTOMATIC); // In order to avoid blocking while device connects to cloud when device boots 

......

void setup()
{

......

	// Start thread block to connect to particle cloud within SYSTEM_THREAD
	{
	 	SINGLE_THREADED_BLOCK() { 
			Particle.connect();
	 	}
	}

......

}

......

void loop()
{
......

}

```

After flashing this code, my argon was not connecting to cloud (by blinking of LED as White color)

So, I had flashed system firmware in DFU mode as your instruction after erase all firmware on argon module by clicking setup/reset button

particle flash --usb system-part1-0.8.0-rc.27-argon.bin -v  
particle flash --serial argon-ncp-firmware-0.0.5-ota.bin -v  
particle serial wifi

So, it could connect to cloud once.

After reboot, argon enters into setup mode automatically without clicking setup mode button.  
Every time, I am executing “particle serial wifi” command via CLI.

I had tried to reflash bootloader, too.  
particle flash --usb bootloader-0.8.0-rc.27-argon.bin -v  
But same issue on my argon.

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [December 31, 2018, 12:51pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/2 "2018-12-31T12:51:35Z")

</div>

> [@Gen 3 improvements update - 12/20](https://community.particle.io/t/gen-3-improvements-update-12-20/46475/3):
>
> (by blinking of LED as White color)

I guess you mean breathing white, right? Like shown here [https://docs.particle.io/tutorials/device-os/led/photon/#wi-fi-off](https://docs.particle.io/tutorials/device-os/led/photon/#wi-fi-off)  
This is the expected behaviour when using `SEMI_AUTOMATIC` mode.

And if it is in fact that then you should call `WiFi.on()` prior the `Particle.connect()` call.  
While this shouldn't normally be required and will hopefully be fixed, it never harms actually having it there.

This is the respective issue filed a while ago.  
[https://github.com/particle-iot/firmware/issues/1631](https://github.com/particle-iot/firmware/issues/1631)  
Since the only response there seems to be _countering_ my arguments _for_ the "legacy" behaviour to be re-implemented, any support for my proposal to "fix" it would be welcome.

However, you can also always try Safe Mode to update OTA.

> [@Gen 3 improvements update - 12/20](https://community.particle.io/t/gen-3-improvements-update-12-20/46475/3):
>
> After reboot, argon enters into setup mode automatically without clicking setup mode button.

That would suggest there are no valid WiFi credentials stored. In order to store WiFi creds the WiFi module should be on too, but if your application doesn't power it on you could go into Safe Listening Mode.

BTW, reflashing the bootloader (which only works via `--serial`) wouldn't change anything in that respect.

---

<div class="post-metadata">

**Author:** ![chargeMan](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@chargeMan](https://community.particle.io/u/chargeMan)\
**Post date:** [January 1, 2019, 1:25pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/3 "2019-01-01T13:25:21Z")

</div>

Can you give me detailed instruction how can I restore WiFi credential in current situation?

So, I had erased all user code and flashed system firmware again.

But it is still entering WiFi setup mode(blinking as Blue) after rebooting

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [January 1, 2019, 1:34pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/4 "2019-01-01T13:34:24Z")

</div>

> [@chargeMan](#):
>
> So, I had erased all user code and flashed system firmware again.

Can you be more specific how you did that?

You could follow the instructions provided in this post

> [@New Xenon, and Spectra Xenon stuck in Listening, no USB serial](https://community.particle.io/t/new-xenon-and-spectra-xenon-stuck-in-listening-no-usb-serial/46329/10):
>
> That’s an important piece of info. If you are updating an Argon from anything before rc.25 to rc.25 or above, you also need to update the NCP (Network CoProcessor). For that you need to download these files [https://github.com/particle-iot/firmware/releases/download/v0.8.0-rc.27/system-part1-0.8.0-rc.27-argon.bin](https://github.com/particle-iot/firmware/releases/download/v0.8.0-rc.27/system-part1-0.8.0-rc.27-argon.bin)[https://github.com/particle-iot/firmware/releases/download/v0.8.0-rc.27/tinker-serial1-debugging-0.8.0-rc.27-argon.bin](https://github.com/particle-iot/firmware/releases/download/v0.8.0-rc.27/tinker-serial1-debugging-0.8.0-rc.27-argon.bin)[https://github.com/particle-iot/firmware/releases/download/v0.8…](https://github.com/particle-iot/firmware/releases/download/v0.8.0-rc.27/bootloader-0.8.0-rc.27-argon.bin)

After that, you should be able to run `particle serial wifi` (avoid any autodetect features offered tho') in order to provide new WiFi settings that should allow your device to connect to your local WiFi.

---

<div class="post-metadata">

**Author:** ![chargeMan](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@chargeMan](https://community.particle.io/u/chargeMan)\
**Post date:** [January 1, 2019, 1:52pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/5 "2019-01-01T13:52:03Z")

</div>

I had followed your mentioned steps.

In DFU Mode (blinking yellow)

particle flash --usb system-part1-0.8.0-rc.27-argon.bin -v  
particle flash --usb tinker-serial1-debugging-0.8.0-rc.27-argon.bin -v  
In Listening Mode (blinking blue)

particle flash --serial bootloader-0.8.0-rc.27-argon.bin -v  
particle flash --serial argon-ncp-firmware-0.0.5-ota.bin -v

After that, particle serial wifi

But after I had set WiFi credential, if I reboot device, device is entered into WiFi setup mode again.

I am not sure what I missed yet.

---

<div class="post-metadata">

**Author:** ![chargeMan](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@chargeMan](https://community.particle.io/u/chargeMan)\
**Post date:** [January 1, 2019, 1:56pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/6 "2019-01-01T13:56:19Z")

</div>

And also I can’t pair current argon on mobile app in current situation.

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [January 1, 2019, 1:59pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/7 "2019-01-01T13:59:34Z")

</div>

Can you post the output of `particle serial inspect`?

And if you could repeat the whole setup procedure to capture and post the output of the individual steps too?

---

<div class="post-metadata">

**Author:** ![chargeMan](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@chargeMan](https://community.particle.io/u/chargeMan)\
**Post date:** [January 1, 2019, 2:18pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/8 "2019-01-01T14:18:38Z")

</div>

![inspect](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/c/9/c9836b6f40650aae00c3f111c22fdc5e4f2cf1da.png)

 ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/6/1/610b0414497478bdc8077862d33cbe34ca2d015a.png)

 ![tinkerserial](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/4/2/42c2a883f4a4f11906bfabdde2ae0c4088d568be.png)  
 ![bootloader_ncp](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/4/d/4d1f4ee809a3f167d1f52ae652bdf078ab0896bd.png)

---

<div class="post-metadata">

**Author:** ![chargeMan](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@chargeMan](https://community.particle.io/u/chargeMan)\
**Post date:** [January 1, 2019, 2:19pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/9 "2019-01-01T14:19:23Z")

</div>

I had uploaded screenshots  
Can you review what I am missing now?

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [January 1, 2019, 2:56pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/10 "2019-01-01T14:56:50Z")

</div>

Have you got the WiFi antenna plugged in?  
Can you try entering Safe Mode?  
Does this change anything?

---

<div class="post-metadata">

**Author:** ![chargeMan](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@chargeMan](https://community.particle.io/u/chargeMan)\
**Post date:** [January 1, 2019, 3:00pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/11 "2019-01-01T15:00:27Z")

</div>

Yeah, Of course, I had attached WiFi antenna

 ![IMG_20190101_225813](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/b/4/b4152effa149aab75ec8062306dc0de71d75d329.jpg)

---

<div class="post-metadata">

**Author:** ![chargeMan](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@chargeMan](https://community.particle.io/u/chargeMan)\
**Post date:** [January 1, 2019, 3:02pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/12 "2019-01-01T15:02:27Z")

</div>

I could not enter into Safe mode

If I hold two buttons and then release reset button

When led is blinking as Magenta, if I release mode button,

It blinks as blue automatically.

I had tried several times

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [January 1, 2019, 3:03pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/13 "2019-01-01T15:03:34Z")

</div>

In that case I just have to defer to @rickkas7 or you can file a support ticket.

I have removed your last screenshot for privacy reasons.

---

<div class="post-metadata">

**Author:** ![chargeMan](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@chargeMan](https://community.particle.io/u/chargeMan)\
**Post date:** [January 1, 2019, 3:04pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/14 "2019-01-01T15:04:32Z")

</div>

Yeah, I’d like you to help I can resolve current problem.

---

<div class="post-metadata">

**Author:** ![chargeMan](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@chargeMan](https://community.particle.io/u/chargeMan)\
**Post date:** [January 1, 2019, 3:34pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/15 "2019-01-01T15:34:19Z")

</div>

So, I have to wait for your contact?

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [January 1, 2019, 3:53pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/16 "2019-01-01T15:53:17Z")

</div>

Yup, since I’m not an Particle employee, my possibilities are limited 😉

---

<div class="post-metadata">

**Author:** ![chargeMan](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@chargeMan](https://community.particle.io/u/chargeMan)\
**Post date:** [January 1, 2019, 3:54pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/17 "2019-01-01T15:54:37Z")

</div>

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [January 1, 2019, 5:03pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/18 "2019-01-01T17:03:28Z")

</div>

Are you sure the Wi-Fi credentials didn’t set? If you’ve cleared the credentials using the button combination or the device is brand new, it will stay in setup mode until you’ve successfully completed the mobile set up process. Just setting the Wi-Fi credentials is not sufficient to get out of setup mode (listening mode, blinking dark blue).

You can also clear the setup bit using the following code.

```auto
#include "dct.h"

SYSTEM_MODE(SEMI_AUTOMATIC);

void setup() {
	// This clears the setup done flag on brand new devices so it won't stay in listening mode
	const uint8_t val = 0x01;
    dct_write_app_data(&val, DCT_SETUP_DONE_OFFSET, 1);
}

```

It should also be possible to clear the setup flag using dfu-util, but I don’t have the command handy.

---

<div class="post-metadata">

**Author:** ![ninjatill](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/ninjatill/32/17370_2.png) [@ninjatill](https://community.particle.io/u/ninjatill)\
**Post date:** [January 1, 2019, 7:32pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/19 "2019-01-01T19:32:01Z")

</div>

You should remove the device from that black foam. Use a proper breadboard. The foam is conductive to reduce ESD during shipping. As others have found out the hard way, running the device in the foam can cause unexpected and erratic behavior.

---

<div class="post-metadata">

**Author:** ![chargeMan](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@chargeMan](https://community.particle.io/u/chargeMan)\
**Post date:** [January 1, 2019, 8:39pm UTC](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674/21 "2019-01-01T20:39:18Z")

</div>

I have flashed your mentioned code  
#include “dct.h”

SYSTEM\_MODE(SEMI\_AUTOMATIC);

void setup() {  
// This clears the setup done flag on brand new devices so it won’t stay in listening mode  
const uint8\_t val = 0x01;  
dct\_write\_app\_data(&val, DCT\_SETUP\_DONE\_OFFSET, 1);  
}

So, It was breathing with white color.

After that I was going to pair within particle app, I triggered setup mode by holding mode button.

But I am failing to part on mobile app yet.

I am testing on Iphone and Particle app has installed Dec 27th

[Next page](https://community.particle.io/t/argon-doesnt-take-wifi-credentials/46674.md?page=2)
