View previous topic :: View next topic |
Author |
Message |
naughty_mark
Joined: 29 Aug 2012 Posts: 97
|
5.001 Beta - Problem of "write_program_memory" (SO |
Posted: Tue May 14, 2013 8:50 pm |
|
|
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: 9269 Location: Greensville,Ontario
|
|
Posted: Wed May 15, 2013 5:28 am |
|
|
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
|
|
Posted: Wed May 15, 2013 4:16 pm |
|
|
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
|
|
Posted: Wed May 15, 2013 7:12 pm |
|
|
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
Thanks for you guys attention.
Kind Regards
Mark |
|
|
|