Hi,
I have been able to verify that the Plus 32 board is powering up correctly, and I can see the signals coming from a vixen test pattern though to pin 2 on the 65LBC179 over the RS485 adapter via my laptop; so far, so good. When I programmed the 18F4520 PIC inboard using the PICkit 3, I was able to find the .hex file, and things seemed to program up properly, and afterward on powerup I now get a multistep blinking status light, but when running a simple channels 1 - 4 sequence, NOTHING comes from the outputs - whether I use a scope to check, or plug in the SSR's!
So, a mistake has happened, but not sure what. It could be that a 4K .hex file isn't large enough; Do I need to convert the assembler file first to a .hex file, or did the the plus 32 MPLAB have an already programmed one (4K seems awful compact!)?
Also, instructions for a MPLAB 8 are antiquated by the MPLAB 10. I looked at the Microchip tutorial that explains the differences, and I seem to be converting the instructions correctly to program up the 4520.. and the BOM also seems to indicate that this device is fine in the Plus 32 board.
Any thoughts?
Thanks in advance,
Mike
If you have a .HEX file, you can just use the PICKit software to program the device.
If you have a source file, the steps are compile, link, upload resulting HEX file. Source contains a bunch of files and requires the MPlabs software to do these steps.
If you manged to program a source file directly into the PIC, then that is NOT going to work at all.
Get the source for the Simple 32 here: http://renard-plus.com/files/SR_32%20Combo%20MPLAB%20Project%2007062012.zip
CaptKirk wrote:If you have a .HEX file, you can just use the PICKit software to program the device.If you have a source file, the steps are compile, link, upload resulting HEX file. Source contains a bunch of files and requires the MPlabs software to do these steps.
If you manged to program a source file directly into the PIC, then that is NOT going to work at all.
Get the source for the Simple 32 here: http://renard-plus.com/files/SR_32%20Combo%20MPLAB%20Project%2007062012.zip
Thanks for the response. No, the MPLAB X would'nt let me put anything in that wasn't a .hex file.. hence me wondering if I got a "wrong" file for my processor, which is a Microchip PIC 18F4520. In looking at the BOM for the plus 32, it recommended several PIC's.. but I chose the one that had the Mouser P/N, figuring the author of the BOM actually tested using that one.
I noticed that the link you sent me, when downloaded, doesn't have the .hex file, but all the other ones shown in the previous one I downloaded are there. :munch: Does this mean I have to try and convert the .asm file into the .hex?
While I have had more than 45 years in electronic hardware design and experience, and can download proficiently enough to PIC's ASIC's and FPGA's, software and firmware development via the PC are still a closed book (heck of a way to have to break into it..).. :dry:
Thanks for all the ideas, and I have tried to read the stickies to get ideas where the problem might be..
Mike
Re: Not sure what.. Still need holp after trying to integrate .ams and .inc into hex.
OK, From What I have read, and don't yet understand WHY, do I have to use both the .asm and the .inc files to make the .hex file first.. THEN program the resultant into the PIC? BTW, Just Tried that as well, it didn't work, either. Still no activity light on the RS485, and the channels still don't fire, either..
May have to forgo my renard boards this christmas.. if no one speaks up.. Help!
If you have a hex file then use the PICKIT sw as CK mentioned and not MPLAB.
