MCUmall EPROM BIOS Chip Burner Forum
MCUmall EPROM BIOS Chip Burner Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 MCUmall Forums
 TOP USB Programmer
 Unable to load hex file using TopWin for TOP 2005
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

peacezim

India
2 Posts

Posted - 08/05/2009 :  13:36:29  Show Profile
Hello all,
I had a strange issue while loading the hex using TopWin Ver 5.67 for TOP2005 programmer, for the hex generated in MPLAB for PIC16F73.
I am using HiTech C compiler.

The actual hex generated was as below,
:040000008A11F22F40
:100FE4000630831603139F0083128501831685013F
:0C0FF40083120514FA2F83018A110028D3
:02400E00F93F78
:00000001FF


But when I tried to load this hex file through TopWin, it was showing as below,(only the first line is loaded)
0000: 8A 11 F2 2F FF FF FF FF FF FF FF FF FF FF FF FF .../............
0010: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
0020: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
0030: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
0040: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
0050: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
0060: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
0070: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
0080: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
0090: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................


I could never see anywhere in the buffer, the complete hex file loaded.It is only partially loaded. But I can see the sample 123.hex loads properly.
I donot know what is my hex format, generated by the HiTech C compiler(Please help me how to check it).
Since the hex is not properly loaded, the PIC controller doesnt work now.
Can somebody help me to load the hex file properly using the TopWin Ver 5.67? Also explain please how to set the output hex format in HiTech C

Reply #1

simeon

United Kingdom
79 Posts

Posted - 08/06/2009 :  05:51:17  Show Profile
update your topwin software

youll find the latest version on
www.top2048.com/gb/tops/topwin5.exe

think its 5.87 or greater now and many fixes for pic have been made

if is .hex file your export from hitech c must be an intel format hex file

try again lets see...

added edit:

i tried out loading a file by first selecting the chip type
then loaded a 1k file to the buffer and it works

machine toshiba equium laptop usb only type
p5b asus main machine
thinking of adding dual lpt pci card
both used for top and lpt via usb where i can

old p2 programming grumbling tank with xp sp3 for true serial and lpt

all machines bios set to enable bios plug and play aware o/s and lpt spollers services and drivers removed
legacy detection enabled

Edited by - simeon on 08/06/2009 06:04:32
Go to Top of Page
Reply #2

peacezim

India
2 Posts

Posted - 08/10/2009 :  10:26:53  Show Profile
I tried with version 5.86. But it also didnt work.

Another point I forgot to mention was, using the same version of the TopWin, I was able to load the sample hex file provided by the ventor "123.hex" properly.

"123.hex" is as follows

asdas:asdsad
asdasdsad:s::ad
:100000005A0102030405060708090A0B0C0D0E0FD2
:10001000101112131415161718191A1B1C1D1E1F78
:10002000202122232425262728292A2B2C2D2E2F78
:10003000303132333435363738393A3B3C3D3E3F78
:10004000404142434445464748494A4B4C4D4E4F78
:10005000505152535455565758595A5B5C5D5E5F78
:10006000606162636465666768696A6B6C6D6E6F78
:10007000707172737475767778797A7B7C7D7E7F78
:10008000808182838485868788898A8B8C8D8E8F78
:10009000909192939495969798999A9B9C9D9E9F78
:1000a000A0A1A2A3A4A5A6A7A8A9AAABACADAEAF78
:1000b000B0B1B2B3B4B5B6B7B8B9BABBBCBDBEBF78
:1000c000C0C1C2C3C4C5C6C7C8C9CACBCCCDCECF78
:1000d000D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDF78
:1000e000E0E1E2E3E4E5E6E7E8E9EAEBECEDEEEF78
:1000f000F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF78

and this was loaded as below,
0000: 5A 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F Z...............
0010: 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F ................
0020: 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F !"#$%&'()*+,-./
0030: 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 0123456789:;<=>?
0040: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F @ABCDEFGHIJKLMNO
0050: 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F PQRSTUVWXYZ[\]^_
0060: 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F `abcdefghijklmno
0070: 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F pqrstuvwxyz{|}~
0080: 80 81 82 83 84 85 86 87 88 89 8A 8B 8C 8D 8E 8F ................
0090: 90 91 92 93 94 95 96 97 98 99 9A 9B 9C 9D 9E 9F ................
00A0: A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE AF ................
00B0: B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF ................
00C0: C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF ................
00D0: D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA DB DC DD DE DF ................
00E0: E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 EA EB EC ED EE EF ................
00F0: F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 FA FB FC FD FE FF ................


But the same doesnt happen with the hex I created.
So I strongly feel that there is something wrong with by hex file.
Go to Top of Page
Reply #3

simeon

United Kingdom
79 Posts

Posted - 08/16/2009 :  05:17:31  Show Profile
You can ask the compiler to produce a binary image file if you add an extra option to the link stage. Try either of these options:
--output=+bin or --output=+binary
Version 8 compilers would use -BIN.
This will produce a binary image file with a .bin extension.


or you can use hextobin converter
to convert the file to the right type

a good view of this issue is here


www.pjrc.com/tech/8051/pm2_docs/intel-hex.html

machine toshiba equium laptop usb only type
p5b asus main machine
thinking of adding dual lpt pci card
both used for top and lpt via usb where i can

old p2 programming grumbling tank with xp sp3 for true serial and lpt

all machines bios set to enable bios plug and play aware o/s and lpt spollers services and drivers removed
legacy detection enabled

Edited by - simeon on 08/16/2009 05:38:18
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
MCUmall EPROM BIOS Chip Burner Forum © Copyright 2003 - 2009 Mcumall Electronics Inc. Go To Top Of Page
Generated in 0.12 sec. Snitz Forums 2000