Hello fellow enthusiasts,
I am stuck.. So, i built three TR24's in the past 2 weeks and was able to use my ICP01 v2 to load the un manipulated asm file which i downloaded from renard-plus.com.. I erased the chips, write and verify successfully.
I downloaded MPLAB software v6.6 and i am having issues.. Errors are thrown for lines 733-754 for the CONFIG... i did receive a few errors for TMR0(or TRM0) as undefined.. I performed a search and TMR0 had a few hits and they were commented out, removed comments and they were resolved.
Documentation gives a great foundation but the undocumented intricate modifications are stumping me
Any insight?
Thanks in Advance
A couple things - - did you mean v8.6? 6.6 would be really ancient (even 8.6 is a bit old but it's what I use). Are you sure you put in the right processor in both the selected device for MPLAB and also within the .asm file? Some RP boards can run different PICs so be sure the .asm file points to the right include file.
within the .asm file?
be sure the .asm file points to the right include file.
Sulrich wrote:be sure the .asm file points to the right include file.
Yes - it should have some pointer to the .inc file for that processor. I'm not super familiar with the RP code - the older "Simple" series used to have a header file (.h) file as well but I think they got rid of that.
This is confusing. The TMR0 (and related OPTION) registers are common to all PIC microcontrollers, down to the simplest PIC10 parts. If MPASM/MPLAB is having trouble with those registers, I would expect it to have trouble with almost every built-in register, to the point of having hundreds of errors spread throughout the file. Unless the OP is seeing warnings, rather than errors, in the output files.
BTW, do you mean PIC18F2450? There is no 18F4250 as far as I can tell.
So, its actually an 18F4520.. I downloaded the newest MPLAB X IDE.. but its not compatible with my pickit2. So i downloaded the 8.66 like "budude" has and it has support.
Layout story; i have an E682 and i plan to daisy chain my 3 renards off port 4-1.. So controller 1 will use start addr 0, controller 2 will use start addr 25, and number 3 will use start addr 49.
Heres what i do.. I extract the TR24 zip file from renard-plus.com..i edit the .asm with notepad for the start address of 25, save/close. I searched the asm directory on program files and found the 18F4520.INC, COPY and PASTE into the project directory. Open the MPLAB v8.66, click FILE > open > choose .asm
Set chip and family in MPLAB, set the pickit2 programmer in MPLAB.
When it opens, i looks like the text eiditor..
Choose "build all" , build failed... _DEBUG issue
Any other mods?
If you have a PICKit 2 then get the PICKit 2.xx software - it has a simple programmer for it - much easier to use than MPLAB. I believe you can load the .hex file and edit the EEPROM data down at the bottom of the utility and change the address.
However -- with that said - the Renards are self-addressing by default. If they have an address of '0' it means the first will use addresses 1-24, strip away those channels and feed what's left to the next controller. Since it thinks it's the first in line, it will do the same, eating 24 channels of data again - it doesn't "know" that it was really starting at '25' since the first stripped off the data.
Ok, i think i just fixed... I downloaded a pic18 software, and ran the mpasm.exe... No fancy interface, its the one in the pic programming manual.. Had to uncomment the tmr0 (or trm0) lines, about 4 of them, and they each assembled..
Thank you all for your support.. Now i need to upload them to the pic's and test them
Keep you posted
