08 January 2009, 06:59 | #1 |
A-Collector, repairments
|
minimig buiding (was:howto setup cfg bits for minimig´s PIC 18LF252?)
Is there abybody who already programmed PIC for minimig and can give me hints how to set cfg bits properly? trial and error method seems to be very time consumpting
I just need to burn tinybootloader into it Last edited by Chain; 09 January 2009 at 17:35. |
08 January 2009, 17:03 | #2 |
A-Collector, repairments
|
bump
|
09 January 2009, 07:08 | #3 |
A-Collector, repairments
|
nobody?
im sure there are few user which makes it |
09 January 2009, 11:46 | #4 |
Registered User
Join Date: Mar 2008
Location: Poland
Posts: 159
|
Hi,
As the Watchdog Timer is disabled the WDTPS bits are irrelevant. It's most important to disable Low Voltage Programming. If Brown-out Reset is enabled the VBOR should be set to 2.7V. Caution: in the picture below selecting an option clears the selected bit! All protection bits should be unprogrammed ('1'). The ID bytes don't matter. Are you building a Minimig for yourself? Cheers! Last edited by yaqube; 09 January 2009 at 14:43. |
09 January 2009, 12:25 | #5 |
A-Collector, repairments
|
thanks for that!!
yes ive build it, now it just need to push teh pic on a socket hope it will works (leds are working, and all voltages are in boundaries, no hot parts spotted) |
09 January 2009, 13:50 | #6 |
A-Collector, repairments
|
ive set it as on this screenshot, still pc tinybld cant see the pic
http://chain.3dgrafika.cz/temp/bits.gif |
09 January 2009, 14:30 | #7 |
Registered User
Join Date: Mar 2008
Location: Poland
Posts: 159
|
My mistake, the Low Voltage Programming must be DISABLED as it prevents the use of the RB5 pin as the general purpose I/O. Nevertheless you should be able to boot the FPGA with such configuration.
I can see you have enabled Stack Overflow Reset which should be disabled but it shouldn't be a reason why Tinybld can't see the PIC. Immediately after reset or power-up the bootloader inside the PIC expects to receive a token from the Tinybld. If it doesn't happen in a given time window (a second or so) the bootloader jumps to the programmed code. The best way is to press and hold the PGM RESET button then click CheckPIC or Write Flash in the Tinybld and then release the PGM RESET button. Make sure you have a jumper in MCU position on your Minimig board. Last edited by yaqube; 09 January 2009 at 14:40. |
09 January 2009, 15:27 | #8 |
A-Collector, repairments
|
Connected to \\.\COM1 at 115200
Searching for PIC ... Found:18F 252o/452o but tinybld crashes while flashing the minimig core hex file Last edited by Chain; 09 January 2009 at 15:37. |
09 January 2009, 15:53 | #9 |
A-Collector, repairments
|
now ive tried older pc exe (tinybld) 197 instead of 198 and
HOLY COW! Connected to \\.\COM1 at 115200 HEX: 256 days old, INHX8M,18Fcode, total=14916 bytes. Searching for PIC ... Found:18F 252o/452o WRITE OK at 15:52, time:7.359 sec now green led is flashing! |
09 January 2009, 15:59 | #10 |
Registered User
Join Date: Mar 2008
Location: Poland
Posts: 159
|
The number of flashes depends on the error condition. You must have an SD/MMC card formatted using FAT16 filesystem and have minimig1.bin file in the root directory.
|
09 January 2009, 16:13 | #11 |
A-Collector, repairments
|
monitor says out of range, and i have jumper set to 31 khz
Ive copied kick.rom and minimig1.bin to fat16 formatted sd card (1gig goodram) Last edited by Chain; 09 January 2009 at 16:31. |
09 January 2009, 16:22 | #12 |
Registered User
Join Date: Mar 2008
Location: Poland
Posts: 159
|
Probably you have used a PAL core which outputs 50 Hz vertical sync and your monitor is not capable of it. Try to use an NTSC core.
|
09 January 2009, 16:32 | #13 |
A-Collector, repairments
|
checked that with lcd which says 15.6khz,49.9hz, in both jumper positions
ive probably fucked up that spartan |
09 January 2009, 16:40 | #14 |
A-Collector, repairments
|
with ntsc core its 15.6khz,59,4hz, always
need a new pcb and will start again |
09 January 2009, 16:47 | #15 |
A-Collector, repairments
|
anynone knows if some boards from nusim ltd still left for sale? |
09 January 2009, 16:55 | #16 |
Registered User
Join Date: Mar 2008
Location: Poland
Posts: 159
|
Don't give up. It's hard to destroy this beast. Remove the 15kHz jumper and measure the voltage at this pin then tell us what it is. It's probably shorted to ground.
|
09 January 2009, 17:16 | #17 |
A-Collector, repairments
|
fond one joint around that pin which leads on scan rate jumper
now it make some color stripes and then it stops at blue screen Last edited by Chain; 09 January 2009 at 17:37. |
09 January 2009, 17:20 | #18 |
Registered User
Join Date: Mar 2008
Location: Poland
Posts: 159
|
What version of the PIC firmware and the FPGA core file are you using?
|
09 January 2009, 17:35 | #19 |
A-Collector, repairments
|
im back to original one: minimig1_build_27_04_2008
|
09 January 2009, 17:53 | #20 |
Registered User
Join Date: Mar 2008
Location: Poland
Posts: 159
|
That one has a built-in memory test but I'm not familiar with it. I hope you have also reflashed the PIC to an appropriate firmware version because they are not interchangeable.
Besides your problems might be caused by other solder joints, it's very common. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
wtb. programmed pic chip for minimig | webhead | MarketPlace | 0 | 04 August 2009 19:40 |
MKick Howto? | maxlock | support.Other | 2 | 12 June 2008 19:01 |
Emulators - Registry / .CFG / .INI | NLS | Retrogaming General Discussion | 4 | 15 January 2008 11:08 |
best cfg for aga games | newge | support.WinUAE | 1 | 26 May 2002 13:05 |
|
|