Author Topic: particle.io - No user rom found  (Read 4915 times)

kirby

  • Newbie
  • *
  • Posts: 19
particle.io - No user rom found
« on: February 19, 2016, 08:10:36 am »
After about the third try, I got my oak to to the triple-flash thing. I went to particle.io and claimed the device (had to do this with another one) and now, it gets an IP address, registers with particle.io, but the log says "No user rom found". To make matters more interesting, when I manually upload a sketch, it goes to the other oak that is plugged in and operating as expected. Yes, I have run the oak command and config.json points where I expect it to.

Does the oak command cache info somewhere?

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: particle.io - No user rom found
« Reply #1 on: February 21, 2016, 12:00:39 am »
Ok... so two silly questions just to clear the (murky) water :)

When you run the oak command line proggie... does it list both Oaks, with two different device IDs?

And, does it say the currently selected device (top line) is the one you expected to program, or the one you want to program now? - (I ask as when I've been programming multiple Oaks, I just leave the program running so I can switch to it and press a '1' or a '2' to switch between the two Oaks before hitting upload in the Arduino IDE).

Pete

kirby

  • Newbie
  • *
  • Posts: 19
Re: particle.io - No user rom found
« Reply #2 on: February 22, 2016, 04:47:38 pm »
OK, all of my Oaks are connecting to particle.io. I realized the "No user rom" simply meant that I hadn't uploaded a sketch.

I replaced the oak cli in ~/.arduino15/packages/digistump/tools/oakcli/0.9.3 with the one I built that fixed the file name thing.

I uploaded to Larry (my oaks are Larry, Moe, and Curley). COOL! It works as expected. I run cli to select Moe, upload the sketch, and it goes to Larry. Hmm..... I run the cli to select Curley. Verify that .oak/config.json points to Curley, hit upload and the sketch goes to Larry. Same behavior when I try to upload using the oak cli instead of the Arduino IDE.

I power off (unplug from power!) Larry, since I am thinking that he may be seizing the connection. No my uploads fail.

Where is this getting cached? I see all three devices, no I know that particle.io knows about them. I have verified that .oak/config.json points to the correct location.

Any suggestions?
« Last Edit: February 22, 2016, 05:00:57 pm by kirby »

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: particle.io - No user rom found
« Reply #3 on: February 23, 2016, 03:05:32 am »
Kirby,

What operating system are you running?

The location of the config file will change with OS - it initially defaults to ~/, and then if you are on
  • linux/freebsd, it saves to ~/.oak/
  • windows, it saves to %appdata%\oak\
  • darwin, it saves to Home/Library/Preferences/oak

These appear to be the only places config.json are ever saved (upon reading of the oak.js source code). If oakcli is showing all three Oaks with different deviceIDs, and correctly updating your config.json file when you choose a different one... I have absolutely no idea what is going on there. You could try deleting the config.json file and checking that the Arduino IDE does indeed fail if you try to upload another sketch - otherwise it is somehow reading it from somewhere else? And then running the oakcli tool again to enter your particle details again, and choose a different Oak, and see if that gets you anywhere.

Pete

kirby

  • Newbie
  • *
  • Posts: 19
Re: particle.io - No user rom found
« Reply #4 on: February 23, 2016, 09:25:12 am »
I am running FC23.

For some reason that I don't understand, the oak cli file that I built the other day has Larry's device id hardcoded inside it! I am about 100% sure I did not add that when I changed the code.

Rebuilt it, and all is good. The three of them are sitting around chatting happy!
« Last Edit: February 23, 2016, 10:20:41 am by kirby »

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: particle.io - No user rom found
« Reply #5 on: February 23, 2016, 05:25:58 pm »
Excellent! Glad you get it working! Sounds like baring some minor gremlins, that is a +1 for programming from linux.

kirby

  • Newbie
  • *
  • Posts: 19
Re: particle.io - No user rom found
« Reply #6 on: February 23, 2016, 06:21:42 pm »
Thank'ee, kindly! For sake of completeness, the reason I was rebuilding the oak CLI tool is described in -

http://digistump.com/board/index.php/topic,2019.msg9156.html#msg9156