Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pic18f2620 firmware [solved]
#1
I need boot-loader firmware to write inside a PIC18f2620

Thanks for help

Giuliano
Reply
#2
Firmware for PIC18F now found in the Zip file version of DS30.
Now I have 15 error assembling the source.
I think is a setting.inc setup.... any help to setup this inc file for PIC18F2620 with XTAL 20 MHz ?
thanks
Reply
#3
new progress!

now assebly is OK (was case sensitive problem).

Boot work well, I can download my application as many time I need with DS30, but application don't start to RESET!
Why?
Reply
#4
Great! What was the case problem? Something you caused yourself?

What do you mean don't start to reset?
Reply
#5
When I use DS30
I have this message:
there's no GOTO at location 0x00
I am able to write flash only if I use Advanced and mode "Don' t write GOTO... "

My application is written with Melabs PICBASIC Pro
I have used also the DEFINE BOOT_LOADER 1 directive

Wrinting my application with programmer it work well
Reply
#6
Ok, attach the hex file or send it to me.
The boot loader doesn't know how to call the application because there is no goto at 0x00.
Reply
#7
Ok,
I don't know if I can send as attachment, so i send the text file. If useful i can send the .lst too
Thanks for help!
Giuliano
This is a little diagnostic file compiled with PICBASIC (Melabs)

:020000040000FA
:06000000136AC6EF00F0D8
:08000800046E19C0EAFF175055
:10001000120FE96E1550EF1217C0E9FFEF140CA094
:10002000151811E0046608D00A50FF0F0DE30A0E00
:10003000A5EC00F00A5008D00428FF0E04E0042CC0
:1000400002D00B5001D00D1E0D32C3EF00F00C504A
:10005000006E0D50016E026A036A000000D00400B9
:100060009EBA13D0FF0E0226D8A00326D8A00026E1
:10007000D8A00126D8A0C3EF00F00248033CEDD77A
:10008000FA0E026E000E036EEAD7AE50D880C3EFB0
:1000900000F004009EA8FDD7AD6ED880C3EF00F03D
:1000A000076E819C81988198939C93989398F00E09
:1000B0009316075013B222D03A0E016E980EB4EC8C
:1000C00000F0330E066E30D8130E016E880EB4ECBD
:1000D00000F02AD8640EB3EC00F026D8640EB3EC1E
:1000E00000F0220E066E20D8280E07D80C0E05D878
:1000F000060E03D81382075001D01380066E13A09A
:100100000BD0819803080EE30DD8070E016ED00EB8
:10011000B4EC00F0D88012001380FE08D8B4C3EF0E
:1001200000F08188063A13A01390818CF00E81169E
:1001300006500F0B8112819C063A13B0F5D7320E90
:10014000B3EC00F0D880C3EF00F0036A026EFF0E3C
:100150000226D8A00326D8A0C3EF00F0030E016E3C
:10016000E60E02D8F4D7016AFC0F006E011ED8A07B
:1001700006D0FF0E00000026D8B0FCD700260400F1
:10018000013EF7D71200000104001200030EAF6E0B
:10019000A00EAC6E900EAB6E1B6A1C6A1D6A1E6AC6
:1001A0001F6A206A216A226A0F0EC16E070EB46EA2
:1001B000FF0E926E800E936E819AFF0E236EFF0EDD
:1001C000AF6EC5EC03F0E5EC03F0DEEC03F0500E8F
:1001D00067DF490E65DF430E63DF200E61DF640ECB
:1001E0005FDF690E5DDF610E5BDF670E59DF6E0E4C
:1001F00057DF6F0E55DF730E53DF740E51DF690E3C
:100200004FDF630E4DDF200E4BDF200E49DF640E03
:100210009CDF800E176E0F0E196E010E156E0C6AA4
:10022000640E0A6E320E0B6E0D6A1B50EDDE1B6EF5
:10023000D8B0F7EF01F0DEEC03F0310E31DF320E13
:100240002FDF300E2DDF300E2BDF200E29DF620E68
:1002500027DF610E25DF750E23DF640E21DF200E00
:100260001FDF740E1DDF650E1BDF730E19DF740EAA
:1002700017DF310E15DF010E036E2C0E67DFC5ECA4
:1002800003F04B0E0DDF650E0BDF790E09DF200E3C
:1002900007DF310E05DF200E03DF700E01DF720E67
:1002A000FFDE650EFDDE730EFBDE730EF9DE650EFE
:1002B000F7DE640EF5DE200EF3DE200EF1DE200EFA
:1002C000EFDE010E036E2C0E41DF310EE2DE320E48
:1002D000E0DE330EDEDE340EDCDE350EDADE360E28
:1002E000D8DE370ED6DE380ED4DE390ED2DE300E32
:1002F000D0DE610ECEDE620ECCDE630ECADE640E90
:10030000C8DE650EC6DE660EC4DE0A0EC2DE0D0E47
:10031000C0DEE80E0C6E030E0D6E99DED8A079D704
:10032000106E95DED8A075D7116E91DED8A071D76A
:10033000126E8DDED8A06DD7136E89DED8A069D776
:10034000146E85DED8A065D7156E81DED8A061D782
:10035000166E7DDED8A05DD7176E79DED8A059D78E
:10036000186E75DED8A055D7196E71DED8A051D79A
:100370001A6E6DDED8A04DD71B6E69DED8A049D7A6
:100380001C6E65DED8A045D71D6E61DED8A041D7B2
:100390001E6E5DDED8A03DD71F6EDEEC03F0E5ECEF
:1003A00003F010507DDE11507BDE125079DE1350C9
:1003B00077DE145075DE155073DE165071DE17505F
:1003C0006FDE18506DDE19506BDE1A5069DE1B505F
:1003D00067DE1C5065DE1D5063DE1E5061DE1F505F
:1003E0005FDE030E036EE80EB1DEE5EC03F0800E77
:1003F000176E0F0E196E020E156E0C6A640E0A6EE1
:10040000320E0B6E0D6A1C5004EC00F01C6ED8B05E
:100410002CEF02F0C5EC03F04B0E42DE650E40DE21
:10042000790E3EDE200E3CDE320E3ADE200E38DE45
:10043000700E36DE720E34DE650E32DE730E30DE86
:10044000730E2EDE650E2CDE640E2ADE200E28DEF4
:10045000200E26DE200E24DE800E176E0F0E196E83
:10046000040E156E0C6A640E0A6E320E0B6E0D6A67
:100470001D5004EC00F01D6ED8B06AEF02F0C5EC20
:1004800003F04B0E0DDE650E0BDE790E09DE200E3D
:1004900007DE330E05DE200E03DE700E01DE720E67
:1004A00050EC00F0650E50EC00F0730E50EC00F0D4
:1004B000730E50EC00F0650E50EC00F0640E50EC42
:1004C00000F0200E50EC00F0200E50EC00F0200E5A
:1004D00050EC00F0800E176E0F0E196E100E156E98
:1004E0000C6A640E0A6E320E0B6E0D6A1E5004EC1E
:1004F00000F01E6ED8B0AFEF02F0C5EC03F04B0E6B
:1005000050EC00F0650E50EC00F0790E50EC00F06D
:10051000200E50EC00F0350E50EC00F0200E50ECA8
:1005200000F0700E50EC00F0720E50EC00F0650E12
:1005300050EC00F0730E50EC00F0730E50EC00F035
:10054000650E50EC00F0640E50EC00F0200E50EC04
:1005500000F0200E50EC00F0200E50EC00F0800E69
:10056000176E0F0E196E080E156E0C6A640E0A6E69
:10057000320E0B6E0D6A1F5004EC00F01F6ED8B0E7
:10058000F4EF02F0C5EC03F04B0E50EC00F0650EFA
:1005900050EC00F0790E50EC00F0200E50EC00F022
:1005A000340E50EC00F0200E50EC00F0700E50ECC9
:1005B00000F0720E50EC00F0650E50EC00F0730E7F
:1005C00050EC00F0730E50EC00F0650E50EC00F0B3
:1005D000640E50EC00F0200E50EC00F0200E50ECB9
:1005E00000F0200E50EC00F0800E176E0F0E196E0A
:1005F000200E156E0C6A640E0A6E320E0B6E0D6ABA
:10060000205004EC00F0206ED8B039EF03F0C5ECB8
:1006100003F04B0E50EC00F0650E50EC00F0790E3C
:1006200050EC00F0200E50EC00F0360E50EC00F0D4
:10063000200E50EC00F0700E50EC00F0720E50ECFA
:1006400000F0650E50EC00F0730E50EC00F0730EED
:1006500050EC00F0650E50EC00F0640E50EC00F031
:10066000200E50EC00F0200E50EC00F0200E50EC6C
:1006700000F0810E176E0F0E196E800E156E0C6A4B
:10068000640E0A6E320E0B6E0D6A215004EC00F0FF
:10069000216ED8B07EEF03F0C5EC03F04B0E50ECAA
:1006A00000F0650E50EC00F0790E50EC00F0200EDA
:1006B00050EC00F0380E50EC00F0200E50EC00F042
:1006C000700E50EC00F0720E50EC00F0650E50EC25
:1006D00000F0730E50EC00F0730E50EC00F0650E5D
:1006E00050EC00F0640E50EC00F0200E50EC00F0E6
:1006F000200E50EC00F0200E50EC00F0810E176E32
:100700000F0E196E200E156E0C6A640E0A6E320EF4
:100710000B6E0D6A215004EC00F0216ED8B009EF89
:1007200001F0C5EC03F04B0E50EC00F0650E50EC00
:1007300000F0790E50EC00F0200E50EC00F0370E77
:1007400050EC00F0200E50EC00F0700E50EC00F079
:10075000720E50EC00F0650E50EC00F0730E50EC91
:1007600000F0730E50EC00F0650E50EC00F0640EDB
:1007700050EC00F0200E50EC00F0200E50EC00F099
:10078000200E50EC00F009EF01F0FE0E50EC00F0EE
:10079000C00E50EC00F01200010E246E0400245034
:1007A000255CD8A0DDEF03F0FE0E50EC00F0140E37
:1007B00050EC00F0242AD8A4F1D71200FE0E50EC21
:1007C00000F0020E50EC00F01200200E50EC00F091
:1007D000200E50EC00F0200E50EC00F0200E50ECFB
:1007E00000F0200E50EC00F0200E50EC00F0200E37
:1007F00050EC00F0200E50EC00F0200E50EC00F019
:10080000200E50EC00F0200E50EC00F0200E50ECCA
:1008100000F0200E50EC00F0200E50EC00F0200E06
:0C08200050EC00F0200E50EC00F0120034
:020000040030CA
:03000100021F1FBC
:020005008381F5
:060008000FC00FE00F40E5
:00000001FF
Reply
#8
Ok, unfortunately many BASIC compilers don't follow that "standard" with the goto at 0x00.
I will support this in the next version. In the meantime you will need to replace
Code:
:06000000136AC6EF00F0D8
with
Code:
:04000000C6EF00F057

AND

add the equivalent of this code the first thing in your main:
Code:
unsigned char *a = 13;
*a = 0;
Reply
#9
ok, it work! but only for the test program.
I have modified another file .... boot-loader program the PIC but application don't run.

See the first bytes of the .hex file
:020000040000FA
:06000000186AD2EF01F0C6
:020008001200E4
:080018001200046E1EC0EAFF95
:100020001C50120FE96E1A50EF121CC0E9FFEF14BA
:100030000CA01A1811E0046608D00A50FF0F0DE357
:10004000010E28EC01F00A5008D00428FF0E04E04D
:1000
Reply
#10
Please try this new version:
[broken link]
Reply
#11
oK,
IT WORK GREAT!!!!!
I have programmed two applications that are working well.... tomorrow I test better .... (now it is 1.27 in the nigth)
many thanks
Giuliano
Reply
#12
Thanks for the report!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)