Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

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.
 

Offline odin22Topic starter

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

  • Full Member
  • ***
  • Join Date: Feb 2008
  • Posts: 197
    • Show only replies by yaqube
Re: The MiniMig PIC update issue thread
« Reply #16 on: October 21, 2008, 10:33:46 PM »
Quote

odin22 wrote:

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?


Yes, you should connect socket holes for pin 17 and 18 together. I hope you know the order how the pin are numbered. Connect them with thin wire with removed insulation at both ends, it would be great if you could cover the ends with tin (I guess you have said you can solder). Avoid paper clip since it will destroy the socket.

That way you will be able to verify if the components on the Minimig board responsible for bi-directional serial communication are not broken.
 

Offline odin22Topic starter

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

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: May 2002
  • Posts: 4430
    • Show only replies by Darrin
Re: The MiniMig PIC update issue thread
« Reply #18 on: October 21, 2008, 10:42:44 PM »
Quote

odin22 wrote:
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.


This place is the best when it comes to asking for help, plus many of the developers hang out here too.
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 #19 on: October 22, 2008, 06:56:41 AM »
@odin22

Its ok, i just sent you a PM.
Amiga: A computer for the creative mind.

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

Offline MiniMorph

  • Newbie
  • *
  • Join Date: Dec 2007
  • Posts: 23
    • Show only replies by MiniMorph
    • http://www.minimorph.com
Re: The MiniMig PIC update issue thread
« Reply #20 on: October 22, 2008, 09:58:24 AM »
Hi there,

I guess this issue is resloved now.

For reference however you can get a very cheap PIC programmer and debugger from microchip now :-

Search for PG164120 on the microchip website.

I know you can get them in the UK for £17 and in the US for
$35.

http://www.microchipdirect.com/productsearch.aspx?Keywords=pg164120

I would not suggest you buying one just to update a PIC on the MiniMig but the option is there and it will allow development and programming on PIC Micros too!
Time is an Illusion lunch time doubly so!

FordP, from the Garden of England
 

Offline odin22Topic starter

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

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: May 2002
  • Posts: 4430
    • Show only replies by Darrin
Re: The MiniMig PIC update issue thread
« Reply #22 on: October 22, 2008, 02:00:10 PM »
Quote

odin22 wrote:
Hi MiniMorph.

The programmer as well as it's low price is 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?


For future updates, I'm hoping that Yaqube's PIC expansion board works out and that somebody puts it into production.  Then you can update your Minimig via a USB memory stick.
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 Anding

  • Newbie
  • *
  • Join Date: Nov 2004
  • Posts: 43
    • Show only replies by Anding
Re: The MiniMig PIC update issue thread
« Reply #23 on: October 22, 2008, 02:21:53 PM »
Quote

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.


Do you need to push the baud rate up so high?  I have a little experience with building embedded hardware and find there is always a trade off between coms speed and reliability, especially if a poor connection somewhere is exacerbating the problem.

Would you try and set both sides to 9600 and give it another go?
 

Offline odin22Topic starter

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

  • Full Member
  • ***
  • Join Date: Feb 2008
  • Posts: 197
    • Show only replies by yaqube
Re: The MiniMig PIC update issue thread
« Reply #25 on: October 22, 2008, 03:23:16 PM »
Windows settings of serial port baud rate does not matter, Tiny Bootloader app overrides these settings. Besides Tiny Bootloader programmed into the PIC works only with 115200 bps using 20 MHz crystal oscillator. Some (the cheapest) USB to RS232 converters are not reliable when working with 115200 bps speed.

Can you see in Hyper Terminal (set rate to 115200, 8N1, no flow control) any messages sent by Minimig after powering it up?
 

Offline odin22Topic starter

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

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: May 2002
  • Posts: 4430
    • Show only replies by Darrin
Re: The MiniMig PIC update issue thread
« Reply #27 on: October 22, 2008, 04:27:46 PM »
Quote

odin22 wrote:
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.


It an updated Commodore logo!  ;-)
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 yaqube

  • Full Member
  • ***
  • Join Date: Feb 2008
  • Posts: 197
    • Show only replies by yaqube
Re: The MiniMig PIC update issue thread
« Reply #28 on: October 22, 2008, 04:34:23 PM »
You should see the following message:

Minimig Controller
by Dennis van Weeren

Try to change the serial port speed in Hyper Terminal to 57600 or lower, it seems that your PIC is operating with different baud rate (although you should see more strange characters than only these two - while Minimig is booting up it sends a lot of characters on its serial port, had you put an SD-Card with minimig1.bin file?). Please also check what is written on the crystal oscillator next to the PIC socket. Is it 20 MHz?
 

Offline yaqube

  • Full Member
  • ***
  • Join Date: Feb 2008
  • Posts: 197
    • Show only replies by yaqube
Re: The MiniMig PIC update issue thread
« Reply #29 from previous page: October 22, 2008, 05:06:02 PM »
I have made a small experiment: set my serial port speed to 460800 and I get the "Ç" character as the first after reset. It means that the Minimig transmits 4 times slower than it should.

Maybe you have 4.43MHz crystal oscillator connected to the PIC or the 20MHz one is an overtone oscillator and in your Minimig it oscillate at its fundamantal frequency.

The PIC has programmable bits for oscillator configuration, if they are not programmed to HS mode the oscillator may not be able to operate at its rated frequency. These bits can only be programmed in external programmer.