CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

CCS bootloader with 16F1827

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
lovefool



Joined: 10 Nov 2013
Posts: 2

View user's profile Send private message

PostPosted: Sun Nov 10, 2013 3:48 am     Reply with quote

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.


Code:
Code:
Code:
Ttelmah



Joined: 11 Mar 2010
Posts: 19328

View user's profile Send private message

PostPosted: Sun Nov 10, 2013 9:37 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Nov 11, 2013 7:28 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group