DIY Electronics Message Board
Register  |   |   |  Latest Topics
 
 
 


Reply
  Author   Comment  
Austin_george

Registered:
Posts: 3
Reply with quote  #1 
Hi All,

I have recently purchased a K150 and after quite a few headaches, have managed to update the firmware on my PIC16F628A to P18A. (so that it is matched to the version of MicroBrn i am using "25EP")

Having done that, I have had trouble in programming very simple programs to any of my 18F2431 chips.

When I load the hex file (generated by MPLAB), i receive this error:

"ROM error at 0x0000

Good 0xEF63
Bad 0xFFFF"


I am able to read the configuration on the 18F2431, erase it, and i get no errors about being able to detect the chip. It is only the programming operation that gives me an error and doesnt complete correctly.

When i do read the chip back, I find that the program has not transmitted and is still blank.

Further to this, i have tried uploading a test hex file to a 16F84A with absolutely no problems whatsoever.

I'm really at a loss having trawled forums for the past few days and would really appreciate some help

If it matters, i am using a mac with windows 7 x64 running in bootcamp.

Also, i shall attach a copy of the hex file (generated by MPLAB) i am attempting to upload to the chip, below:

It's operation is to just set all of PORTB to output high.

 
Code:
:020000040000FA
:1000000063EF00F012000000060EF66E000EF76EB1
:10001000000EF86E00010900F550656F0900F550FB
:10002000666F03E1656701D03DD00900F550606F50
:100030000900F550616F0900F550626F0900090071
:10004000F550E96E0900F550EA6E09000900090053
:10005000F550636F0900F550646F09000900F6CF91
:1000600067F0F7CF68F0F8CF69F060C0F6FF61C0C5
:10007000F7FF62C0F8FF0001635302E1645307E039
:100080000900F550EE6E6307F8E26407F9D767C020
:10009000F6FF68C0F7FF69C0F8FF00016507000EB2
:1000A000665BBFD71200000EF36E00EE00F0030E89
:1000B00001D81200EA6002D0EE6AFCD7F350E96082
:1000C0001200EE6AFCD712EE00F022EE00F0F86AA1
:1000D000019C04EC00F077EC00F071EC00F0FBD731
:1000E0001200700ED36E9B6A936A81681200120030
:1000F000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF10
:020000040020DA
:080000000F0F0F0F0F0F0F0F80
:020000040030CA
:0800000000CF0F3F3C9D85007D
:00000001FF
 
Austin_george

Registered:
Posts: 3
Reply with quote  #2 
Hi again,

To help with analysis, I've just attempted to replicate the error on my home windows desktop (running windows 7 x64), and it is repeatable, the exact same error appears when attempting to program the 18F2431.

If anyone has come across any similar problems then I'd really like to hear from you.

Again, Kind Regards,
Austin
Austin_george

Registered:
Posts: 3
Reply with quote  #3 
Okay, so, as I hate it when people don't post solutions to their problems on forums, I'm following this up.

The chip requires Vdd to be connected to the ADC ref+ pin when programming. So a wire connecting pin 20 and pin 7 of the 18F2431 is all that was required.

Who'd have thought that googling the PIC model and the error would provide a link explaining just that. 

I think i'm having one of those days/weeks!

http://diykit.websitetoolbox.com/post/K149E-programming-18F2431-problem-2974472
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.

Thank you for visiting.