Menu

PC software craches

Bug report
Niclas
2015-07-30
2015-08-13
  • Niclas

    Niclas - 2015-07-30

    v0.10.0 crashes when trying to upload this hex file. It's for a
    PIC16F1519. It also crashes if I try with a virtual device. Tried 0.9 an
    0.8 with the same result.

    :040000008031CA2859

    :100008007E14803120007F08B700911EC628C908D9

    :10001800031D12282030C70002301528B430C7004D

    .... removed middle part...

    :103FD80025004D082200C000C10140082100C8008A

    :103FE800220041082100C900250052089A31752293

    :083FF8008631722E86317A2E0B

    :107FC0000034003400340034003400340034003411

    :107FD0000034003400340034003400340034003401

    :107FE00000340034003400340034003400340034F1

    :107FF00000340034003400340034003400340034E1

    :020000040001F9

    :04000E00E4FFFFFF0D

    :00000001FF

     

    Last edit: Niclas 2015-07-31
  • Dan

    Dan - 2015-07-31

    Hi,Niclas

    The HEX file overlaps with the boot loader area.

    User Program size < $3F9C (HEX:$7F38)

    <an example="" of="" a="" boot="" loader="">

    :107F4000BF311130840007149930860021001917C1
    :107F500023008E012430C53F3330C23F9030C43FF0
    :107F6000D127C13C031D2C322B30C13F4230C13FD1
    :107F7000FB01D1279200D1279100D127FC00D12706
    :107F80009300FC03D12794002430E627910AFC0BD0
    :107F9000F633D1274E30031DEA339103E527E62758
    :107FA000E5330930FD00FE01FF01801E0332403F32
    :107FB000FB070800FF0BF933FE0BF633FD0BF33321
    :107FC00095019D1320008A01B73314309500553078
    :0E7FD0009600AA3096009514000000000434BC

    Best regards,
    Dan

     
  • Niclas

    Niclas - 2015-07-31

    Yes that seems to be the problem. Maybe it souldn't crash though.

    It was configured to preseve $3F00 and above. Changed it to $3A00 and it it worked.

    Got a warning about "pclath not fully initiazed". But also "code successfully repaired".
    Do I need to change the bootloader or my code to remove that warning?

    Thanks for the quick support!

     
  • Dan

    Dan - 2015-08-01

    Hi,Niclas

    [Description of the general Soce Code]

    $0000:0003
    Set the PCLATH.
    "GOTO" code to jump the user server program body.
    "BRA" can not be used.
    Check in assembler source in the case of "C","BASIC".

    <Good:Not out="" warning="">
    0000 movlw XXXX
    0001 movwf PCLATCH
    0002 call ZZZZ
    0003 goto YYYY

    <Good>
    0000 movlp XXXX
    0001 call AAAA
    0002 call ZZZZ
    0003 goto YYYY

    <Good:Not out="" warning="">
    0000 movlw XXXX
    0001 movwf PCLATCH
    0002 goto YYYY

    <Good>
    0000 movlp XXXX
    0001 goto YYYY

    <Good:PCLATH will="" be="" a="" "0"="">
    0000 goto YYYY

    <NG>
    0000 movlw XXXX
    0001 movwf AAAA
    0002 movlw YYYY
    0003 movwf BBBB

    Reference:
    http://tinypicbootload.sourceforge.net/pic16_firmwares.html

    Best regards,
    Dan

     
  • quangduy

    quangduy - 2015-08-13

    my PC software craches
    in tab write not work
    open tab debug and click write

    is work
    test

    ok ok and ok
    ??????

     
  • Dan

    Dan - 2015-08-13

    Hi,quangduy

    Two reasons it considered.

    ①Individual differences of USB serial converter

    The USB serial converter There are a lot of types, there is a difference in response time.

    And those that generate extra pulse during operation,
    Or Response from the rarely target from the difference in the response time "B" (0x42:PIC16F) There is a lose information thing.

    Countermeasure: Enable Debug function to determine the condition does not go out of error.

    ②When using the reset signal lines DTR and DSR

    Measures way: change of pulse conditions of RTS / DTR.

    Best regards,
    Dan

     
  • quangduy

    quangduy - 2015-08-13

    hi
    I have tried the suggestion that. new USB serial converter.....change of pulse conditions of RTS / DTR (from 100 to 200..... to 1000) not work.
    However when I open the debug tab and click write. It will be written perfectly with the default settings or change.

    as in the post, I don't understand, I think it the buggy PC software.

    USB serial converter.
    i test on
    2 adapter USB serial converter (cp2102)
    for sure
    2 adapter USB serial converter (PL-2303HX)
    for sure

    update.
    debug option as you it worked, no longer have to open the debug tab to write
    Thank you very much

    Here is my setup
    rts / dts (true) = 10
    rts / dts = 200
    time out = 1000
    delay check = 1000
    number of check = 10

     

    Last edit: quangduy 2015-08-13

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.