Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline odin22Topic starter

  • Newbie
  • *
  • Join Date: Sep 2008
  • Posts: 19
    • Show only replies by odin22
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 yaqube

  • Full Member
  • ***
  • Join Date: Feb 2008
  • Posts: 197
    • Show only replies by yaqube
Re: The MiniMig PIC update issue thread
« Reply #1 on: October 20, 2008, 08:11:47 PM »
Try this:

Before you click "CheckPIC" or "Write Flash" button press and HOLD the "PGM RESET" switch. Then click the desired button and then release "PGM RESET" switch.

Please tell me if this works for you.
 

Offline Andeda

  • Hero Member
  • *****
  • Join Date: Jan 2006
  • Posts: 594
    • Show only replies by Andeda
Re: The MiniMig PIC update issue thread
« Reply #2 on: October 20, 2008, 08:27:24 PM »
i updated my pic yesterday and i did not touch the PGM reset at all.
first i did power on my minimig then Check pic and shortly after that write flash.
This worked fine and i did not have any problems at all.

My guess is that you have a hardware problem on your hands.
Amiga: A computer for the creative mind.

Sam440ep 667Mhz + OS4.1
Minimig (Home made)
A1200/030
A2000/030
A500 * 3
CD32
 

Offline alexh

  • Hero Member
  • *****
  • Join Date: Apr 2005
  • Posts: 3644
    • Show only replies by alexh
    • http://thalion.atari.org
Re: The MiniMig PIC update issue thread
« Reply #3 on: October 20, 2008, 09:14:13 PM »
Bummer, there must be something that works? No-one near by got a programmer you can borrow?
 

Offline beller

  • S.A.C.C.
  • Hero Member
  • *
  • Join Date: Dec 2004
  • Posts: 657
    • Show only replies by beller
Re: The MiniMig PIC update issue thread
« Reply #4 on: October 20, 2008, 09:55:37 PM »
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?

I had a few problems when I flashed until I reset the hardware and made sure it stayed at the proper baud.
 

Offline odin22Topic starter

  • Newbie
  • *
  • Join Date: Sep 2008
  • Posts: 19
    • Show only replies by odin22
Re: The MiniMig PIC update issue thread
« Reply #5 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 only replies by odin22
Re: The MiniMig PIC update issue thread
« Reply #6 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 yaqube

  • Full Member
  • ***
  • Join Date: Feb 2008
  • Posts: 197
    • Show only replies by yaqube
Re: The MiniMig PIC update issue thread
« Reply #7 on: October 20, 2008, 10:53:11 PM »
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.

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.
 

Offline beller

  • S.A.C.C.
  • Hero Member
  • *
  • Join Date: Dec 2004
  • Posts: 657
    • Show only replies by beller
Re: The MiniMig PIC update issue thread
« Reply #8 on: October 20, 2008, 11:59:01 PM »
After you reset the com: port to 115200 did you reboot?  You might need to do this to fully configure the port.


Hope this helps!  

Bob
 

Offline Darrin

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: May 2002
  • Posts: 4430
    • Show only replies by Darrin
Re: The MiniMig PIC update issue thread
« Reply #9 on: October 21, 2008, 01:23:27 AM »
Anders, where do you live?  I'm away in Brazil at the moment, but I'd be happy to let you mail one of your PICs to me and I could fit it to my Minimig and reflash it for you.  If I can reflash it then the Minimig board may be the problem, if I can't then it might be the PCs... or something you're (not) doing.

I'll be home in around 3 weeks.

Edit:  If it does turn out to be the board then I'm sure ACube will fix it/replace it.  Their service & support has been top-notch so far.

Out of interest, do your PCs have "real" serial ports or USB-Serial dongles?
A2000, A3000, 2 x A1200T, A1200, A4000Tower & Mediator, CD32, VIC-20, C64, C128, C128D, PET 8032, Minimig & ARM, C-One, FPGA Arcade... and AmigaOne X1000.
 

Offline Andeda

  • Hero Member
  • *****
  • Join Date: Jan 2006
  • Posts: 594
    • Show only replies by Andeda
Re: The MiniMig PIC update issue thread
« Reply #10 on: October 21, 2008, 09:21:59 AM »
@Odin22

Where do you live? i have a PIC programmer and a minimig at home, So if you send me the PIC i can try to help you.
I live in Finland.
Amiga: A computer for the creative mind.

Sam440ep 667Mhz + OS4.1
Minimig (Home made)
A1200/030
A2000/030
A500 * 3
CD32
 

Offline jensl

  • Newbie
  • *
  • Join Date: Oct 2007
  • Posts: 22
    • Show only replies by jensl
Re: The MiniMig PIC update issue thread
« Reply #11 on: October 21, 2008, 02:27:03 PM »
It looks like that you have already tried all what was possible.
So there must be something wrong with your IC2 or with the resistors. Maybe the RS232 IC is broken or not correct soldered, or one of the resistors are physicaly broken ore not correct soldered.

What happens, if you are using the Hyperterminal. Can you see the sytemmessage from Dennis firmwaredownload to the xilinx with the original PIC?

MfG
Jens

Where are you located ?

 

Offline odin22Topic starter

  • Newbie
  • *
  • Join Date: Sep 2008
  • Posts: 19
    • Show only replies by odin22
Re: The MiniMig PIC update issue thread
« Reply #12 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 only replies by odin22
Re: The MiniMig PIC update issue thread
« Reply #13 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 Darrin

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: May 2002
  • Posts: 4430
    • Show only replies by Darrin
Re: The MiniMig PIC update issue thread
« Reply #14 on: October 21, 2008, 10:16:54 PM »
Have you tried screaming "UPDATE YOU USELESS *#&!ING PIECE OF %&$@!" at it?
A2000, A3000, 2 x A1200T, A1200, A4000Tower & Mediator, CD32, VIC-20, C64, C128, C128D, PET 8032, Minimig & ARM, C-One, FPGA Arcade... and AmigaOne X1000.