Electronic Circuits and Projects Forum



Hex line 6 not formated

12 Last »
  1. #1
    be80be be80be is offline

    Hex line 6 not formated

    I get a hex line 6 is not Intel format

    Code hex:
    :1000000025006400030A67006400E50BE20BFF0FA4
    :1003C000FF0FFF0F3D0C0600000867000609E80B51
    :1003D0002605F90C28000400E802EB0BEF0B0400E3
    :1003E000010C3F001F02E7012604F90C280004005D
    :0E03F000E802F70BFB0B0400E80BE80B020A17
    :021FFE00EAFFF8
    :00000001FF

    It's just a blink program
    Im using Hi_tech C and trying to debug with Oshonsoft It will not load the HEX
    Last edited by The Moderation Team; 15th January 2012 at 06:55 AM.
    Burt
    be80be
    “No beard, no belly, no guru…”

  2. #2
    Ian Rogers Ian Rogers is offline
    Super Moderator
    I have never tried to run a hex file in oshonsoft...BUT there is an option in the build/project/linker tab for extending the hex addresses

    I've just loaded a Hi-tec C hex file into oshonsoft.... works as expected..

    Code :
    :020000001028C6
    :10000800FE00030EF0000408F1000A08F200831253
    :1000180003137F08F3005C288628831603138101E5
    :100028008B1606112230F700F4007408F6007608E3
    :100038008312031381008B17212883120313051CD5
    :10004800262827283D283E30760203182C282D28FC
    :100058003D280130F4007408F6070130F7024130FA
    :10006800F500EE30F400F40B3728F50B3728640060
    :100078003D2883120313851C422843282128073072
    :100088007602031C4828492821280130F60201304D
    :10009800F4007408F7074130F500EE30F400F40B73
    :1000A8005328F50B532864002128212821281028DB
    :1000B8000B1D5F2860287B28F8097808031D652830
    :1000C8006A287603FF3AFF3E81006F287703FF3ADC
    :1000D800FF3E81006F287818722876288312031350
    :1000E800061579288312031306110B117B28730850
    :1000F800FF0072088A0071088400700E8300FE0EEB
    :0A0108007E0E0900F80183011128A2
    :00000001FF
    +1
    Last edited by Ian Rogers; 15th January 2012 at 10:54 AM.

  3. Thread Starter #3
    be80be be80be is offline
    I've never had any problems before It's just a blink led on a 12f508 but here is what happens when I load it
    Attached Images
    0

  4. #4
    ericgibbs ericgibbs is online now
    Super Moderator
    hi burt,
    I have tried your hex in Oshonsoft, get the same error message.

    I have loaded a number of hex files from different sources into OSH , never had a problem.
    0

  5. Thread Starter #5
    be80be be80be is offline
    Hi Eric I never had this happen I was trying some code using the timer and it wouldn't load that so I did a blinkie in H-tech C no go. I'm thinking it has something to do with the OCCal setting H-tech did do that for you
    I don't think it is now
    0

  6. #6
    ericgibbs ericgibbs is online now
    Super Moderator
    Quote Originally Posted by be80be View Post
    Hi Eric I never had this happen I was trying some code using the timer and it wouldn't load that so I did a blinkie in H-tech C no go. I'm thinking it has something to do with the OCCal setting H-tech did do that for you
    I don't think it is now
    hi,
    I did try to dis-assemble the hex using OSH, but it displayed lots of 'unrecognised lines' in the listing
    Which PIC is it for.?
    +1

  7. Thread Starter #7
    be80be be80be is offline
    A 12F508 It runs in MPLAB SIM
    0

  8. #8
    ericgibbs ericgibbs is online now
    Super Moderator
    Quote Originally Posted by be80be View Post
    A 12F508 It runs in MPLAB SIM
    hi,
    Just tried to open it with the Oshonsoft PIC parallel programmer, no luck, it says, errors
    +1

  9. Thread Starter #9
    be80be be80be is offline
    Well I give up trying Hi-tech C to compile for the 12f508 I have even tried the the pro and it makes the same HEX It's not adding the config or OCCAL right ASM works I'll just write the code in that LOL
    0

  10. #10
    ericgibbs ericgibbs is online now
    Super Moderator
    Quote Originally Posted by be80be View Post
    Well I give up trying Hi-tech C to compile for the 12f508 I have even tried the the pro and it makes the same HEX It's not adding the config or OCCAL right ASM works I'll just write the code in that LOL
    hi burt,
    Used Nigels prommer to disassemble your hex file [ used 12C508]

    Then on Oshonsoft set as 12F508 , it assembles and runs OK.

    Copied the new hex file, see old and new below.

    ;reassembled
    :0E00000025006400030A67006400E50BE20BB4
    :0C03C4003D0C0600000867000609E80B6D
    :1003D0002605F90C28000400E802EB0BEF0B0400E3
    :1003E000010C2F000F02E7012604F90C280004007D
    :0E03F000E802F70BFB0B0400E80BE80B020A17
    :021FFE000A00D7
    :00000001FF

    ;original
    :1000000025006400030A67006400E50BE20BFF0FA4
    :1003C000FF0FFF0F3D0C0600000867000609E80B51
    :1003D0002605F90C28000400E802EB0BEF0B0400E3
    :1003E000010C3F001F02E7012604F90C280004005D
    :0E03F000E802F70BFB0B0400E80BE80B020A17
    :021FFE00EAFFF8
    :00000001FF


    Code :
    ; Generated by WinPicProg 1.91, (c) Nigel Goodwin 2002.
     
                LIST      P=12F508, F=INHX8M
                include "P12F508.inc"
                __CONFIG 0x000A
     
                ORG     0x0000
     
                MOVWF   OSCCAL
                CLRF    FSR
    Label_000A  GOTO    Label_0001
    Label_0001  CLRF    0x07
                CLRF    FSR
                GOTO    Label_0002
    Label_0004  GOTO    Label_0003
                ORG     0x01E2
    Label_0003  MOVLW   0x3D
                TRIS    GPIO
                RETLW   0x00
    Label_0002  CLRF    0x07
                CALL    Label_0004
                GOTO    Label_0005
    Label_0005  BSF     GPIO      , 01
                MOVLW   0xF9
                MOVWF   0x08
    Label_0006  CLRWDT
                DECFSZ  0x08      , f
                GOTO    Label_0006
                GOTO    Label_0007
    Label_0007  CLRWDT
                MOVLW   0x01
                MOVWF   0x0F
                MOVF    0x0F      , W
                ADDWF   0x07      , f
                BCF     GPIO      , 01
                MOVLW   0xF9
                MOVWF   0x08
    Label_0008  CLRWDT
                DECFSZ  0x08      , f
                GOTO    Label_0008
                GOTO    Label_0009
    Label_0009  CLRWDT
                GOTO    Label_0005
                GOTO    Label_0005
                GOTO    Label_000A
     
     
     
                END
    +1
    Eric " Good enough is Perfect "
    I will NOT answer PM's requesting technical help, please use the Forum
    "Nigels Asm tutorials:" www.winpicprog.co.uk/
    "Ian Rogers 'C' conversion of Nigels Asm tutorials:" http://www.electro-tech-online.com/c...torials-c.html

12 Last »
Tags
Similar Threads
Thread Starter Forum Replies Last Post
data not displaying in second line of 16X2 LCD ; JHD 162A Qaisar Azeemi 8051/8951 8 4th April 2013, 07:53 PM
Effect of not using Zero-crossing on line alphacat General Electronics Chat 32 25th March 2010, 04:37 PM
Mic will only pick up breathing... not talking daviddoria General Electronics Chat 13 6th February 2003, 01:23 PM
How can I connect a phone line to a sound system Gulftech Electronic Projects Design/Ideas/Reviews 0 3rd February 2003, 03:17 PM
Octal Inverter/Hex Inverter? gtiboy2001 General Electronics Chat 3 6th November 2002, 11:25 PM
Electronic Circuits  |  Learning Electronics

Join our community with over 100,000 Members! It's free, easy and when you're logged in you have many more features! Click to register.
Page Time: 0.10087 seconds      Memory: 7,756 KB      Queries: 18      Templates: 0