View previous topic :: View next topic |
Author |
Message |
SergioMForster
Joined: 23 Jan 2019 Posts: 29 Location: Argentina
|
PCD problems debugging bootloader in aux_memory (PIC24EP) |
Posted: Wed May 15, 2019 10:27 am |
|
|
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: 19537
|
|
Posted: Wed May 15, 2019 1:34 pm |
|
|
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
|
|
Posted: Wed May 15, 2019 2:01 pm |
|
|
Thank you very much for your response (you are always willing to help everyone )
I already sent the case to CCS Support. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19537
|
|
Posted: Wed May 15, 2019 11:05 pm |
|
|
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. |
|
|
|