pom
Joined: 25 Nov 2004 Posts: 30 Location: Germany
|
Programming the 18LF2620 |
Posted: Tue Mar 28, 2006 2:06 am |
|
|
Hello,
I want the 18LF2620 to get started. I have already worked with 18F458 and 18F258. I am using the bootloader, which PICC has in its package. Now I changed the used device to 18F2620 (include "18F2620.h") und tried to compile, but there is an error:
The bootloader includes "loader.c". In this file there is the command
Code: |
erase_program_eeprom(addr)
|
which works well with the other PICs but not with 18F2620. I deleted that line and compilation is successful. But programming the PIC without (erase_...) is not successful.
Can someone help me?
For testing just the program that I want to be executed on the PIC, I programmed it directly, without a bootloader. Isn't that correct? It doesn't work.
I also added some lines to the bootloader which shall switch a LED on. It doesn't work.
Can someone help me? Has someone a little test program, which works with the 18F2620? Or a working bootloader? Unfortunately I cannot upload my code, because it is not on this computer. I will upload it later. Maybe someone can help before that?
I would be very thankful for help. The PIC does not communicate with me and so I don't know where is the mistake.
Best wishes, pom
Oh, I forgot:
I do the programming of the bootloader with the MPLAP ICD2. The corresponding software says, that programming is successful. |
|