chiefwigms / picobrew_pico

MIT License
149 stars 63 forks source link

Pico C 'Failed Update' Error #354

Open RoundRockBrewer opened 2 years ago

RoundRockBrewer commented 2 years ago

Have a brand-new Pico C connected to my Picobrew server. It connects goes to update and gives a 'failed update' error message. I can't proceed past this error. I have looked everywhere online I can think of for a solution, for two days, and can't find anything about it. Can someone please help me out with this?

BuckoWA commented 2 years ago

I believe you need to add the machine UID to the config.yaml (/devices) since the server has no way to know whether the device is a C or a Pro/S (which have different firmware).

RoundRockBrewer commented 2 years ago

Makes sense. Where do I find the config.yaml to add the machine UID? And where do I find the machine's UID?

Thank You Bucko!

BuckoWA commented 2 years ago

The machine ID can be found by starting the machine in Service Menu. To do that, press and hold the dial knob on the front and then power on the machine. Press the knob once and the machine ID will show up.

The easiest way to add the machine ID to the config file is through the server's devices page. In the upper right hand corner, under System, pull down and select Devices. Then press the green + Add Device. Select Pico C, add the machine ID, and give it a name you'd like and press Save. This will add to the file. You can also manually add to the config.yaml file in the picobrew_pico directory, but that requires using a linux text editor to add it. Much easier through the server itself.

Good luck.

RoundRockBrewer commented 2 years ago

Well that worked for the update. Showed updating, restarting, showed garbage on the display then went blank. That's all it does now. Is my machine now bricked? Any suggestions?

BuckoWA commented 2 years ago

Hmmm... Haven't seen that occur. Are you able to boot the machine into the Service mode again? If so, you can factory reset in that menu. Exit Service menu and try again.?

RoundRockBrewer commented 2 years ago

I can't see anything but garbage on the screen at startup then the screen goes black and never comes back. Would upload a video, but don't think it will help beyond my explanation. If the control knob/button are still working but I just can't see what it's displaying, can you walk me through it 'in the blind'? Worth a shot I guess, otherwise I think I've probably got an expensive brand-new boat anchor.

BuckoWA commented 2 years ago

Here's how to do the Factory reset, although I'm a little skeptical about this working in the blind as you say.

Power up in the Service menu by pressing and holding the knob and then pressing the power switch. Wait 5-10 seconds. Press the knob 3 times. Scroll knob right 5 times. Press the button. Scroll knob right 1 time. Press the button.

Hope this works.

RoundRockBrewer commented 2 years ago

Well that did something. It makes some crazy loud noises like an arm is rotating for 10-15 seconds then just hums continuously like a pump motor or something is running. Wonder how a firmware update could cause this to happen and what the solution is to fix it?

BuckoWA commented 2 years ago

Maybe the file was corrupted during the download. Let's see if anybody else chimes in here. Otherwise, I may be able to salvage a PCB from one of my units I'm using for parts and send it to you.

chiefwigms commented 2 years ago

You can program the firmware via USB serial if you take the LCD off, if needed.. not near a PC at the moment

RoundRockBrewer commented 2 years ago

I can certainly do that if I have the correct firmware and know where to plug the USB in. I'm in no rush at this point. Just want to get her up and running. Thank you!

tmack8001 commented 2 years ago

Here's how to do the Factory reset, although I'm a little skeptical about this working in the blind as you say.

Power up in the Service menu by pressing and holding the knob and then pressing the power switch. Wait 5-10 seconds. Press the knob 3 times. Scroll knob 5 times. Press the button. Scroll knob 1 time. Press the button.

Hope this works.

I believe scroll knob left vs scroll knob right might end the prompt at a different utility. The pumping and sounds heard sound like there was a test session, rinse or other recirculation utility triggered perhaps?

tmack8001 commented 2 years ago

Wonder how a firmware update could cause this to happen and what the solution is to fix it?

Are you sure you have a Pico C vs Pico S/Pro? I ask cause it has been reported that if the wrong device type firmware is loaded the device has either an oversized or undersized display. Maybe you have the oversized display where you can't really read or see what is intended to be shown due to the bevel of the display board?

RoundRockBrewer commented 2 years ago

Yes. Here's a pic of the back placard.

Pico C .

BuckoWA commented 2 years ago

Good point. Scroll right in the directions there. Sorry - should have specified.

Here's how to do the Factory reset, although I'm a little skeptical about this working in the blind as you say.

Power up in the Service menu by pressing and holding the knob and then pressing the power switch. Wait 5-10 seconds. Press the knob 3 times. Scroll knob 5 times. Press the button. Scroll knob 1 time. Press the button.

Hope this works.

I believe scroll knob left vs scroll knob right might end the prompt at a different utility. The pumping and sounds heard sound like there was a test session, rinse or other recirculation utility triggered perhaps?

— Reply to this email directly, view it on GitHubhttps://github.com/chiefwigms/picobrew_pico/issues/354#issuecomment-1165028510, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AP337JF3EH45VUBZFI75RODVQT3IVANCNFSM5ZVNX5NA. You are receiving this because you commented.Message ID: @.***>

tmack8001 commented 2 years ago

@RoundRockBrewer figured you knew, just wanted to double check 😉

RoundRockBrewer commented 2 years ago

Going into the service menu Pressing the knob 3 times. Scrolling left 5 times. Pressing the button. Scrolling left 1 time & Pressing the button doesn't do anything.

That is what you meant right?

I will wait for Chief to get me the firmware to flash. Guessing I will need the flash utility too.

Thank you to all for lending a helping hand.

chiefwigms commented 2 years ago

Going into the service menu Pressing the knob 3 times. Scrolling left 5 times. Pressing the button. Scrolling left 1 time & Pressing the button doesn't do anything.

That is what you meant right?

I will wait for Chief to get me the firmware to flash. Guessing I will need the flash utility too.

Thank you to all for lending a helping hand.

All the firmware for Pico devices is here You'd need to get a usb -> serial breakout Then you'd need to use a CC3200 programming tool (you can download one from TI, or there's a open source tool

Attach the programmer to the port (make sure the pins match, labeled on the board) I have circled below when you remove your LCD/rotary knob: 0531181927

RoundRockBrewer commented 2 years ago

Found a SparkFun USB to Serial, cable and adapter on Amazon I can get tomorrow. Will these work? Amazon

And Thanks!

chiefwigms commented 2 years ago

You should only need one of those

RoundRockBrewer commented 2 years ago

I do need the cable right? SparkFun is USB-C(Don't see a USB on Amazon) so I need a converter to accommodate the USB cable.

chiefwigms commented 2 years ago

if you dont have a usb a to usb c cable yeah, but i'm saying, you don't need the $14.99 usb->serial (first item in your cart)

RoundRockBrewer commented 2 years ago

I do have a usb a to usb c cable, but I guess I'm confused about how to connect to the board w/o the USB->serial cable. Looks like 6 pins to connect to the board from your pic. Haven't opened unit up yet.

RoundRockBrewer commented 2 years ago

I get it now. The SparkFun attaches straight to the board? Sorry about that. I see the connector now.

chiefwigms commented 2 years ago

Tada... image image The black thing on the bottom of the adapter is a header that connects to the pico board

RoundRockBrewer commented 2 years ago

I saw that and it finally sank in. It's ordered. Thanks again!

RoundRockBrewer commented 2 years ago

I've looked at both CC3200 programming tools for the last 3+ hours and am at a complete loss. I have no clue how to use TI's CC3200-SDK tool, which I downloaded. And the other one requires Python which I know absolutely zero about, other than I can download it too but wouldn't know how to use it either. Any step by step instructions on how to use either one of them to flash the Pico C firmware? Thanks again for all of your help!

chiefwigms commented 2 years ago

I've looked at both CC3200 programming tools for the last 3+ hours and am at a complete loss. I have no clue how to use TI's CC3200-SDK tool, which I downloaded. And the other one requires Python which I know absolutely zero about, other than I can download it too but wouldn't know how to use it either. Any step by step instructions on how to use either one of them to flash the Pico C firmware? Thanks again for all of your help!

For the github tool, you'll need python (>3.6) and have to follow the installation/usage for the CC3200 tool that's on github - its really not complicated - just follow the guide they have. Once you have the usb->serial tool, you'll have to figure out what port it's on (you may need FTDI drivers), then you'll just issue this command cc3200tool -p COM# write_file pico_c_0_1_34.bin /sys/mcuimg2.bin (assuming that you have that pico_c_0_1_34.bin, from the firmware area i linked above, in the working directory that you issue that command from), and COM# is whatever COM port the usb-serial is on (i.e. COM6). I've refreshed the PC i'm on since doing this like 4 years ago, so I don't have the TI SDK installed anymore

RoundRockBrewer commented 2 years ago

Ok. I've got Python installed and the correct bin file downloaded. Will see what happens tomorrow when the programming dongle arrives. I'll let you know if I'm successful. Have a great weekend Sir.

chiefwigms commented 2 years ago

ok - if you're on windows, if you haven't installed the cc3200 tool, do this pip3 install git+https://github.com/mon/cc3200tool.git (you can do this before you have the usb->serial dongle) If that completes, you should be able to just run cc3200tool and see output like below: image

Then you can cd to whatever folder you have the firmware bin file and paste the write command I linked a few posts above and you should be back in business

RoundRockBrewer commented 2 years ago

I have >>> in python and don't know how to get to a directory to use the command you sent. 1st time python user without a clue. Do I have to install pyserial as well?

chiefwigms commented 2 years ago

If you got >>> you ran python already. Run the pip3 command after opening a command prompt. The tool uses python but you don't invoke it directly

RoundRockBrewer commented 2 years ago

How do I get a command prompt in windows to recognize python commands?

chiefwigms commented 2 years ago

You're not typing python commands.. open a windows command prompt for all of this

RoundRockBrewer commented 2 years ago

error - 'pip3' is not a recognized as an internal or external command, operable program or batch file.

chiefwigms commented 2 years ago

Are you on windows? You might need to set the path.. https://pythonpoint.net/how-to-set-python-path-in-windows-10/

RoundRockBrewer commented 2 years ago

Have PIP finally working, now I have to get GIT. Where do I get that from that I/you trust?

RoundRockBrewer commented 2 years ago

Finally got CC3200 programmer installed after getting git. See how tomorrow goes.

chiefwigms commented 2 years ago

Have the pico powered off, make sure you have the pins correct (line up GND w GND), then power on the pico.. the display should be blank then run the command

RoundRockBrewer commented 2 years ago

Once I got the cc3200tool to finally install, I quit for the day. Trying to run the cc3200tool at the command prompt and it fails just like pip did before I installed pip and git. Tried using the tutorial to make system wide and it fails with errors. Tried going to the directory of cc3200tool and trying there, that doesn't work either. Can you help me out with this in layman's terms? I'm an electronics guy, not much of a software guy - as you can tell.

chiefwigms commented 2 years ago

If you just open a command prompt (not python), can you run python (could be python3)? Odds are setting your path environment I linked above was temporary or didn't stick

RoundRockBrewer commented 2 years ago

Python, pip, pip3 and git all work. Is there a command string to get the tool system wide? One in the tool instructions fails. Have no clue what path for the tool to add or edit into to the environment. What specific file needs to be in the directory?

RoundRockBrewer commented 2 years ago

Maybe a pic of your system environment paths would be helpful.

RoundRockBrewer commented 2 years ago

Think I figured it out. Found the exe file, so I'm just going to move the bin file there and execute the command when the dongle arrives. Sorry to bug you again.

BuckoWA commented 2 years ago

I ran through this yesterday. Here’s an article on how to modify your path to be included.

https://www.architectryan.com/2018/08/31/how-to-change-environment-variables-on-windows-10/

Make sure python is in the path. Depending on which version of Python you’ve installed the path may be different. Here’s the path for 3.10 - C:\Users\${username}\AppData\Local\Programs\Python\Python310

Also, make sure to close the cmd window and re-open it after saving the path. The new path only takes effect when you open that window again.

chiefwigms commented 2 years ago

Think I figured it out. Found the exe file, so I'm just going to move the bin file there and execute the command when the dongle arrives. Sorry to bug you again.

Yeah dont do that... 🧐

RoundRockBrewer commented 2 years ago

Ok. That worked. Just needed to know how far down the path to enter in the environment. \python\python310 being the extent of it.

chiefwigms commented 2 years ago

So before you post, you'll probably wonder how to figure out the COM port, and you haven't specified, but from the posts, i gather you're on windows. Before plugging in the usb->serial adapter, right click My Computer, and click Manage (or Start->Run->devmgmt.msc). Expand ports: image

After plugging the adapter (assuming windows has the drivers, you can get them from sparkfun in the documents section instead of searching FTDI's site), you should see the screen refresh - the new comport is what you specify with the -p option on the command I gave you above. Again, make sure that the firmware bin file is in your current working directory.

RoundRockBrewer commented 2 years ago

Well, I got the programming dongle, the flash was successful, but the display is black on power up. Tried flashing twice with the same result. Here are the pics of the 2 flashes 1st attempt 2nd attempt .

chiefwigms commented 2 years ago

Did you power down and take the dongle off and power up ?