Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
16F8**A [solved]
#1
Hello all,
DS30 loader is is a very good software but it would be fantastic if it was universal.
Many people like me have in their drawers some PIC like 16F628A, 16F84A, 16F876A, 16F877A.
I can not create .Hex for these types of PIC.
I changed the devices.inc, the setting.inc and chosen the right PIC in MPLAB 8.53, but the compilation, I always "Unknown device specified". Could someone give me the procedure step by step to create the right file?
Thank you.

I added in the file devices.inc:
Code:
    ifdef    __16F876a
        #include    p16F876a.inc
        #define        VALID_DEV        1
        #define        MAX_FLASH        0x2000
        #define        DEVICEID        234
        #define        PAGESIZEW        1
        #define        ROWSIZEW        1
        #define        AUTOERASE        1
    endif
in the setting.inc :
Code:
        LIST          P=16F876A
Reply
#2
Hello,

I don't have such device to try, but I can make an hex file.

Fisrt change your ifdef :
Code:
ifdef __16F876A

Take a look [broken link] , Micke add PIC device as per demand.

Lotusx
Reply
#3
16F84 doesn't support rtsp
16F628 doesn't support rtsp
16F876 already supported, just add that last A in the #include-line
16F877 already supported, just add that last A in the #include-line

Also use correct letter case, a might be != A.
Reply
#4
I'll add explicit support of 87xA devices in the next release.
Reply
#5
(2010-10-17, 17:02:21)admin Wrote: I'll add explicit support of 87xA devices in the next release.

Thanks a lot, Mike Rolleyes
Bruno
Reply
#6
thanks Mikael for this new version with the support of 16F87xA.
I tested the PIC16F876A, compiles it fine with MPLAB 8.56
I loaded the. HEX in the PIC, the program DS30 Loader GUI recognizes it fine but when I want to download a program, I get errors and the program is not loaded.
see pictures for errors :
   
   

Here is the HEX generated by ds30 Loader :
PIC16F876A_04MHz_9600_3F32_ds30BL.HEX
Code:
:020000040000FA
:060000008A150A16402FCC         <-----| Is these lines are correct ?
:063E7A008A110A1200008B         <-----| see : http://ww1.microchip.com/downloads/en/devicedoc/39591a.pdf Table1 No4
:103E8000831603131930990083120313903098009E
:103E900083160313243098000230F500D627C13C66
:103EA0000319552FF50B4E2FED2FEA30CE27813019
:103EB000CE270030CE2783014B30CE27F001D62706
:103EC000D627831203178F00F600D6278312031715
:103ED0008D00D627F700D627F10020308400D627A2
:103EE0008000840AF10B6F2FF008031DBD2F2030D6
:103EF0008400F7187F2F7719AA2F78145B2F781C6E
:103F0000822FF8010130F900FA008312031700082C
:103F10008C00840A00088E00840A8430C027831233
:103F200003178D0AF90B872F8D03831603178C1740
:103F30000C140000000084030008831203178E0293
:103F4000031DBA2F840300088C02031DBA2FFA0B3D
:103F5000942F5B2F0008831203178C000430C027B6
:103F60008C18B02F0C140008831203178C02031D49
:103F7000BA2F5B2F5630CE275E2F4E30CE275E2FC6
:103F8000831603178C0055308D00AA308D008C14D9
:103F9000000000008C18CA2F0C11080083120313B4
:103FA000990083160313981CD32F08000C30F200DD
:103FB0006430F300F4016400831203138C1EE72FB6
:103FC000831203131A08F007831203130800F40B7B
:103FD000DB2FF30BDA2FF20BD82F83120313980188
:083FE0008316031398013D2F25
:02400E00323F3F
:00000001FF

For comparaison, this is generated by MicrochipC :
http://www.microchipc.com/PIC16bootload/
PIC16F876A_04MHz_9600bps_3F32_MicrochipC.HEX
Code:
:020000040000FA
:0800000000008A150A16882E83
:103D00008A150A16802E8A018A150A16832E00004B
:103D1000031E832E903098008316181598161930BC
:103D2000990083120330FA00313090000C14EC2615
:103D3000EA3A031DAF2EFA01B62EEC26F900E33A5B
:103D40000319B82E7908EA3A0319B62E7908ED3A24
:103D5000031D9D2EE430E7260330FA00EC26900187
:103D600098018316980183128C01832EEB30E52E87
:103D7000EC26F600EC26F500EC26F100FB00EC2624
:103D8000F300F20121308312031376020319D12EBE
:103D900075080339FC00FD000310FC0D20307C0782
:103DA000D22E20308400EC268000F207840AFB0B20
:103DB000D32E72087306E830031DE52EE730E726A0
:103DC000FE260038E4300319E530E7269D2E640016
:103DD0000C1EE72E9900080064007A080319FA2ED9
:103DE0000C1CFA2E1010FA0BF62E00340C103C307E
:103DF0008F0010148C1EEC2E1A0808002130760259
:103E00000319502F831603178C1783120313750899
:103E1000FC3903178D000313760803178F00203039
:103E2000840003137D080319282F831603170C142D
:103E30000000000083120E088000840A0C08800035
:103E4000840A8D0A0313FD03F503F10AF10A112F09
:103E50007108FC00203E84000310FC0C7608031758
:103E60008F000313750803178D0003137C080317D5
:103E70008D0703198F0A03170D0803390319502FF3
:103E800083160C140000000083120E088000840AC0
:103E90000C088000840A8D0A0313F10AF10A3B2FF3
:103EA0007508F7007608F800FB010230F40071088D
:103EB0007B02031801347B08203E84002130780205
:103EC0000317831603196E2F8C1783011E30780297
:103ED0008030031977020318B62F702F8C138301DB
:103EE000770803178D0003137808031D852F04300E
:103EF00077020318852F031783168C1F822F8312D6
:103F000084308D0783011E30862F780803178F00B9
:103F100000088E00840A00088C0083160C155530AA
:103F20008D00AA308D008C140000000083018316E0
:103F300003178C1BBE2F8312031364000D1E9D2FCD
:103F40000D12831603170C110C14000000008312CD
:103F5000840300080E06031DB22F840A00080C0615
:103F60000319B62F8301F40B572F00348312031368
:103F70000230FB07F70A0319F80A552F83120313BF
:103F80000D12831603170C11831203170D08033942
:103F9000033C031DB62F03308D028312031304303C
:103FA000FC00073084020000831603170C14000085
:103FB000000000000000000000000008831203174A
:103FC0000E06031DE82F840A00080C060319EF2FC4
:103FD00083120313FC30F7050630FB02B22F831265
:103FE00003178D0A840A83120313FC0BD32FB62FF9
:084000000200010000000000B5
:02400E00323F3F
:00000001FF
Reply
#7
It seems that the A devices has a different flash architecture. I'll get back to this thread with a new firmware within a week.
Reply
#8
I think it's enough to change the ROWSIZE define in devices.inc from 1 to 4.
Please try that and let us know the result.
Reply
#9
I forgot, you will need to change in devices.xml also. It's found in the bin directory.
Open it and search for 876A and change rowSizeW from 1 to 4.
Reply
#10
Hello Mickael,
I change ROWSIZE in devices.inc from 1 to 4 and rowSizeW from 1 to 4 in devices.xml but MPLAB don't like that :
Code:
----------------------------------------------------------------------
Debug build of project `E:\Electro\Prog\ds30 Loader\Firmware\_HB\PIC16F876A\ds30loader.mcp' started.
Language tool versions: MPASMWIN.exe v5.37, mplink.exe v4.37, mplib.exe v4.37
Preprocessor symbol `__DEBUG' is defined.
Tue Nov 16 20:43:21 2010
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "E:\Electro\Prog\MPLab856\MPASM Suite\MPASMWIN.exe" /q /p16F876A "ds30loader.asm" /l"ds30loader.lst" /e"ds30loader.err" /d__DEBUG=1
Message[301] E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 117 : MESSAGE: (UBRG_IS 25)
Message[301] E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 118 : MESSAGE: (bldelayis       12)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 172 : Argument out of range (8192 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 173 : Argument out of range (8192 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 284 : Argument out of range (8342 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 287 : Argument out of range (8213 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 290 : Argument out of range (8206 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 291 : Argument out of range (8365 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 164 : Argument out of range (8334 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 164 : Argument out of range (8334 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 164 : Argument out of range (8334 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 164 : Argument out of range (8334 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 314 : Argument out of range (8342 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 316 : Argument out of range (8342 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 321 : Argument out of range (8342 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 329 : Argument out of range (8342 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 336 : Argument out of range (8342 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 345 : Argument out of range (8342 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 349 : Argument out of range (8239 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 357 : Argument out of range (8317 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 375 : Argument out of range (8255 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 378 : Argument out of range (8298 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 381 : Argument out of range (8219 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 389 : Argument out of range (8258 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 416 : Argument out of range (8320 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 421 : Argument out of range (8263 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 441 : Argument out of range (8314 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 447 : Argument out of range (8314 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 450 : Argument out of range (8276 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 452 : Argument out of range (8219 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 464 : Argument out of range (8320 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 468 : Argument out of range (8304 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 481 : Argument out of range (8314 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 483 : Argument out of range (8219 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 164 : Argument out of range (8334 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 491 : Argument out of range (8222 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 164 : Argument out of range (8334 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 499 : Argument out of range (8222 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 519 : Argument out of range (8330 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 541 : Argument out of range (8339 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 563 : Argument out of range (8359 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 570 : Argument out of range (8347 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 572 : Argument out of range (8346 not between 0 and 8191)
Error[126]   E:\ELECTRO\PROG\DS30 LOADER\FIRMWARE\_HB\PIC16F876A\SRC\DS30LOADER.ASM 574 : Argument out of range (8344 not between 0 and 8191)
Halting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `E:\Electro\Prog\ds30 Loader\Firmware\_HB\PIC16F876A\ds30loader.mcp' failed.
Language tool versions: MPASMWIN.exe v5.37, mplink.exe v4.37, mplib.exe v4.37
Preprocessor symbol `__DEBUG' is defined.
Tue Nov 16 20:43:23 2010
----------------------------------------------------------------------
BUILD FAILED
Reply
#11
Ok, also change PAGESIZEW from 1 to 4. Don't change pageSizeR in devices.xml.
Reply
#12
I made the changes requested by Mikael (in devices.inc ROWSIZE=4 PAGESIZEW= 4 and devices.xml rowSizeW = 4), but still no good ...
Compiling with MPLAB 8.56 is fine.
Loading into the 16F876A is going well.
Detection of the BL is OK.
Downloading the user program with ds30 loader GUI is OK but, after, the reset of the PIC does not load the user program.
Detection of the BL is still OK.
It seems that the RESET PIC does not "GOTO USER APPLICATION"
I made a small program with MikroBasic, here is the source code and *. HEX:
Code:
program HB_LCD_Test3
dim text as char[20]
main:
  TRISB = 0                   ' PORTB is output
  LCD_Config(PortB,7,6,5,4,PortB,1,2,3)   ' Initialise LCD sur PortB
  Lcd_Cmd(Lcd_CURSOR_OFF)     ' Turn off cursor
  text = "mikroElektronika"
  Lcd_Out(1, 1, text)         ' Print text at LCD
end.

The .HEX generated by MikroBasic :
Code:
:100000000B2AFF3FFF3FFF3F8D228D228D224008AC
:10001000F0000130F400700803191228F40D741078
:10002000FF3F0C287408A4004108F0000130F300E1
:10003000700803191F28F30D7310FF3F1928730868
:10004000A5004208F0000130F200700803192C28C6
:10005000F20D7210FF3F26287208A6004308F00038
:100060000130F100700803193928F10D7110FF3FBC
:1000700033287108A7004508F0000130A20070087D
:1000800003194628A20D2210FF3F40284608F00021
:100090000130A900700803195128A90D2910FF3F4C
:1000A0004B284708F0000130A100700803195C28B4
:1000B000A10D2110FF3F56283F08A3004408A000CF
:1000C0003F08840073087404F0007208F00471089B
:1000D000F004F00970088005841725082404F00056
:1000E0002608F0042708F004F0097008800584133E
:1000F0002008840029082204F0002108F004F009F7
:1001000070088005841729082204F0002108F004F3
:10011000F009700880058413230884002608000471
:10012000F000270870048000200884002108800463
:100130002109F000700880058D2221088004210922
:10014000F000700880058D22210880042109F0004C
:10015000700880058D222308840026088004270962
:10016000F00070088005200884002108800421091F
:10017000F000700880058D22210880042109F1001B
:1001800071088005230884002609F00070088005A6
:100190002408800420088400210880047108800558
:1001A0008D22230884002409F000700880052708A8
:1001B000800420088400210880042109F1007108CE
:1001C0008005230884002709F000700880052008B6
:1001D000840021088004710880058D222108800494
:1001E0002109F00070088005230884002708800496
:1001F0002008840021088004700880058D222308CF
:1002000084002709F0007008800520088400210878
:1002100080042109F1007108800523088400270863
:100220000004F0002608F0042508F00424087004F7
:1002300080002008840021088004710880058D2238
:100240000130A8000800031383122008840021094C
:10025000F000700880052209F0007008800523086E
:10026000840025082404F0002608F0042708F00480
:10027000F0097008800580304905F1007108003AE6
:10028000FF3003190030F00001307005F1007108F3
:10029000013A031D4D292408800440304905F1002E
:1002A0007108003AFF3003190030F000013070058A
:1002B000F1007108013A031D5F29250880042030F0
:1002C0004905F1007108003AFF3003190030F000D1
:1002D00001307005F1007108013A031D71292608EB
:1002E000800410304905F1007108003AFF3003190D
:1002F0000030F00001307005F1007108013A031D73
:10030000832927088004200884002808013A031D57
:100310008E292209F00070088005902922088004A7
:1003200021088004AF222109F0007008800522090D
:10033000F000700880052308840025082404F000DC
:100340002608F0042708F004F0097008800508303A
:100350004905F1007108003AFF3003190030F00040
:1003600001307005F1007108013A031DB929240814
:10037000800404304905F1007108003AFF30031988
:100380000030F00001307005F1007108013A031DE2
:10039000CB292508800402304905F1007108003A94
:1003A000FF3003190030F00001307005F1007108D2
:1003B000013A031DDD292608800401304905F100BA
:1003C0007108003AFF3003190030F0000130700569
:1003D000F1007108013A031DEF2927088004200865
:1003E00084002808013A031DFA292209F000700848
:1003F0008005FC292208800421088004AF222109FD
:10040000F000700880052808013A031D092A8D2292
:100410000A2AA722080003138316860106308312D6
:10042000BF000730C0000630C1000530C2000430F4
:10043000C3000630C4000130C5000230C6000330DE
:10044000C70004200C30C90023216D30AA00693098
:10045000AB006B30AC007230AD006F30AE00453099
:10046000AF006C30B0006530B1006B30B20074305A
:10047000B3007230B4006F30B5006E30B600693032
:10048000B7006B30B8006130B900BA010130BF006D
:100490000130C0002A30C1004E224D2A03138312BE
:1004A0003F08013A031D572A8030BF006E2A3F08DB
:1004B000023A031D5E2AC030BF006E2A3F08033A8D
:1004C000031D652A9430BF006E2A3F08043A031DBD
:1004D0006C2AD430BF006E2A8030BF004003F00089
:1004E0003F08F0077008BF007008C9002321A80169
:1004F000C2014208410784000008F2007208003A75
:1005000003198A2A4208410784000008C8009E2275
:10051000C20A792A0130A8000800083003138312A8
:10052000FB00FF30FA00FB0B962A992AFA0B962A59
:10053000932A1E30FA00FA0B9B2A08000313831239
:10054000A8014808C90023210130A8000800103084
:1005500003138312FA00FA0BAB2A00000800000014
:100560000800FF3FFF3FFF3FFF3FFF3FFF3FFF3FD1
:02400E00323F3F
:00000001FF

The .HEX generated by ds30 Loader :
Code:
:020000040000FA
:060000008A150A16402FCC
:063E7A008A110A1200008B
:103E8000831603131930990083120313903098009E
:103E900083160313243098000230F500D627C13C66
:103EA0000319552FF50B4E2FED2FEA30CE27813019
:103EB000CE270030CE2783014B30CE27F001D62706
:103EC000D627831203178F00F600D6278312031715
:103ED0008D00D627F700D627F10020308400D627A2
:103EE0008000840AF10B6F2FF008031DBD2F2030D6
:103EF0008400F7187F2F7719AA2F78145B2F781C6E
:103F0000822FF8010430F900FA0083120317000829
:103F10008C00840A00088E00840A8430C027831233
:103F200003178D0AF90B872F8D03831603178C1740
:103F30000C140000000084030008831203178E0293
:103F4000031DBA2F840300088C02031DBA2FFA0B3D
:103F5000942F5B2F0008831203178C000430C027B6
:103F60008C18B02F0C140008831203178C02031D49
:103F7000BA2F5B2F5630CE275E2F4E30CE275E2FC6
:103F8000831603178C0055308D00AA308D008C14D9
:103F9000000000008C18CA2F0C11080083120313B4
:103FA000990083160313981CD32F08000C30F200DD
:103FB0006430F300F4016400831203138C1EE72FB6
:103FC000831203131A08F007831203130800F40B7B
:103FD000DB2FF30BDA2FF20BD82F83120313980188
:083FE0008316031398013D2F25
:02400E00323F3F
:00000001FF

The .HEX read in the PIC after burn with ds30loader.HEX :
Code:
:100000008A150A16402FFF3FFF3FFF3FFF3FFF3F8C
:10001000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FF0
:10002000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FE0
                                |
                            ( cut )
                                |
:103E6000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F62
:103E7000FF3FFF3FFF3FFF3FFF3F8A110A12000055
:103E8000831603131930990083120313903098009E
:103E900083160313243098000230F500D627C13C66
:103EA0000319552FF50B4E2FED2FEA30CE27813019
:103EB000CE270030CE2783014B30CE27F001D62706
:103EC000D627831203178F00F600D6278312031715
:103ED0008D00D627F700D627F10020308400D627A2
:103EE0008000840AF10B6F2FF008031DBD2F2030D6
:103EF0008400F7187F2F7719AA2F78145B2F781C6E
:103F0000822FF8010430F900FA0083120317000829
:103F10008C00840A00088E00840A8430C027831233
:103F200003178D0AF90B872F8D03831603178C1740
:103F30000C140000000084030008831203178E0293
:103F4000031DBA2F840300088C02031DBA2FFA0B3D
:103F5000942F5B2F0008831203178C000430C027B6
:103F60008C18B02F0C140008831203178C02031D49
:103F7000BA2F5B2F5630CE275E2F4E30CE275E2FC6
:103F8000831603178C0055308D00AA308D008C14D9
:103F9000000000008C18CA2F0C11080083120313B4
:103FA000990083160313981CD32F08000C30F200DD
:103FB0006430F300F4016400831203138C1EE72FB6
:103FC000831203131A08F007831203130800F40B7B
:103FD000DB2FF30BDA2FF20BD82F83120313980188
:103FE0008316031398013D2FFF3FFF3FFF3FFF3F25
:103FF000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FD1
:02400E00323F3F
:00000001FF

And, finally, the .HEX read in the PIC after downloaded the .HEX generated by MikroBasic with ds30 loader GUI :
Code:
:100000008A150A16402FFF3F8D228D228D2240082F
:10001000F0000130F400700803191228F40D741078
:10002000FF3F0C287408A4004108F0000130F300E1
:10003000700803191F28F30D7310FF3F1928730868
:10004000A5004208F0000130F200700803192C28C6
:10005000F20D7210FF3F26287208A6004308F00038
:100060000130F100700803193928F10D7110FF3FBC
:1000700033287108A7004508F0000130A20070087D
:1000800003194628A20D2210FF3F40284608F00021
:100090000130A900700803195128A90D2910FF3F4C
:1000A0004B284708F0000130A100700803195C28B4
:1000B000A10D2110FF3F56283F08A3004408A000CF
:1000C0003F08840073087404F0007208F00471089B
:1000D000F004F00970088005841725082404F00056
:1000E0002608F0042708F004F0097008800584133E
:1000F0002008840029082204F0002108F004F009F7
:1001000070088005841729082204F0002108F004F3
:10011000F009700880058413230884002608000471
:10012000F000270870048000200884002108800463
:100130002109F000700880058D2221088004210922
:10014000F000700880058D22210880042109F0004C
:10015000700880058D222308840026088004270962
:10016000F00070088005200884002108800421091F
:10017000F000700880058D22210880042109F1001B
:1001800071088005230884002609F00070088005A6
:100190002408800420088400210880047108800558
:1001A0008D22230884002409F000700880052708A8
:1001B000800420088400210880042109F1007108CE
:1001C0008005230884002709F000700880052008B6
:1001D000840021088004710880058D222108800494
:1001E0002109F00070088005230884002708800496
:1001F0002008840021088004700880058D222308CF
:1002000084002709F0007008800520088400210878
:1002100080042109F1007108800523088400270863
:100220000004F0002608F0042508F00424087004F7
:1002300080002008840021088004710880058D2238
:100240000130A8000800031383122008840021094C
:10025000F000700880052209F0007008800523086E
:10026000840025082404F0002608F0042708F00480
:10027000F0097008800580304905F1007108003AE6
:10028000FF3003190030F00001307005F1007108F3
:10029000013A031D4D292408800440304905F1002E
:1002A0007108003AFF3003190030F000013070058A
:1002B000F1007108013A031D5F29250880042030F0
:1002C0004905F1007108003AFF3003190030F000D1
:1002D00001307005F1007108013A031D71292608EB
:1002E000800410304905F1007108003AFF3003190D
:1002F0000030F00001307005F1007108013A031D73
:10030000832927088004200884002808013A031D57
:100310008E292209F00070088005902922088004A7
:1003200021088004AF222109F0007008800522090D
:10033000F000700880052308840025082404F000DC
:100340002608F0042708F004F0097008800508303A
:100350004905F1007108003AFF3003190030F00040
:1003600001307005F1007108013A031DB929240814
:10037000800404304905F1007108003AFF30031988
:100380000030F00001307005F1007108013A031DE2
:10039000CB292508800402304905F1007108003A94
:1003A000FF3003190030F00001307005F1007108D2
:1003B000013A031DDD292608800401304905F100BA
:1003C0007108003AFF3003190030F0000130700569
:1003D000F1007108013A031DEF2927088004200865
:1003E00084002808013A031DFA292209F000700848
:1003F0008005FC292208800421088004AF222109FD
:10040000F000700880052808013A031D092A8D2292
:100410000A2AA722080003138316860106308312D6
:10042000BF000730C0000630C1000530C2000430F4
:10043000C3000630C4000130C5000230C6000330DE
:10044000C70004200C30C90023216D30AA00693098
:10045000AB006B30AC007230AD006F30AE00453099
:10046000AF006C30B0006530B1006B30B20074305A
:10047000B3007230B4006F30B5006E30B600693032
:10048000B7006B30B8006130B900BA010130BF006D
:100490000130C0002A30C1004E224D2A03138312BE
:1004A0003F08013A031D572A8030BF006E2A3F08DB
:1004B000023A031D5E2AC030BF006E2A3F08033A8D
:1004C000031D652A9430BF006E2A3F08043A031DBD
:1004D0006C2AD430BF006E2A8030BF004003F00089
:1004E0003F08F0077008BF007008C9002321A80169
:1004F000C2014208410784000008F2007208003A75
:1005000003198A2A4208410784000008C8009E2275
:10051000C20A792A0130A8000800083003138312A8
:10052000FB00FF30FA00FB0B962A992AFA0B962A59
:10053000932A1E30FA00FA0B9B2A08000313831239
:10054000A8014808C90023210130A8000800103084
:1005500003138312FA00FA0BAB2A00000800000014
:100560000800FF3FFF3FFF3FFF3FFF3FFF3FFF3FD1
:10057000F00DF10D7010FF3FB62A2E08F200F301C6
:100580007208F00773080318013FF1073108F007FC
:1005900032080318013FF10770080313A90071081E
:1005A000AB000A08AA000A1669218A110A12F00093
:1005B0002A088A0070080317B3000A164A218A1114
:1005C0000A1203172E08073A0319E82AAE0AA82AC6
:1005D0002F08033A0319EE2AAF0AA32AEB2B0317BD
:1005E0008312031383166C08383A031D462B031736
:1005F0008312AF012F08033C031C452BAE012E08CC
:10060000073C031C3F2B1C30B1001030B2000330FC
:10061000F4002F08F000F10174080319142BF00DF9
:10062000F10D7010FF3F0D2B2E08F200F301720840
:10063000F00773080318013FF1073108F00732088B
:100640000318013FF10770080313A9007108AB00FC
:100650000A08AA000A1669218A110A12F0002A085B
:100660008A0070080317B3000A164A218A110A1279
:1006700003172E08073A03193F2BAE0AFF2A2F084B
:10068000033A0319452BAF0AFA2AEB2B03178312FF
:10069000031383166C08393A031D9D2B031783122D
:1006A000AF012F08033C031C9C2BAE012E08073C16
:1006B000031C962B3F30B1000F30B2000330F40022
:1006C0002F08F000F101740803196B2BF00DF10DE8
:1006D0007010FF3F642B2E08F200F3017208F00740
:1006E00073080318013FF1073108F00732080318B7
:1006F000013FF10770080313A9007108AB000A0855
:10070000AA000A1669218A110A12F0002A088A0032
:1007100070080317B3000A164A218A110A12031738
:100720002E08073A0319962BAE0A562B2F08033AC8
:1007300003199C2BAF0A512BEB2B03178312AF012C
:100740002F08033C031CEB2BAE012E08073C031CB7
:10075000E52BDC30B1000E30B2000330F4002F087E
:10076000F000F10174080319BA2BF00DF10D7010AF
:10077000FF3FB32B2E08F200F3017208F007730855
:100780000318013FF1073108F00732080318013F51
:10079000F10770080313A9007108AB000A08AA004A
:1007A0000A1669218A110A12F0002A088A007008C4
:1007B0000317B3000A164A218A110A1203172E08DA
:1007C000073A0319E52BAE0AA52B2F08033A0319A4
:1007D000EB2BAF0AA02B0230BA008A15C6228A1171
:1007E0000D30FB00FF30FA00FB0BF72BFA2BFA0B56
:1007F000F72BF42BF330FA00FA0BFC2B000001303E
:100800000317B300031383166B0803178312B40096
:100810003008B5004F2701300317B30003138316C8
:100820006B0A03178312B400300AB5004F27023059
:100830000317B300031383166B0803178312B40066
:1008400002303007B5004F2702300317B3000313FF
:1008500083166B0A03178312B40003303007B50008
:100860004F270313831208000730031383169F00DA
:100870001930990018150A16CF208A110A1206306D
:100880008316E1000730E2000630E3000530E400A3
:100890000430E5000630E6000130E7000230E800F1
:1008A0000330E9008A1567218A110C300317BA005A
:1008B0008A15C6228A118230FB00FF30FA00FB0B3A
:1008C000622C652CFA0B622C5F2C8730FA00FA0B35
:1008D000672C000001308316EA000130EB00F43091
:1008E00003178312900020309100323092002030A4
:1008F00093007830940020309500443096005330B7
:100900009700313098003830990042309A003230E8
:100910009B0030309C0020309D00F4309E009F01F1
:10092000103103138316EC008A15DD248A1102307E
:100930008316EA000430EB004D3003178312900059
:10094000693091006B309200723093006F309400E8
:1009500042309500613096007330970069309800FE
:10096000633099009A01103103138316EC008A1545
:10097000DD248A118230FB00FF30FA00FB0BC12C12
:10098000C42CFA0BC12CBE2C8730FA00FA0BC62CF3
:100990000000F430031790002030910032309200B4
:1009A0002030930078309400203095004430960039
:1009B00053309700313098003830990042309A0017
:1009C00032309B0030309C0020309D00F4309E007F
:1009D0000A309F000D30A0004D30A1006930A20008
:1009E0006B30A3007230A4006F30A5004230A60027
:1009F0006130A7007330A8006930A9006330AA00F5
:100A00000A30AB000D30AC00AD011031B3000A1656
:100A1000B8208A110A128230FB00FF30FA00FB0B6B
:100A2000122D152DFA0B122D0F2D8730FA00FA0B0F
:100A3000172D000043300313DF006130E0007030F9
:100A4000E1007430E2006530E3007530E40072309C
:100A5000E5002030E600E7010630FC00FF30FB0037
:100A6000FF30FA00FC0B352D3C2DFB0B382D3B2DB8
:100A7000FA0B382D352D322D1A30FB00FF30FA00DD
:100A8000FB0B432D462DFA0B432D402D4230FA002F
:100A9000FA0B482D01300317BA008A15C6228A11B5
:100AA000831605140610071483120614E901EA01DF
:100AB000D901E726E726013003130505F100710887
:100AC000003AFF3003190030F00001307005F100EA
:100AD0007108013A031D812D01300605F1007108EE
:100AE000003AFF3003190030F0000130F00501300A
:100AF0007006F1007108003A031D802D0610812D4B
:100B0000061407308316EA00EB018A151E268A11A7
:100B100001308312EB00EC01D90A07308316EA009A
:100B2000EB01F030EC008A153A248A118316071085
:100B30008312071088270714831607140330FA005E
:100B4000FA0BA02D013083120705F1007108003A5D
:100B5000FF3003190030F00001307005ED000A1677
:100B600058218A110A12831607108312071088274A
:100B70000714831607140330FA00FA0BBD2D013059
:100B800083120705F1007108003AFF3003190030A5
:100B9000F00001307005EE000A1658218A110A1281
:100BA0006E08013A031DE32DA030F0006B08F0073A
:100BB00070088400700884008001EF010A1600208C
:100BC0008A110A123B2E6D08013A031DF82DA03040
:100BD000F0006B08F0077008840070088400013092
:100BE00080000130EF000A1600208A110A123B2E05
:100BF0006B086906031D0D2EA030F0006B08F0078E
:100C00007008840070088400013080000130EF001B
:100C10000A1600208A110A123B2E6B08690203187B
:100C2000222EA030F0006B08F007700884007008D6
:100C3000840080016B08EC00EF010A1600208A1185
:100C40000A123B2EA030F0006B08700784000008E9
:100C5000F1007108003A031D352E6B08EC00EF011E
:100C60000A1600208A110A123B2E0130EF000A16E4
:100C700000208A110A126B0AF1007108EB00413062
:100C800071020318442E962D6C08E9006C08003A96
:100C9000031D4C2E0130EA000130EF008A15722549
:100CA0008A1170088312BA000930EF008A15722584
:100CB0008A1170088312BB001130EF008A1572256B
:100CC0008A1170088312BC001930EF008A15722552
:100CD0008A1170088312BD002130EF008A15722539
:100CE0008A1170088312BE002930EF008A15722520
:100CF0008A1170088312BF003130EF008A15722507
:100D00008A1170088312C0003930EF008A157225ED
:100D10008A1170088312C1008A15DA238A110730FC
:100D20008316EA00EB014430EC008A153A248A115C
:100D30000430FC00FF30FB00FF30FA00FC0BA12E5A
:100D4000A82EFB0BA42EA72EFA0BA42EA12E9E2EAE
:100D5000D230FB00FF30FA00FB0BAF2EB22EFA0BA5
:100D6000AF2EAC2E7330FA00FA0BB42E00008A15A9
:100D7000DA238A118A15F1258A118A1500208A1131
:100D80000330FC00FF30FB00FF30FA00FC0BC92EE3
:100D9000D02EFB0BCC2ECF2EFA0BCC2EC92EC62E6E
:100DA0008C30FB00FF30FA00FB0BD72EDA2EFA0B4B
:100DB000D72ED42EA130FA00FA0BDC2E000003133C
:100DC0006A08003A031DE52E5A2D562DE62E0A1606
:100DD00016218A110A127008013A031D4E2F2C3079
:100DE000B300413003138316EA00EB01EA30031726
:100DF0008312B4008A1527258A110330FC00FF30C6
:100E0000FB00FF30FA00FC0B062F0D2FFB0B092F08
:100E10000C2FFA0B092F062F032F8C30FB00FF300D
:100E2000FA00FB0B142F172FFA0B142F112FA130E0
:100E3000FA00FA0B192F00004F3003138316EA0053
:100E40004B30EB000A30EC000D30ED00EE01EA30E3
:100E500003178312B3000A16B8208A110A1203304E
:100E6000FC00FF30FB00FF30FA00FC0B382F3F2F57
:100E7000FB0B3B2F3E2FFA0B3B2F382F352F8C309F
:100E8000FB00FF30FA00FB0B462F492FFA0B462FD1
:100E9000432FA130FA00FA0B4B2F00000800031774
:100EA00083123308013A031D582F8030B3006F2F8F
:100EB0003308023A031D5F2FC030B3006F2F330891
:100EC000033A031D662F9430B3006F2F3308043AA2
:100ED000031D6D2FD430B3006F2F8030B300340862
:100EE0003307F000F0037008B30001300313A800CB
:100EF00070080317BA008A15C6228A11A8010317C1
:100F00003508BA008A15C6228A110130A8000800E7
:100F100000000800FF3FFF3FFF3FFF3FFF3FFF3F55
:100F2000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FD1
:100F3000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FC1
:100F4000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FB1
:100F5000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FA1
:100F6000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F91
:100F7000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F81
:100F8000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F71
:100F9000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F61
:100FA000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F51
:100FB000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F41
:100FC000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F31
:100FD000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F21
:100FE000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F11
:100FF000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F01
:10100000031383124208CB004308CC002B30CD00E1
:101010004308083C031813282D30CD00FF30CB06C1
:10102000CB0AFF30CC064B088316EA00EA0CEA1321
:10103000EA0CEA13EA0CEA13EA0CEA1383124C08EE
:10104000F000F00D7010F00D7010F00D7010F00D3C
:10105000701070088316EA074E30EB00B5250F308C
:1010600083124B05F0007008CB000030F1007130A6
:10107000F4000230F5004E267008D2007108D3004B
:10108000E830F4000330F5008A110A167F208A1533
:101090000A127008CB0070088316EA005430EB0087
:1010A000B52583125608D80059088316EA005A302D
:1010B000EB00B52583125C08DE0059088316EA00B0
:1010C0000130EB005430E100E201E130EC00DD24BE
:1010D0005E080317B3008A110A164A218A150A12FC
:1010E00059080317B3000530B40003134D08031764
:1010F000B5008A114F278A154F08203A031D822810
:101100003030CF0001308316EA000730EB00831245
:101110004F088316EC008A1104208A1502308316CA
:10112000EA000930EB00831250088316EC008A11A4
:1011300004208A152C300317B3008A110A164A219D
:101140008A150A1258080317B3008A110A164A2191
:101150008A150A1220300317B3008A110A164A2191
:101160008A150A12DF300317B3008A110A164A21C2
:101170008A150A1243300317B3008A110A164A214E
:101180008A150A125908013A031DDA28023083161B
:10119000EA000130EB002030E1002030E200203096
:1011A000E3002030E4002030E500E601E130EC000F
:1011B000DD24ED2801308316EA000130EB002030F9
:1011C000E1002030E2002030E3002030E400203055
:1011D000E500E601E130EC00DD240630FC00FF30E4
:1011E000FB00FF30FA00FC0BF628FD28FB0BF9286A
:1011F000FC28FA0BF928F628F3281A30FB00FF30F8
:10120000FA00FB0B04290729FA0B042901294230B3
:10121000FA00FA0B09295F300317B3008A110A1686
:10122000B8208A150A1203135E080317BA008A1140
:101230000A16EA208A150A123A300317BA008A11F0
:101240000A16EA208A150A1220300317BA008A11FA
:101250000A16EA208A150A124D080317BA008A11E5
:101260000A16EA208A150A124E300317B3008A11B3
:101270000A16B8208A150A122C30BA008A110A16EA
:10128000EA208A150A1258080317BA008A110A16AA
:10129000EA208A150A12B0300317BA008A110A161A
:1012A000EA208A150A1243300317BA008A110A1677
:1012B000EA208A150A120D300317BA008A110A169D
:1012C000EA208A150A128A11E7268A1508008A116F
:1012D0000A1639218A150A128A110A1639218A1525
:1012E0000A128A110A1639218A150A12831662080F
:1012F000F0000130F400700803198229F40D741015
:10130000FF3F7C2974088312A40083166308F00051
:101310000130F300700803199129F30D7310FF3F9A
:101320008B2973088312A50083166408F00001302E
:10133000F20070080319A029F20D7210FF3F9A29DC
:1013400072088312A60083166508F0000130F100D0
:1013500070080319AF29F10D7110FF3FA929710819
:101360008312A70083166708F00001308312A200E1
:1013700070080319BF29A20D2210FF3FB929831657
:101380006808F00001308312B70070080319CC29F7
:10139000B70D3710FF3FC62983166908F0000130EA
:1013A0008312A10070080319D929A10D2110FF3F54
:1013B000D329831661088312A3008316660883125B
:1013C000A00083166108840073087404F00072089A
:1013D000F0047108F004F009700880058417831286
:1013E00025082404F0002608F0042708F004F0097A
:1013F0007008800584132008840037082204F00058
:101400002108F004F00970088005841737082204C9
:10141000F0002108F004F009700880058413230807
:10142000840026080004F0002708700480002008CB
:101430008400210880042109F000700880058A11C9
:101440000A1639218A150A12210880042109F000A0
:10145000700880058A110A1639218A150A12210896
:1014600080042109F000700880058A110A163921CC
:101470008A150A1223088400260880042709F00030
:101480007008800520088400210880042109F000EC
:10149000700880058A110A1639218A150A12210856
:1014A00080042109F10071088005230884002609C1
:1014B000F0007008800524088004200884002108BA
:1014C0008004710880058A110A1639218A150A12CA
:1014D000230884002409F000700880052708800490
:1014E00020088400210880042109F100710880058A
:1014F000230884002709F000700880052008840074
:1015000021088004710880058A110A1639218A157C
:101510000A12210880042109F000700880052308C0
:1015200084002708800420088400210880047008B3
:1015300080058A110A1639218A150A1223088400A7
:101540002709F00070088005200884002108800425
:101550002109F10071088005230884002708000490
:10156000F0002608F0042508F00424087004800028
:101570002008840021088004710880058A110A1659
:1015800039218A150A120130A800080003138312BA
:10159000200884002109F000700880052209F0006D
:1015A000700880052308840025082404F00026081C
:1015B000F0042708F004F009700880058030031754
:1015C0003A05F1007108003AFF3003190030F000CD
:1015D00001307005F1007108013A031DF22A03136E
:1015E0002408800403138312403003173A05F100E6
:1015F0007108003AFF3003190030F0000130700527
:10160000F1007108013A031D082B0313250880041B
:1016100003138312203003173A05F1007108003AD2
:10162000FF3003190030F00001307005F10071083F
:10163000013A031D1E2B0313260880040313831293
:10164000103003173A05F1007108003AFF30031912
:101650000030F00001307005F1007108013A031DFF
:10166000342B0313270880040313831220088400FB
:101670002808013A031D412B2209F000700880055B
:10168000432B22088004210880048A1188278A15A8
:101690002109F000700880052209F000700880051B
:1016A0002308840025082404F0002608F0042708F5
:1016B000F004F00970088005083003173A05F100BE
:1016C0007108003AFF3003190030F0000130700556
:1016D000F1007108013A031D702B031324088004E4
:1016E00003138312043003173A05F1007108003A1E
:1016F000FF3003190030F00001307005F10071086F
:10170000013A031D862B031325088004031383125B
:10171000023003173A05F1007108003AFF3003194F
:101720000030F00001307005F1007108013A031D2E
:101730009C2B031326088004031383120130031724
:101740003A05F1007108003AFF3003190030F0004B
:1017500001307005F1007108013A031DB22B03132B
:101760002708800403138312200884002808013A04
:10177000031DBF2B2209F00070088005C12B220831
:101780008004210880048A1188278A152109F00025
:10179000700880052808013A031DD42B8A110A1607
:1017A00039218A150A12D92B8A110A1661218A1544
:1017B0000A120800073003138316EA00EB011E2605
:1017C000602707308316EA00EB015530EC003A241D
:1017D000602707308316EA00EB0183123A0883166C
:1017E000EC003A24602707308316EA00EB018312ED
:1017F0003B088316EC003A24602707308316EA0082
:10180000EB0183123C088316EC003A246027073072
:101810008316EA00EB0183123D088316EC003A249C
:10182000602707308316EA00EB0183123E08831617
:10183000EC003A24602707308316EA00EB0183129C
:101840003F088316EC003A24602707308316EA002D
:10185000EB01831240088316EC003A24602707301E
:101860008316EA00EB01831241088316EC003A2448
:1018700060270800031383166B08F1000130F000A5
:1018800071080319472CF00D7010FF3F412C7008B0
:1018900003178312B0007009B100AE012E08073C97
:1018A000031C832C2E08F000031383166C08031707
:1018B0008312AF0070080319612CAF0CAF13FF3F08
:1018C0005B2C0130AF05031383166A0884000317ED
:1018D00083123108800584173108800584132F088E
:1018E000003A0319772C841730088004841360278A
:1018F000841703173008800484132E08073A03194D
:10190000832CAE0A4E2C8A110A1661218A150A12FE
:101910008A110A1661218A150A1208000313831618
:10192000EC016B08F1000130F000710803199C2CE8
:10193000F00D7010FF3F962C7008EE007009EF005C
:10194000ED016D08073C031CDA2C6A0884006F085F
:10195000800584176F0880058A1188278A156E080C
:10196000800484138A1188278A156E080005F10007
:101970007108003A0319C92C6D08F1000130F0001C
:1019800071080319C72CF00D7010FF3FC12C7008AF
:10199000EC048A110A1661218A150A128A110A16A4
:1019A00061218A150A1283166D08073A0319DA2C89
:1019B000ED0AA12C6C08F0000800031383166A08D6
:1019C000013A031DE62C8030EA00FD2C6A08023A39
:1019D000031DED2CC030EA00FD2C6A08033A031DFC
:1019E000F42C9430EA00FD2C6A08043A031DFB2C09
:1019F000D430EA00FD2C8030EA006B03F0006A0866
:101A0000F0077008EA00700803178312BA00C622B4
:101A1000A8018316ED016D086C0784000008F20030
:101A20007208003A0319232D6D086C078400000822
:101A300003178312B3008A110A164A218A150A1263
:101A40008316ED0A0B2D01308312A800080003173E
:101A50008312B501B601B901340884000008B8004A
:101A60008A110A1616218A150A127008003A0319FB
:101A7000682D8A110A169C208A150A127008B70070
:101A800035083307F100710884007108840070087C
:101A9000800037083806031D522D36083502B9007C
:101AA000B60A542DB601B90136083407840000087F
:101AB000F1007108B8007108003A031D602D692D0E
:101AC000B50A3508143C0318682D1330B900692D88
:101AD000302D39083307F000700884007008840046
:101AE0008001080003138312B8013808073C031C67
:101AF000AF2DA030F10038086F07F00070087107B3
:101B000084000008F2007208F1007108003A031D19
:101B10009A2D0130F2003808F1007208F0007108C7
:101B20000319962DF00D7010FF3F902DF0097008ED
:101B3000B905A92D0130F2003808F1007208F00053
:101B400071080319A72DF00D7010FF3FA12D70082B
:101B5000B9043808073A0319AF2DB80A752D3908AA
:101B60008316E1006108F0000800013003138316BA
:101B7000EC006A08093C0318BE2DEC0A6A08633CB5
:101B80000318C32DEC0A6B08840020308000840AFF
:101B90008000840A8000840A800184036C08003C71
:101BA0000318F02D0A30F4006A08F0008A110A16B2
:101BB00028218A150A127808F0003030700780005A
:101BC00084030A30F40083166A08F0008A110A16AA
:101BD00028218A150A1270088316EA00EC03CE2D1C
:101BE0000800073003138316EA00EB01BE30EC0057
:101BF0003A24B8013808083C031C1A2E8A110A1628
:101C000061218A150A124230F00038087007EF008F
:101C100007308316EA00EB018E2483126F088400DC
:101C20006F088400700880003808083A03191A2EDB
:101C3000B80AFA2D8A11E7268A15080003138316BD
:101C40006B08F1000130F000710803192B2EF00D24
:101C50007010FF3F252E7008ED00F0097008EE00AF
:101C60006A0884007008800584176E0880058A1150
:101C70000A1658218A150A1283166D0880048413E7
:101C8000602783166D080005EC008A110A1658219A
:101C90008A150A1283166C08F000080003138312D9
:101CA000FB01FA01F9018030F800F10CF00C031C83
:101CB000622E7408F90775080318750FFA070318E0
:101CC000FB0A0310F01F6A2E7408FA077508031840
:101CD000750FFB07FB0CFA0CF90CF80C031C552EC6
:101CE0007B08F3007A08F2007908F1007808F00028
:101CF000080000340F340F34003400340034003452
:101D00000334003418341C340E34063406340E34D4
:101D10001C34033400340034003400340F340F34E6
:101D200000341C340E34063406340E341C3418349B
:101D3000003408000034003400340034013403342B
:101D400007340E3400340C341C341834103400348E
:101D500000340C340C340F340F34003400340034AD
:101D6000003400340C341E341E340C340C340C3467
:101D70000C3400340800003407340F340C340034C1
:101D8000003400340034003418341C340E3406346B
:101D900006340E341C34033407340E340C340C3443
:101DA0000F340F3400341034003400340034003465
:101DB0001E341E34003408000034033407340E345B
:101DC0000C340C340C340C34003418341C340E3401
:101DD00006340634063406340C340C340C340C341B
:101DE0000E34073403340034063406340634063423
:101DF0000E341C341834003408000034003401342C
:101E000003340734003400340034003418341834F8
:101E100018341834183418341834003400340034AA
:101E200000340034033403340034183418341834C4
:101E3000183418341E341E340034080000340F34B3
:101E40000F340C340C340C340F340F3400341C3485
:101E50001C340034003400341C341E34003400348C
:101E6000003400340C340F340734003406340634A4
:101E7000063406340E341C341834003408000034A0
:101E8000033407340E340C340C340C340E34003468
:101E900018341C340E340634063406340E34073439
:101EA0000334003400340C340F34073400341E344F
:101EB0001E34063406340E341C3418340034080042
:101EC000193003138312FA00FA0B642F000000008C
:101ED0000800FF3FFF3FFF3FFF3FFF3FFF3FFF3F48
:101EE000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F02
:101EF000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FF2
:101F0000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FE1
:101F1000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FD1
:101F2000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FC1
:101F3000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FB1
:101F4000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FA1
:101F5000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F91
:101F6000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F81
:101F7000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F71
:101F8000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F61
:101F9000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F51
:101FA000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F41
:101FB000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F31
:101FC000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F21
:101FD000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F11
:101FE000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F01
:101FF000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FF1
:102000000313831207148316071083126F08003A14
:10201000031D122807101330FA00FA0B0D280000D8
:102020000000172807108A110A1288270A160714B9
:1020300083160714042108000034033407340E34D7
:102040000C340E3407340334003418341C340E348A
:1020500006340E341C34183407340E340C340C346B
:102060000E340734033400341C340E340634063482
:102070000E341C34183400340800003403340734A0
:102080000E340C340C340F340F34003418341C3438
:102090000C34003400341C341E340E340C340C3434
:1020A0000C340E340734033400340E340634063452
:1020B00006340E341C3418340034080000340F3455
:1020C0000F340C34003400340034003400341E3437
:1020D0001E340634063406340E341C340134033402
:1020E0000734063406340634063400341034003421
:1020F000003400340034003400340034080003138A
:102100008312F801F9011030FC00710DF80DF90D82
:102110007408F8027508031C750FF9020318972854
:102120007408F80775080318750FF9070310F00D08
:10213000F10DFC0B85280800031383121A080317FE
:10214000BA00023003131805F1007108003AFF309D
:1021500003190030F00001307005F1007108013AF8
:10216000031DB4281812181603173A08F0000800C7
:1021700003178312B401330884000008B500350842
:10218000003A0319CE283508BA00EA200317B40A2A
:102190003408330784000008B500BF280800031383
:1021A00083169816903083129800831687170713AA
:1021B000203083120C05F1007108003AFF3003193A
:1021C0000030F00001307005F1007108013A031988
:1021D000D82808000230031383161805F10071088F
:1021E000003AFF3003190030F00001307005F100B3
:1021F0007108003A031DFE280000EA280317831225
:102200003A080313990008000B3003138312FB00F4
:10221000FF30FA00FB0B0D291029FA0B0D290A29B2
:102220005B30FA00FA0B122900000800203003137B
:1022300083120C05F1007108003AFF3003190030D9
:10224000F000013070050317BA003A08F0000800EA
:1022500003138312F8010830FC00700DF80D7408A8
:10226000F80203183529F8070310F00DFC0B2D298F
:102270000800083003138312FB00FF30FA00FB0B49
:1022800042294529FA0B42293F291E30FA00FA0B50
:102290004729080003138312A80103173308BA0063
:1022A0008A150A12C6228A110A160130A8000800EF
:1022B000A53003138312FA00FA0B5C29000000001A
:1022C0000800103003138312FA00FA0B652900008E
:1022D0000800031383122B088A00290882000800D3
:1022E000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FFE
                                |
                            ( cut )
                                |
:103E6000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F62
:103E7000FF3FFF3FFF3FFF3F00000B2A0000000015
:103E8000831603131930990083120313903098009E
:103E900083160313243098000230F500D627C13C66
:103EA0000319552FF50B4E2FED2FEA30CE27813019
:103EB000CE270030CE2783014B30CE27F001D62706
:103EC000D627831203178F00F600D6278312031715
:103ED0008D00D627F700D627F10020308400D627A2
:103EE0008000840AF10B6F2FF008031DBD2F2030D6
:103EF0008400F7187F2F7719AA2F78145B2F781C6E
:103F0000822FF8010430F900FA0083120317000829
:103F10008C00840A00088E00840A8430C027831233
:103F200003178D0AF90B872F8D03831603178C1740
:103F30000C140000000084030008831203178E0293
:103F4000031DBA2F840300088C02031DBA2FFA0B3D
:103F5000942F5B2F0008831203178C000430C027B6
:103F60008C18B02F0C140008831203178C02031D49
:103F7000BA2F5B2F5630CE275E2F4E30CE275E2FC6
:103F8000831603178C0055308D00AA308D008C14D9
:103F9000000000008C18CA2F0C11080083120313B4
:103FA000990083160313981CD32F08000C30F200DD
:103FB0006430F300F4016400831203138C1EE72FB6
:103FC000831203131A08F007831203130800F40B7B
:103FD000DB2FF30BDA2FF20BD82F83120313980188
:103FE0008316031398013D2FFF3FFF3FFF3FFF3F25
:103FF000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FD1
:02400E00323F3F
:00000001FF

As i see, there is a modification in the bootloader section
before download =
:103E7000FF3FFF3FFF3FFF3FFF3F8A110A12000055
after download =
:103E7000FF3FFF3FFF3FFF3F00000B2A0000000015

Sorry for this very long post, but i hope that will help Mikael (or someone else) to find where is the mistake. We are near the goal...
HB
Reply
#13
Just follow the manual and it will work Wink

I'll make add note about this in the gui alo.

Quote:6. Adjust user application, PIC16 only
The first 1-2 instructions of the PIC16 user application should alter the PCLATH register.
PIC16 mid-range
The first 2 instructions of the user application should be bsf/bcf of PCLATH bit 3 & 4.
Reply
#14
Nevermind, here's a new version that takes care of it automatically. No need to add those instructions.

[broken link]
Note: this file will eventually be removed.
Reply
#15
Don't use the above version. It was a little to late when I made the fix Smile It's not working.
I'll get back with a new version.
Reply
#16
Here's a new version, please try it and let us know how it works.

[broken link]
Note: this file will eventually be removed.
Reply
#17
Super! Big Grin
it works very well with the 16F876A.
You can make an official version with that one (ds30_Loader_101127).
As soon as I can, I try with a 16F877A, and I give you the result, but it should also be good.
Again thank you, Mikael.

PS: i will also test with a 18F4550, 18F2550 and 18F4620.
Reply
#18
Thanks for being patient helping out to find a solution! Smile

Great, looking forward to see the result for those other PIC's.
Reply
#19
Hello, it's me again Tongue
it works very well with a 18F4620 but I had to comment on the following 3 lines :
Code:
    #ifdef    ADCON1
        error Do you need to configura uart pins to be digital? If not, remove this line
    #endif
otherwise MPLAB gave me an error.

Let's go to test with 18F4550...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)