View previous topic :: View next topic |
Author |
Message |
vigneshwaran.j
Joined: 06 Oct 2020 Posts: 3
|
Broken Break Point in MPLAB X v5.1 & CCS v5.081 |
Posted: Tue Oct 06, 2020 10:03 am |
|
|
Hi ,
This is the configuration I used for my work:
o MPLAB X IDE v5.10
o PIC18F67K90
o PIC18F-K_DFP (1.5.92)
o CCSC (v5.081) [C:\PROGRA~2\PICC]
o Debug Image: COFF
o Optimization: 9 & 0 (both tried)
o PICKIT3 used as Debugger
o Both Windows 7 x64 & Windows 10 x64
Before proceeding to full project development,
I used just two source files(.c) & one header file(.h)
The problem is when working with one source file (File_1.c ) & Header file (Device.h) the compiler & X ide allows the breakpoint.
If i'm adding another source file (File_2.c) the compiler or X ide doesn't allow the breakpoint.
Instead the breakpoints are went to broken state and the Breakpoints window says
Line F:\ILM_SIM_CCS.X\File_2.c:18 - Not resolvable to a valid memory address
Line F:\ILM_SIM_CCS.X\File_2.c:24 - Not resolvable to a valid memory address
Line F:\ILM_SIM_CCS.X\File_1.c:72 - Not resolvable to a valid memory address
In this case,
if i'm using only one source file (File_1.c) & Header file (Device.h) there is no broken breakpoint in the line (wherever the breakpoint in the line - no issues).
I hope you can understand our issues.
Please give me the suggestion / solution
We are in an urgent basis of product development. _________________ Try n Try again |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9245 Location: Greensville,Ontario
|
|
Posted: Tue Oct 06, 2020 10:43 am |
|
|
The CCS C compiler is normally used with ONE source file, though 'Multiple Compilation Units' is allowed.... I've never done it, as everyone here show lots of problems in using 'MCU's.
Typically I'll have one 'source' and within it '#include' other files like LCD driver, RTC driver, etc. |
|
|
vigneshwaran.j
Joined: 06 Oct 2020 Posts: 3
|
Broken Break Point in MPLAB X v5.1 & CCS v5.081 |
Posted: Wed Oct 07, 2020 2:40 am |
|
|
Yes in CCS they are saying it is cable of multiple compilation units.
Previously we used MPLAB + CCS v4.09 and now we migrated to newer versions as v5.081 + MPLAB X ide.
Its created a frustration with CCS in this migration.
hitech compiler is working for this case |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19546
|
|
Posted: Wed Oct 07, 2020 3:32 am |
|
|
Honestly the best way of using CCS, is to not use MCU's.
What you do is have just the primary source file in the source files list,
and put the other source files into the 'header files' section. Then ensure the
primary file does #include the others. Everything then merrily works. |
|
|
vigneshwaran.j
Joined: 06 Oct 2020 Posts: 3
|
|
Posted: Tue Oct 13, 2020 4:00 am |
|
|
Hi Ttelmah,
Thanks for your valuable guidance.
Now it's working fine and i can able to debug without broken breakpoint,
What i did was:
Included my source files & its required .h files in main.c
I'll post a query if any further deviations/struggles occurred.
Thanks once again..\\\
|
|
|
|