Author Topic: Prevent user code running?  (Read 2558 times)

knflrpn

  • Newbie
  • *
  • Posts: 3
Prevent user code running?
« on: March 23, 2016, 11:20:42 pm »
Is there a way to stop user code from running?  Because mine seems to causing problems.

On power-up, the board properly does a Particle.publish() that I have in setup(), but after that, the dashboard shows a constant stream of "device went offline" / "device came online" at around a cycle per minute, and trying to upload new code doesn't work.

Would appreciate any help.  Thanks.

exeng

  • Sr. Member
  • ****
  • Posts: 454
Re: Prevent user code running?
« Reply #1 on: March 23, 2016, 11:31:05 pm »
Try putting your Oak in Safe mode by connecting pin 1 to ground, cycle power, wait a few seconds, remove the pin 1 from ground. You should see a repetitive burst of 3 flashes indicating that you are in safe mode and should now be able to upload a new sketch.

knflrpn

  • Newbie
  • *
  • Posts: 3
Re: Prevent user code running?
« Reply #2 on: March 23, 2016, 11:33:16 pm »
I think I've tried this, but can you tell me, is pin 1 the one marked "EN"?  If so, then when I do that, nothing happens until I release the pin, at which point the same things I've described happens.

knflrpn

  • Newbie
  • *
  • Posts: 3
Re: Prevent user code running?
« Reply #3 on: March 23, 2016, 11:38:13 pm »
Ah no, it's the one marked "P1".  Got it working again.  Thanks!