View previous topic :: View next topic |
Author |
Message |
lovefool
Joined: 10 Nov 2013 Posts: 2
|
|
Posted: Sun Nov 10, 2013 3:48 am |
|
|
Hi
I have a trouble as well.
I have just compiled this ex_bootloader from 5.013 for 16F1827, and it compiled okay and seems working for triggering by PB and serial port communication.
Then I downloaded a small test program, this ex_bootloader writes only part of progarm.
My application should be from 0x300 to 0x349 but it writes only
0x318 - 0x31F
0x338 - 0x33F
Code: |
:0606000080311A2B0000FE
:0806080020308500023084005F
:1006100000080319192B0530F800F701F70B0E2B12
:10062000F80B0D2B2E30F700F70B142B172B800B2C
:100630000B2B08007A302100990023008C018D01DA
:100640002200920191019401930192019101940180
:10065000930121001D10203065000C1122000C15A3
:1006600004302000A100FA30A2000423A10B332B98
:1006700021000C1122000C1104302000A100FA30DE
:10068000A2000423A10B3F2B21000C1122000C150A
:04069000302B6300A8
:020000040001F9
:04000E00843FFF1E0E
:00000001FF
;PIC16F1827
;CRC=13E4 CREATED="10-11-13 18:08"
|
Program Memory
000300: 3180 2B1A 0000
000304: 3020 0085 3002 0084
000308: 0800 1903 2B19 3005 00F8 01F7 0BF7 2B0E
000310: 0BF8 2B0D 302E 00F7 0BF7 2B14 2B17 0B80
000318: 2B0B 0008 307A 0021 0099 0023 018C 018D
000320: 0022 0192 0191 0194 0193 0192 0191 0194
000328: 0193 0021 101D 3020 0065 110C 0022 150C
000330: 3004 0020 00A1 30FA 00A2 2304 0BA1 2B33
000338: 0021 110C 0022 110C 3004 0020 00A1 30FA
000340: 00A2 2304 0BA1 2B3F 0021 110C 0022 150C
000348: 2B30 0063
It seems this bl erases 32 words, but writes only last 8 words.
love
PS
I used SIO.exe.
|
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19510
|
|
Posted: Sun Nov 10, 2013 9:37 am |
|
|
This is a different problem.
It's a chip database error on the configuration of the flash memory. Several chips seem to have problems like this recently... :(
They have the setting set as 64/64 (which means it erases 64 bytes at a time, and writes 64 bytes at a time). In fact the chip needs 16/64.
If you have the IDE, you can change this through the device editor. If not, report it to CCS (do this anyway), and ask them to give you an updated .dat file. They should be able to do this very quickly.
Best Wishes |
|
|
lovefool
Joined: 10 Nov 2013 Posts: 2
|
|
Posted: Mon Nov 11, 2013 7:28 am |
|
|
SOLVED !
Thank you Ttelmah for your advice.
After I modified flash access from "16F 64/64" to "16F 16/64", it works correctly.
BTW, I added a line in main to accept my HW , the consumption of memory exceeded 2ff. The original code is just 0x2ff size. So I needed to change my HW.
Jay. |
|
|
|