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

5.001 Beta - Problem of "write_program_memory" (SO

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



Joined: 29 Aug 2012
Posts: 97

View user's profile Send private message

5.001 Beta - Problem of "write_program_memory" (SO
PostPosted: Tue May 14, 2013 8:50 pm     Reply with quote

Hi, All
Recently, I met a kind of problem when I use my bootloader on dsPIC33EP256MU814 and my compiler version is 5.001 for bootloader code, and version 4.133 to compile main program.

The problem is with same bootloader code in microchip, when I try to send hex file through RS232, sometimes the microcontroller stuck after a while. It wrote several bytes for example 51200Bytes, then for the next write(for example when it tries from address 0xC800(virtual address, twice of physical address)), it stuck and will be reset because of watchdog.

However, some of hex file won’t have this problem with the same bootloader code.

Anyone suffer this kind of problem before?

Thanks a lot
Mark


Last edited by naughty_mark on Wed May 15, 2013 7:11 pm; edited 1 time in total
temtronic



Joined: 01 Jul 2010
Posts: 9123
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed May 15, 2013 5:28 am     Reply with quote

I don't use ds33 PICS or the new compiler but...

Does your bootloader and main program work 100% every time if both are compiled with v4.133?
By 100% , I mean at least 20 tests with no problems on at least 3 different PICs?

If so, why 'upgrade' to v5.001?
Unless there is a new feature that you must have,you should stay with what you know is a reliable version of the compiler.

hth
jay
naughty_mark



Joined: 29 Aug 2012
Posts: 97

View user's profile Send private message

PostPosted: Wed May 15, 2013 4:16 pm     Reply with quote

temtronic wrote:
I don't use ds33 PICS or the new compiler but...

Does your bootloader and main program work 100% every time if both are compiled with v4.133?
By 100% , I mean at least 20 tests with no problems on at least 3 different PICs?

If so, why 'upgrade' to v5.001?
Unless there is a new feature that you must have,you should stay with what you know is a reliable version of the compiler.

hth
jay


Hi, Jay
Thanks to your reply. The reason I use v5.001 because it is can support bootloader feature on dsPIC33EP series chips well now. So the bootloader code use that compiler version, but main program still keep using old one which is stable to my code.

Kind Regards
Mark
naughty_mark



Joined: 29 Aug 2012
Posts: 97

View user's profile Send private message

PostPosted: Wed May 15, 2013 7:12 pm     Reply with quote

Hi, guys.

I debug deeper of my code, and found there is a bug to cause that problem, and now it is OK. Stupid me Embarassed

Thanks for you guys attention.

Kind Regards
Mark
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