Diskussions- und Newsboard des DARC-Ortsverbandes I40
allgemeine Kategorie => OVI40 SDR Projekt (English AND German discussions around OVI40 SDR project) => Message started by: sm0nor on 18. March 2018, 21:04:09

Title: Firmware loading trouble
Post by: sm0nor on 18. March 2018, 21:04:09

OK... BL successfully installed after som hickups..

Over to firmware. I get this error. What cold be wrong?

/Ulf

Title: Re:Firmware loading trouble
Post by: DB4PLE on 18. March 2018, 21:23:07

Hi,

power supply comes to my mind. Only reason I can think of why this could go wrong.

There is not much involved in USB DFU flashing: Power supply, MCU internal clock, 3 wires which go to the USB (D+, D-, GND). Everything else is not relevant. If we assume clock being okay, wires are obviously connected correctly (you may try another USB cable, just to be sure) this leaves the power supply as the only potential troublemaker.

73
Danilo


Title: Re:Firmware loading trouble
Post by: sm0nor on 19. March 2018, 20:18:10

OK.... Now I can load FW without error. I made better power connections, cleaned, reflowed some doubtful soldering. Testing continuity etc... I'm not sure which effort rid the error.

Still nothing happens after FW loaded without error. The below screen is the only thing that happens on the screen. It's the same screen as before FW install.

What does it mean? Does it mean bootloader is installed correctly?

If bootloader correct... how can I troubleshoot?

Does everything so far exclude hardware error?

/Ulf

Title: Re:Firmware loading trouble
Post by: DB4PLE on 19. March 2018, 20:21:58

Hi,

do you press the button Band+ (was Band- originally, which is wrong, DFU is Band+) when powering? Or is it simply always going to this screen? In this case -> Band+ is pressed (probably a solder bridge).

Check all buttons for not being connected to GND on the non-GND side of the connection.

73
Danilo


Title: Re:Firmware loading trouble
Post by: DF8OE on 19. March 2018, 20:29:23

Danilo,

sorry - not correct... DFU is not entered by BAND- but by BAND+

@Ulf
The bridge against GND must be located at BAND+ track.

vy 73
Andreas

Title: Re:Firmware loading trouble
Post by: sm0nor on 19. March 2018, 22:11:06

This is what happens:

1, Pressing Band + and then apply power = screen comes on with the yellow text and current is 160 mA
2, Still pressing Band +, everything is as in point 1.
3, Releasing Band + = current goes down to 100 mA
4, Screen goes blank (black) after an irregular time. Sometimes immediately, sometimes half a minute and sometimes a full minute. When screen goes blank (black) current goes down to 80 mA.

/ulf

Title: Re:Firmware loading trouble
Post by: DF8OE on 20. March 2018, 06:27:53

Two possibilities:

1) Please start without pressing any button. First red LED should turn on, then green LED lights in addition together with LCD activaation, then red LED turns OFF.

2) Please start with pressing and holding any button except POWER, BAND+ or BAND-. Hold the button until button test appears on screen.

vy 73
Andreas

Title: Re:Firmware loading trouble
Post by: sm0nor on 20. March 2018, 06:36:22

I think I have a bigger problem :-(

I don't have any LED-activity at all. Only once, a couple of days ago I have seen the green LED flashing. But since that only time, all LED:s are off.

Sorry for being a bit unexperienced with this side of electronics :). But I'm learning and I want to fix and learn more in the process! :)

/Ulf

Title: Re:Firmware loading trouble
Post by: DF8OE on 20. March 2018, 09:27:53

Hi Ulf,

Your bootloader works - that can clearly be stated by bootloader messages when booting with BAND+ or BAND- pressed.

But I think your firmware is still not installed correctly.

Please follow these steps for a new try:

1) Apply +5V to the correspondent pin of USB A plug
2) Take an USB plug, FAT formatted, and add fw-40SDR.bin to its root directory
3) apply this plug to OVI40
4) press&hold BAND-, then apply power to OVI40 board
5) hold BAND- until message shows "Firmware will be updated".
6) wait until process finished. Now remove power supply, remove USB plug.

During update LEDs should work.

After rebooting OVI40 should work.

Do not know where you are trapping in during DFUse program - but this is the second way.

Please keep us updated about the result.

vy 73
Andreas

Title: Re:Firmware loading trouble
Post by: peter_77 on 20. March 2018, 11:22:46

Or instead of applying 5V and using the USB Stick you can install the firmware with DFuse as well.
Keep in mind that the I40 UI needs to be in DFU mode for this ! (Band + pressed at power on and you hear the Winblows chime, taskbar shows "STM32 in DFU Mode" under the USB symbol)
Exactly the same thing as you flashed the bootloader .dfu file.

Be sure to use the firmware file with the .dfu file extension:
https://www.amateurfunk-sulingen.de/uhsdr/firmware-latest/OVI40/ (https://www.amateurfunk-sulingen.de/uhsdr/firmware-latest/OVI40/)
and upload it the same way as you uploded the bootloader.
That should do the trick as well. ;)

Title: Re:Firmware loading trouble
Post by: DF8OE on 20. March 2018, 12:22:07

Hi Peter,

that's the way Ulf has tried before and it does not work for him. Because there is a huge problematic block (PC/DFU program) I proposed the second way, which shows success of flashing firmware directly and unmisunderstandable on LCD.

vy 73
Andreas

Title: Re:Firmware loading trouble
Post by: sm0nor on 21. March 2018, 14:49:00

Thank you for your input. Really appreciate the help :)

I will try this in few days. Business trip now and WPX in the weekend. I'll get back Monday-Tuesday

/Ulf

Title: Re:Firmware loading trouble
Post by: sm0nor on 25. March 2018, 17:57:02

Found time today to try your suggestion. And yes, firmware loaded easily. But now other strange problem.
1, first time booted after firmware I got the nice UI up and runing including a spectrum (I only have UI board). Frequency counts up and down spontanously
2, Second time booting I got a a more limited UI. See picture.
3, Third time booting I got this blue screen, see picture. And it just loops in this order:
blank screen->splash screen->blue screen->reboots and then new cycle.

- Result 1 and 2 above cannot be repeated. It was only first and second start up
- First or second time, I saw three error messages. One of the was "local oscillator missing". The other two I didn't see...


Title: Re:Firmware loading trouble
Post by: DL2GMI - Michael (H44MI) on 25. March 2018, 18:21:23

I think you have a short-circuit around the BAND-switches, because the Button-Test-Screen shows 2 buttons pressed.

Title: Re:Firmware loading trouble
Post by: DB4PLE on 25. March 2018, 18:29:14

Hi Ulf,

there most likely some hardware problems left: I can see two buttons pressed during boot, one being band- and the other is band+
Fix that and then try to press F1-F3-F5 during boot to reset all settings to default.

73
Danilo

Title: Re:Firmware loading trouble
Post by: sm0nor on 25. March 2018, 21:35:05

Thanks for the F1+F3+F5 tips. This is what I get (see picture) and then I get the UI again.

Title: Re:Firmware loading trouble
Post by: DF8OE on 26. March 2018, 03:31:35

Perfect!

Because of you do not have fitted rf PCB of course no local oscillator, temps sensor, SWR mod can be detected and this leads to the warnings. All is 100% ok.

vy 73
Andreas

Title: Re:Firmware loading trouble
Post by: sm0nor on 26. March 2018, 17:36:24

OK. All good then!
Do I need to worry about the frequency readout wobbles around spontaneously? Or is this to be expected with no other components attached?
Any other test I can do now?

Thanks for great support!

/Ulf

Title: Re:Firmware loading trouble
Post by: sm0nor on 26. March 2018, 18:28:24

to conclude the aboveā€¦ the display is actually showing all kinds of stuff by itself. It cycles through the bands, waterfall on and off, main menu showing. and the blue screen cycling. All by itself.
Buttons having no appaearent effect.
/Ulf

Title: Re:Firmware loading trouble
Post by: DB4PLE on 26. March 2018, 19:29:36

Hi,
that is strange and indicates a serious hardware problem. Something related to the buttons aka GPIO inputs. An software problem does not explain this. This can be also cause by the touchscreen interrupt. Disconnect the TP_IRQ line from the MCU. Check the schematics, there should be a 0R resistor for that.

73
Danilo

Title: Re:Firmware loading trouble
Post by: sm0nor on 27. March 2018, 05:45:04

I have a theory.... IPA cleaning leaves a white residue. I googled it and it seem that this residue consists of salt crystals from flux that IPA may not dissolve. I will try with some tougher solvent designed for board cleaning.
I'll get back...

Title: Re:Firmware loading trouble
Post by: sm0nor on 28. March 2018, 08:12:49

Now I know salt is the culprit! My mistake was to use IPA extensively for cleaning. I didn't know that this solvent is nowadays never used professionally. I have learned now to use just distilled water and an ultrasonic washer, if available.

My card is now probably so full av salt that it may be impossible to clean it again. But I'm in no way discouraged by my mistake. Instead I see this as a learning experience. And I will go on and try to get this board working. And I will build the RF board later. Now I have so much more experience :-).

When I de-soldered the MCU I discovered the magnitude of the problem. In the picture you can see all the salt that was trapped under the MCU. It was squeezed through the wholes while desoldering with hot air.

My next step will be to wash with distilled water and an ultrasonic bath. My friend has one. I will put in a new MCU. However, I suspect there will be salt under just every component so I don't have high hopes. But I will at least try - as a part of my learning :-)

Most likely I will end up buying a completed board when available, because it's a bit tedious to build exactly the same board again :). But I will build the RF board kit as I now knowhow to do it the right way :-)

Thanks for all the support! I love the project and I'm looking forward to next phase!

Ulf

Title: Re:Firmware loading trouble
Post by: SP9BSL on 28. March 2018, 08:52:16

Hi Ulf,
This is hmmm.. really ugly! What kind of flux are you using? I use the IPA for years and NEVER had any issue similar to yours...
The one I use is 99.5% C3H7OH. AFAIK there is no salt in IPA itself (look at the formula) it must be originated from something else like flux...

Title: Re:Firmware loading trouble
Post by: DF8OE on 28. March 2018, 09:03:47

I recommend RMA-223-UV. It is no-clean and I never have had any problems.

But too late for you - the only solution will be "cleaning"...

vy 73
Andreas

Title: Re:Firmware loading trouble
Post by: sm0nor on 28. March 2018, 09:37:21

Quote from: SP9BSL on 28. March 2018, 08:52:16
Hi Ulf,
This is hmmm.. really ugly! What kind of flux are you using? I use the IPA for years and NEVER had any issue similar to yours...
The one I use is 99.5% C3H7OH. AFAIK there is no salt in IPA itself (look at the formula) it must be originated from something else like flux...


I use a flux branded by Vellemann. But I perhaps should look for a proffesional brand.


According to my wife who is a chemist in med-chem says that the salt is formed from the metal ions in the IC legs reacting with something in the flux. IPA acts as a solvent helping to form the crystals. I don't know the details, but all kinds of solvents are used in med-chem to form crystals says my wife.

Title: Re:Firmware loading trouble
Post by: sm0nor on 28. March 2018, 09:39:41

Quote from: DF8OE on 28. March 2018, 09:03:47
I recommend RMA-223-UV. It is no-clean and I never have had any problems.

But too late for you - the only solution will be "cleaning"...

vy 73
Andreas



Good to know that perhaps IPA is not the problem. I will get another flux...

It is fun learn! :-)

Not discouraged.... :-)

/Ulf

Title: Re:Firmware loading trouble
Post by: SP9BSL on 28. March 2018, 10:11:28

Quote from: sm0nor on 28. March 2018, 09:37:21
I use a flux branded by Vellemann. But I perhaps should look for a proffesional brand.


According to my wife who is a chemist in med-chem says that the salt is formed from the metal ions in the IC legs reacting with something in the flux. IPA acts as a solvent helping to form the crystals. I don't know the details, but all kinds of solvents are used in med-chem to form crystals says my wife.



I would not argue with wife, anyone's wife :) Especially chemist :)
If this flux is so aggresive that dissolves a chip legs at such degree - better not use it, buy something like the one mentioned by Andreas.

Title: Re:Firmware loading trouble
Post by: sm0nor on 29. March 2018, 06:16:56

Quote from: SP9BSL on 28. March 2018, 10:11:28
Quote from: sm0nor on 28. March 2018, 09:37:21
I use a flux branded by Vellemann. But I perhaps should look for a proffesional brand.


According to my wife who is a chemist in med-chem says that the salt is formed from the metal ions in the IC legs reacting with something in the flux. IPA acts as a solvent helping to form the crystals. I don't know the details, but all kinds of solvents are used in med-chem to form crystals says my wife.



I would not argue with wife, anyone's wife :) Especially chemist :)
If this flux is so aggresive that dissolves a chip legs at such degree - better not use it, buy something like the one mentioned by Andreas.


Ha, Ha! :)

Title: Re:Firmware loading trouble
Post by: sm0nor on 29. March 2018, 06:24:54

This is the stuff I used, sold here in a chain of hobby-stores - not proffesional electronics.

It contains ammonium and zinc chloride solved in water - salts! "Real" flux should contain rosin solved in IPA. So, you are right, Slawek, IPA is not a problem. Nor where there any chemical reaction involved. The flux I used left its salt when the water vaporized. And these salts are most likely not solvable in alcohols - but in water! I still have som hopes for a water bath which I will try with today.

Mystery solved!


/Ulf

Title: Re:Firmware loading trouble
Post by: DF8OE on 29. March 2018, 07:20:19

This one is absolutely unsuitable for electronics and SMD. I hope your PCB can be rescued...

Good luck!

vy 73
Andreas

Title: Re:Firmware loading trouble
Post by: peter_77 on 29. March 2018, 07:23:22

This is used for mounting rain gutters or soldering your heating pipes in the house with heavy duty irons but never ever for electronics.


Title: Re:Firmware loading trouble
Post by: AC9QP on 29. March 2018, 20:42:10

I used the MGChemical 8341 flux. Cleans up nice, with IPA and water. Good and tacky so it stays where you put it and doesn't turn to goo when using RoHS-temp irons. You can get it at Amazon or any of the big parts distributors (Digikey, Mouser, Newark, Arrow, etc.).

https://www.mgchemicals.com/products/solder-and-accessories/fluxes/no-clean-flux-paste-8341

Anything with salts in it will ruin your day with fine-pitch SMD work.

Title: Re:Firmware loading trouble
Post by: peter_77 on 29. March 2018, 21:14:23

Or the classical Amtech
https://www.amazon.de/nc-559-asm-anti-wet-no-clean-Amtech-Solder/dp/0284955884/ref=sr_1_4?ie=UTF8&qid=1522357688&sr=8-4&keywords=amtech+flux (https://www.amazon.de/nc-559-asm-anti-wet-no-clean-Amtech-Solder/dp/0284955884/ref=sr_1_4?ie=UTF8&qid=1522357688&sr=8-4&keywords=amtech+flux)
But you only need that for the STM32, WM encoder, and SI oscillator
Watch Andreas https://www.youtube.com/watch?v=6wA8F7sm8VI (https://www.youtube.com/watch?v=6wA8F7sm8VI)
But never ever for the standard capacitors or resistands and other semiconductors on the board !
Here the iron and simple solder is way enough.
For cleaning an old tooth brush and IPA is always your friend.

Title: Re:Firmware loading trouble
Post by: AC9QP on 29. March 2018, 22:01:50

Second on the toothbrush. Also get a cheap spray bottle for IPA and for DI water (distilled or reverse osmosis works fine). I usually do three steps, spray IPA, scrub with toothbrush, spray IPA until dripping, spray water until dripping, shake off. I'd be careful using an ultrasonic cleaner as we have 32kHz crystals which can be cracked by the ultrasonic bath.

Title: Re:Firmware loading trouble
Post by: sm0nor on 30. March 2018, 08:01:54

Quote from: peter_77 on 29. March 2018, 07:23:22
This is used for mounting rain gutters or soldering your heating pipes in the house with heavy duty irons but never ever for electronics.




I'm trying not to feel embarrassed :)

Ulf

Title: Re:Firmware loading trouble
Post by: DF8OE on 30. March 2018, 08:09:56

You didn't know that before - so "shit happens". Now its time to rescue the PCB. I think the salts can be best removed by water (look at the post of AC9QP). Using a ultrasonic cleaner will help a lot. It is easy to remove the 32kc crystal before you do so.

vy 73
Andreas

Title: Re:Firmware loading trouble
Post by: sm0nor on 30. March 2018, 08:13:00

I'm having success with the cleaning. I'm only using distilled water and a toothbrush because the darn salts from the bad fluss is not solvable in alcohols such as IPA. But I have to repeat brushing and rinsing and drying several times because the residue is really sticky, but now the board starts to look really nice again.

I'm drying with pressurized air in a home made drying-tunnel made from a an old PA blower and a 3 inch tube.


This is actually kind of fun.... :)

/Ulf

Title: Re:Firmware loading trouble
Post by: sm0nor on 30. March 2018, 08:41:46

Quote from: peter_77 on 29. March 2018, 21:14:23
Or the classical Amtech
https://www.amazon.de/nc-559-asm-anti-wet-no-clean-Amtech-Solder/dp/0284955884/ref=sr_1_4?ie=UTF8&qid=1522357688&sr=8-4&keywords=amtech+flux (https://www.amazon.de/nc-559-asm-anti-wet-no-clean-Amtech-Solder/dp/0284955884/ref=sr_1_4?ie=UTF8&qid=1522357688&sr=8-4&keywords=amtech+flux)
But you only need that for the STM32, WM encoder, and SI oscillator
Watch Andreas https://www.youtube.com/watch?v=6wA8F7sm8VI (https://www.youtube.com/watch?v=6wA8F7sm8VI)
But never ever for the standard capacitors or resistands and other semoconductors on the board. Here the iron and simple solder is way enough.
For cleaning an old tooth brush and IPA is always your friend.



Great tip in the video! I will try that with the new MCU scheduled to arrive at my doorstep after the Easter weekend.

/Ulf

Title: Re:Firmware loading trouble
Post by: DF8OE on 30. March 2018, 09:42:54

Regarding cleaning a hint:

i have had repaired ~5000 laptops during the last 15 years (I am self employed technician). If there was fluid on the PCB like milk, coke, coffee e.g. I cleaned it with water, first drying with pressure air and (important!!!) second drying with sunlight. I put the PCBs for a day to sunlight and then there was NO more water on it.

vy 73
Andreas

Title: Re:Firmware loading trouble
Post by: sm0nor on 03. April 2018, 19:21:02

Everything is a go now! A week of brushing, rinsing and drying over and over. New MCU in place. All systems go :-). Display is stable and all button pushes result in expected action on the display.

Thanks for all support in this very educational ordeal :-)

Over and out from this thread!

/Ulf

Title: Re:Firmware loading trouble
Post by: DF8OE on 04. April 2018, 04:31:04

:D

Nice to hear Ulf!

vy 73
Andreas


Diskussions- und Newsboard des DARC-Ortsverbandes I40 | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.