Can I use 18F4620?

General discussion forum - for all that doesn't fit in any other category.
Post Reply
letigre
Posts: 18
Joined: Sat Aug 23, 2008 3:09 am
Location: Bs As - Argentina

Can I use 18F4620?

Post by letigre »

Hi, I tryed use the 18F4620, but the compiler had errors.
I did changes in files brouse.c and fat.c:

#include <p18f4620.h>

but i get all ways the same error:

Executing: "C:\Archivos de programa\Microchip\MCC18\mpasm\mpasmwin.exe" /q /p18F4620 "clearblock.asm" /l"clearblock.lst" /e"clearblock.err" /o"clearblock.o"
A language-plugin exception occurred and was logged.
BUILD FAILED: Sun Aug 31 10:44:53 2008

Can help me?? thanks

Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Can I use 18F4620?

Post by Jeff »

letigre wrote:Hi, I tryed use the 18F4620, but the compiler had errors.
I did changes in files brouse.c and fat.c:

#include <p18f4620.h>

but i get all ways the same error:

Executing: "C:\Archivos de programa\Microchip\MCC18\mpasm\mpasmwin.exe" /q /p18F4620 "clearblock.asm" /l"clearblock.lst" /e"clearblock.err" /o"clearblock.o"
A language-plugin exception occurred and was logged.
BUILD FAILED: Sun Aug 31 10:44:53 2008

Can help me?? thanks
yes it should work with the 18f4620.
do you have an error while you compile for the 18f4525 ?

letigre
Posts: 18
Joined: Sat Aug 23, 2008 3:09 am
Location: Bs As - Argentina

Post by letigre »

No, the compilation for 18f4525 it´s OK.
I copy the compiler report for 18F4525


Clean: Deleting intermediary and output files.
Clean: Deleted file "D:\HxC_PIC\main.o".
Clean: Deleted file "D:\HxC_PIC\lcd.o".
Clean: Deleted file "D:\HxC_PIC\utils.o".
Clean: Deleted file "D:\HxC_PIC\hardware.o".
Clean: Deleted file "D:\HxC_PIC\sdcard_lba.o".
Clean: Deleted file "D:\HxC_PIC\clearblock.o".
Clean: Deleted file "D:\HxC_PIC\fastspi.o".
Clean: Deleted file "D:\HxC_PIC\fast_int_handler.o".
Clean: Deleted file "D:\HxC_PIC\fat.o".
Clean: Deleted file "D:\HxC_PIC\browse.o".
Clean: Deleted file "D:\HxC_PIC\hfe_file.o".
Clean: Deleted file "D:\HxC_PIC\ihm.o".
Clean: Deleted file "D:\HxC_PIC\floppyemulation.o".
Clean: Deleted file "D:\HxC_PIC\clearblock.lst".
Clean: Deleted file "D:\HxC_PIC\fastspi.lst".
Clean: Deleted file "D:\HxC_PIC\fast_int_handler.lst".
Clean: Deleted file "D:\HxC_PIC\PIC_HXC_SEBAST.cof".
Clean: Deleted file "D:\HxC_PIC\PIC_HXC_SEBAST.cod".
Clean: Deleted file "D:\HxC_PIC\PIC_HXC_SEBAST.hex".
Clean: Deleted file "D:\HxC_PIC\PIC_HXC_SEBAST.lst".
Clean: Deleted file "D:\HxC_PIC\PIC_HXC_SEBAST.map".
Clean: Deleted file "D:\HxC_PIC\PIC_HXC_SEBAST.mcs".
Clean: Done.
Executing: "C:\Archivos de programa\Microchip\MCC18\bin\mcc18.exe" -p=18F4525 "main.c" -fo="main.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\Archivos de programa\Microchip\MCC18\bin\mcc18.exe" -p=18F4525 "lcd.c" -fo="lcd.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\Archivos de programa\Microchip\MCC18\bin\mcc18.exe" -p=18F4525 "utils.c" -fo="utils.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\Archivos de programa\Microchip\MCC18\bin\mcc18.exe" -p=18F4525 "hardware.c" -fo="hardware.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\Archivos de programa\Microchip\MCC18\bin\mcc18.exe" -p=18F4525 "sdcard_lba.c" -fo="sdcard_lba.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\Archivos de programa\Microchip\MCC18\mpasm\mpasmwin.exe" /q /p18F4525 "clearblock.asm" /l"clearblock.lst" /e"clearblock.err" /o"clearblock.o"
Executing: "C:\Archivos de programa\Microchip\MCC18\mpasm\mpasmwin.exe" /q /p18F4525 "fastspi.asm" /l"fastspi.lst" /e"fastspi.err" /o"fastspi.o"
Executing: "C:\Archivos de programa\Microchip\MCC18\mpasm\mpasmwin.exe" /q /p18F4525 "fast_int_handler.asm" /l"fast_int_handler.lst" /e"fast_int_handler.err" /o"fast_int_handler.o"
Executing: "C:\Archivos de programa\Microchip\MCC18\bin\mcc18.exe" -p=18F4525 "fat32\fat.c" -fo="fat.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\Archivos de programa\Microchip\MCC18\bin\mcc18.exe" -p=18F4525 "fat32\browse.c" -fo="browse.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\Archivos de programa\Microchip\MCC18\bin\mcc18.exe" -p=18F4525 "hfe_file.c" -fo="hfe_file.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\Archivos de programa\Microchip\MCC18\bin\mcc18.exe" -p=18F4525 "ihm.c" -fo="ihm.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\Archivos de programa\Microchip\MCC18\bin\mcc18.exe" -p=18F4525 "floppyemulation.c" -fo="floppyemulation.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\Archivos de programa\Microchip\MCC18\bin\mplink.exe" /l"C:\Archivos de programa\Microchip\MCC18\lib" -L"C:\MCC18\lib" "D:\HxC_PIC\18f4525.lkr" "D:\HxC_PIC\main.o" "D:\HxC_PIC\lcd.o" "D:\HxC_PIC\utils.o" "D:\HxC_PIC\hardware.o" "D:\HxC_PIC\sdcard_lba.o" "D:\HxC_PIC\clearblock.o" "D:\HxC_PIC\fastspi.o" "D:\HxC_PIC\fast_int_handler.o" "D:\HxC_PIC\fat.o" "D:\HxC_PIC\browse.o" "D:\HxC_PIC\hfe_file.o" "D:\HxC_PIC\ihm.o" "D:\HxC_PIC\floppyemulation.o" /m"PIC_HXC_SEBAST.map" /o"PIC_HXC_SEBAST.cof"
MPLINK 4.16, Linker
Copyright (c) 2008 Microchip Technology Inc.
Errors : 0

MP2COD 4.16, COFF to COD File Converter
Copyright (c) 2008 Microchip Technology Inc.
Errors : 0

MP2HEX 4.16, COFF to HEX File Converter
Copyright (c) 2008 Microchip Technology Inc.
Errors : 0

Loaded D:\HxC_PIC\PIC_HXC_SEBAST.cof.
BUILD SUCCEEDED: Sun Aug 31 16:08:08 2008


Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

ok

here i can switch to the 16f4620 with the Project wizard.
after this, the only file to modify is 18f4525.lkr (Linker script present in the project)
change the line "FILES p18f4525.lib" by "FILES p18f4620.lib".

letigre
Posts: 18
Joined: Sat Aug 23, 2008 3:09 am
Location: Bs As - Argentina

Post by letigre »

Great !!!!!!!

Loaded D:\HxC_PIC\HxC_4620.cof.
BUILD SUCCEEDED: Sun Aug 31 19:05:16 2008


Thanks !!!! The next days i will have the PCB for the final test.... I´ll keep you in touch.

letigre
Posts: 18
Joined: Sat Aug 23, 2008 3:09 am
Location: Bs As - Argentina

Post by letigre »

Hi Jeff, thank you for your cooperation.
I made the floppy emulator, I have one unit !!! but I hvae some problems about SD card reading.

What kind of FAT must to have de memory card? I have got some results with FAT16, it is OK??

But I inserted SD card 1Mb, FAT 16 with two files:
1disk.hfe
1disk.mfm

The displays says "Choose a file", but the name of files are wrong in the display. If i pressed the butom says "bad file! ".

With FAT32 the unit have problems for reading card.

Thanks

Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

No, the format must be in FAT32. FAT16 is not supported.
the device wait an hfe file (mfm file not supported).
What is the size of your sdcard ?

letigre
Posts: 18
Joined: Sat Aug 23, 2008 3:09 am
Location: Bs As - Argentina

Post by letigre »

I have one of 1Gb and other of 512Mb (microSD with adapter).

letigre
Posts: 18
Joined: Sat Aug 23, 2008 3:09 am
Location: Bs As - Argentina

Post by letigre »

With FAT32 the display shows:

RootClus = 00000
lusShift = 00000

Did you experimented this problem?

Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

letigre wrote:I have one of 1Gb and other of 512Mb (microSD with adapter).
ok, so what is your problem when you use fat32 sdcard ?

letigre
Posts: 18
Joined: Sat Aug 23, 2008 3:09 am
Location: Bs As - Argentina

Post by letigre »

And the led is blinking all time !!

Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

do you have put one or more hfe file on the root ?

letigre
Posts: 18
Joined: Sat Aug 23, 2008 3:09 am
Location: Bs As - Argentina

Post by letigre »

yes, I have four hfe files in the root dir.

I´m thinking that the harwdare have some problem. Because after I removed the card the displays shows the rigth name of the file and the messaje "choose file" :shock: .... Did you experimented problems with hardware adaptation between PIC and SD Card?

Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

letigre wrote:yes, I have four hfe files in the root dir.

I´m thinking that the harwdare have some problem. Because after I removed the card the displays shows the rigth name of the file and the messaje "choose file" :shock: .... Did you experimented problems with hardware adaptation between PIC and SD Card?
mhh no i don't think so, for me it's an bug.

i corrected some of them 1 month ago. Can you try this version ? :
https://hxc2001.com/floppy_drive_emulat ... _PIC_b.zip

If this one doesn't work, i am interrested in a dump of your sdcard.
(you can make an disk image of our sdcard with winhex: Tools->Disk Tools->Clone Disk then select the physical sdcard drive.)

letigre
Posts: 18
Joined: Sat Aug 23, 2008 3:09 am
Location: Bs As - Argentina

Post by letigre »

Thanks for the new version.
:)

After insert the card (both cards), the displays saids "Choose a file", it happens very quickly. But, i can´t select file, no names is showed.

You are rigth, the hardware looks good, what do you think? Do you need a dump file of my sdcard?
The memory card contains only the hfe files, nothing more....

Thanks for the cooperation jeff....

Post Reply