Can I use 18F4620?
Can I use 18F4620?
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
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
Re: Can I use 18F4620?
yes it should work with the 18f4620.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
do you have an error while you compile for the 18f4525 ?
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
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
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
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
mhh no i don't think so, for me it's an bug.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" .... Did you experimented problems with hardware adaptation between PIC and SD Card?
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.)
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....
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....