Welcome, Guest. Please login or register.

Author Topic: The MiniMig PIC update issue thread  (Read 5976 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline odin22Topic starter

  • Newbie
  • *
  • Join Date: Sep 2008
  • Posts: 19
    • Show all replies
The MiniMig PIC update issue thread
« on: October 20, 2008, 07:07:04 PM »
I'm just creating this thread to gather everyone who are having the same issues with updating their PIC in one place in order to gain a better understanding of the problem and perhaps find a solution.

So please - everyone who are experiencing the problems I am about to describe, let yourself be heard.

So here goes:
As a few of you might have read on this board, I have yet to have any luck updating my ACube-built MiniMig v1.1 with the new firmware from Jakub and Dennis - despite using a PIC already containing the TinyBootloader code.

Just this morning I received my second pre-programmed PIC from ACube and much to my dismay, I am experiencing the exact same problems as with the first one. Needless to say, after months of waiting to get this damn thing to work, I didn't know whether to burst into tears or smash the board against the wall, swearing to never indulge myself in an Amiga-related hobby project ever again. I counted to ten and decided to do neither, but instead give it one last chance and see if the community can help me out.

Finding a couple of other posts regarding the same issue neatly sprinkled over the many MiniMig threads on the site (none of them apparantly resolved) gives me meager hope that at least I am not the only one.

To sum up my trials and tribulations, I have followed every description to the letter.

- No jumpers on the Spare I/O or on the row behind the joystick ports.
- Jumper set to MCU and not FPGA.
- PIC seated perfectly (and the right way around)
- No peripherals are connected to the MiniMig (neither mouse nor keyboard)
- Null-Modem cable connected to the serial port of my PC and to the serial port of the MiniMig board.

As I power up the MiniMig, the drive light starts to blink when there is no SD card in the reader, and glows constantly if one is present (I have tried both). Then I start the TinyBootloader app on my PC, make sure it is set to the correct COM port (there is only one) as well as the correct baud rate (115200).
I press the CheckPIC button in the TinyBootloader app and immediately after I press the PGM RESET hardware button on the MiniMig.
Then I get this:

Connected to \\.\COM1 at 115200
  Searching for PIC ...
  pic sending unknown data:  "K" <>  0h=
Check baudrate & Start Write while PIC is not sending serial data (e.g. in reset)
  ERROR!

The "0h=" part of the string varies depending on how many milliseconds I wait between button presses.

To sum up my experience, I have tried:

- 2 different pre-programmed PICs
- 3 different Null-Modem cables (I even hand-soldered one myself to make sure the wiring was correct), all three tested perfectly as Null-Modem in a cable tester borrowed from the IT department at work.
- 3 different computers (all running Windows XP and using TinyBootLoader, v1.9.7)

In addition I have tried with and without an SD card, changing the jumper from 15KHz to 31KHz, and trying it with and without an attached monitor (not that any of those things would make any sense, but I was desperate).

Using the TinyBootloader software I have tried several hundred times with a various timing, prayers, chanting and incantations, but nothing works. I am still treated to the same array of error messages every single time.

The only thing I have left to assume is that I have a broken board. It seems to work just fine while playing the few games it supported properly out of the box, but obviously there is something wrong with it, since I am getting nothing but garbage in return when I try to communicate with the PIC.

I am prepared to handsomely reward anyone able to come up with a solution, because with the poor compatibility achievable without the recent microcontroller update, the board is all but useless to me.

Kind regards,

- Anders
 

Offline odin22Topic starter

  • Newbie
  • *
  • Join Date: Sep 2008
  • Posts: 19
    • Show all replies
Re: The MiniMig PIC update issue thread
« Reply #1 on: October 20, 2008, 10:33:54 PM »
Thank you all for your replies.

@yaqube: I have already tried that trick, but for good measure, I gave it a dozen or so more tries just now doing what you suggested. No luck. Same error as always.

@Andeda: Yeah, that is exactly what I am afraid of. That my hardware is just broken leaving me with no options and approx. £160 worth of paperweight.

@alexh: Unfortunately no. Tried that too. The single hardware engineer I know has never had any experience with PICs. Only Atmels - which are the only programmable ICs he has kits for.

Any additional suggestions? Anything in the description of my preparation of the board strike you as odd? Did I leave something out? I also never really got a clear idea from any of the update tutorials whether to leave the SD card in or out.

Kind regards,

- Anders
 

Offline odin22Topic starter

  • Newbie
  • *
  • Join Date: Sep 2008
  • Posts: 19
    • Show all replies
Re: The MiniMig PIC update issue thread
« Reply #2 on: October 20, 2008, 10:40:43 PM »
Quote

beller wrote:
It sure seems like the Com: port hardware on the PC is the fault.  You indicate that you set the tinybootloader to 115200.  Have you gone into the Windows settings and pushed the hardware up to 115200 as well?


Thanks a lot for that tidbit. Checking the ports in my settings revealed the COM ports were set to 9600 baud. However, after setting them to 115200 I get the exact same results. Both on my workstation and the missus' PC.

Man. I was really getting myself worked up there for a second.

But could it be something related to the interrupts? In modern PCs, IRQs can be shared by many devices at once. Could that have something to say?

Kind regards,

- Anders
 

Offline odin22Topic starter

  • Newbie
  • *
  • Join Date: Sep 2008
  • Posts: 19
    • Show all replies
Re: The MiniMig PIC update issue thread
« Reply #3 on: October 21, 2008, 10:01:09 PM »
Quote

yaqube wrote:
If we assume that at least one of the PIC's you have got is programmed with valid bootloader (I hope you have tried both with my suggestions) the serial connection might be faulty.


Hi Yaqube. Yeah, I tried both of them.

Quote
To verify this please remove the PIC from its socket, connect pin 17 and 18, power on the board without the PIC, run terminal program and check if you get remote echo of typed characters.


Ok, I might need some more info here. Do I connect the socket holes on the board where pin 17 and 18 were supposed to go? And with what - a paperclip or piece of wire? Won't that short circuit it?
 

Offline odin22Topic starter

  • Newbie
  • *
  • Join Date: Sep 2008
  • Posts: 19
    • Show all replies
Re: The MiniMig PIC update issue thread
« Reply #4 on: October 21, 2008, 10:10:34 PM »
Quote
Maybe the RS232 IC is broken or not correct soldered, or one of the resistors are physicaly broken ore not correct soldered.


That may very well be. There doesn't appear to be anything wrong with the soldering though. But of course that doesn't mean the IC or one of the resisters can't be faulty.

About using Hyperterminal to connect to the board - what is the procedure there and what string should I expect to get returned if succesful?

@Beller: No, actually I didn't reboot either of the systems after changing the baud rate at first. It struck me about thenty minutes after posting though, and unfortunately rebooting the systems didn't have an effect either.
 

Offline odin22Topic starter

  • Newbie
  • *
  • Join Date: Sep 2008
  • Posts: 19
    • Show all replies
Re: The MiniMig PIC update issue thread
« Reply #5 on: October 21, 2008, 10:30:07 PM »
Again, thanks for the massive rally to help out. You guys are fantastic. You really are. Rarily have I come across a forum as kind and open to newcomers as this.

To all of you who asked about my whereabouts in order to help: Thanks a bunch - I really appreciate the offers and will gladly pay for your trouble. I live in Denmark, and since Andeda has a programmer kit handy and lives "right around the corner" I'm inclined to seize that opportunity if the offer stands.

So how about it, Andeda? Would it be OK if I shipped it up to you? If it's not too much trouble, I'd actually like to send the board along with the PIC just to see if you are able to update it directly before taking the PIC programmer route. Then at least I will know whether my board is truly faulty or not (which would be good to know if I decide to send it back to ACube to fix within warranty afterwards).
 

Offline odin22Topic starter

  • Newbie
  • *
  • Join Date: Sep 2008
  • Posts: 19
    • Show all replies
Re: The MiniMig PIC update issue thread
« Reply #6 on: October 21, 2008, 10:36:37 PM »
Quote

Darrin wrote:
Have you tried screaming "UPDATE YOU USELESS *#&!ING PIECE OF %&$@!" at it?


I did, actually. Remember the chanting and incantations I mentioned? It was right after that. I even threatened it at gunpoint. A soldering gun, but a gun no less. It was loaded, and I had enough flux to circuit-bend it to hell and back.
 

Offline odin22Topic starter

  • Newbie
  • *
  • Join Date: Sep 2008
  • Posts: 19
    • Show all replies
Re: The MiniMig PIC update issue thread
« Reply #7 on: October 22, 2008, 01:52:42 PM »
Hi MiniMorph.

The programmer as well as it's low price are certainly intriguing, but it seems to me that this is only half the solution. Since it has no socket on the actual programmer for connecting a PIC, I assume you need an interface board with a compatible pinout for the programmer to communicate with it. Correct?

So where would I find that if I was to look into that solution for future updates?
 

Offline odin22Topic starter

  • Newbie
  • *
  • Join Date: Sep 2008
  • Posts: 19
    • Show all replies
Re: The MiniMig PIC update issue thread
« Reply #8 on: October 22, 2008, 02:45:23 PM »
Hi Anding.

Already tried that. I tried with 9600, 19200, and 57600 baud. No change in outcome.
 

Offline odin22Topic starter

  • Newbie
  • *
  • Join Date: Sep 2008
  • Posts: 19
    • Show all replies
Re: The MiniMig PIC update issue thread
« Reply #9 on: October 22, 2008, 04:15:09 PM »
Hey Yaqube.

The serial ports I'm using on all the PCs are onboard ones. No USB adapters.

I just tried Hyper Terminal with the mentioned settings, powered up the board, and got this:

"Ç▪"

I powered up and tried the PGM reset button a few times more, but it keeps returning the same value. I'm not sure what to make of it.
 

Offline odin22Topic starter

  • Newbie
  • *
  • Join Date: Sep 2008
  • Posts: 19
    • Show all replies
Re: The MiniMig PIC update issue thread
« Reply #10 on: October 22, 2008, 06:50:46 PM »
I checked the print on the crystal and it says "20.0C79" which I am fairly confident means that it should be running at 20Mhz. Printed next to the crystal on the board is "2X". Not sure what to make of that. The only crystal running at 4.43Mhz is the one next to the PGM Reset button and the SD slot. Next to it is printed "1X" on the board.

But if what you are saying is true about the PIC being in charge of the frequency at which the oscillator runs, it looks like I'm {bleep} outta luck.

Regarding the various baud rates, I have now tried everything between 2400 and 115200. All of them return various results in the HyperTerminal window. Some write out multiple lines of one or two characters. Others just write out a few characters. None of it legible text, though. It is all just strings of garbage. No boot text from Dennis.
I have tried both with and without an inserted SD card with a minimig1.bin file on it.

I am sending it off to Finland tomorrow to let Andeda have a look at it. If he finds the same issues as me, we can be pretty sure I just have a faulty board, and when it returns I will send it back to ACube to fix within warranty.
 

Offline odin22Topic starter

  • Newbie
  • *
  • Join Date: Sep 2008
  • Posts: 19
    • Show all replies
Re: The MiniMig PIC update issue thread
« Reply #11 on: November 01, 2008, 12:09:20 PM »
Just a slightly delayed update:

As mentioned, I sent off the board and PIC to Andeda who has been looking into it and (somewhat luckily) he found that it was not me who was going insane: The board is indeed broken. The problem exists somewhere between the RS232 interface and the PIC socket, and because of that he experienced the exact same problems I have been jammering on about. So there. Mystery solved.

Andeda has been kind enough to update the PIC via an external programmer (thanks! - oh, and also thanks to MiniMorph above for offering to send me some bits and pieces for a rudimentary DIY kit, but it looks like I won't be needing it). When the board comes back, I will contact ACube and have it shipped off to them for a fix or exchange.

Thanks to everyone in the thread for their tireless efforts.