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 CCS Technical Support

PCD problems debugging bootloader in aux_memory (PIC24EP)

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



Joined: 23 Jan 2019
Posts: 29
Location: Argentina

View user's profile Send private message

PCD problems debugging bootloader in aux_memory (PIC24EP)
PostPosted: Wed May 15, 2019 10:27 am     Reply with quote

I am developing a bootloader based on the ex_pcd_aux_bootloader.c example with PCD 5.085 compiler.

The problem is that the ICDU debugger does not work anymore when the following options are placed.
Code:

#fuses RESET_AUX 
#build (AUX_MEMORY)
 

When opening the debugger in the PCD compiler, it remains freezed when it tries to load the program to target (loading 1% ...).

Is there any workaround for this problem?



Incidentally, I take the opportunity to report a bug in version 2018 of the xxxx file, they omitted the line that was in the 2016 version of the same file
 
#fuses NOWDT, RESET_AUX // The RESET_AUX fuse causes PIC to reset into Auxiliary Memory

Obviously without this fuse, the program does not start as it tries to boot from the primary memory
Ttelmah



Joined: 11 Mar 2010
Posts: 19506

View user's profile Send private message

PostPosted: Wed May 15, 2019 1:34 pm     Reply with quote

Problem is going to be the executive.
ICM is dependant on a code executive loaded into memory. When you
switch to the aux memory this is going to be missing. You need to work
out some way of ensuring a second copy is put into the aux memory.
I think you really need to talk to CCS about this, since they are the only
people who will know how the ICD loads the executive, and whether it is
possible to load two copies.
SergioMForster



Joined: 23 Jan 2019
Posts: 29
Location: Argentina

View user's profile Send private message

PostPosted: Wed May 15, 2019 2:01 pm     Reply with quote

Thank you very much for your response (you are always willing to help everyone Very Happy )

I already sent the case to CCS Support.
Ttelmah



Joined: 11 Mar 2010
Posts: 19506

View user's profile Send private message

PostPosted: Wed May 15, 2019 11:05 pm     Reply with quote

It's an interesting problem.
If you look online, you will see that MicroChip also has issues with
their ICD's and handling aux memory. The ICD4, seems to be the
first one that gets close to working. It's a feature that very few people
are using, and debug support is 'patchy' at best.
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