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

Broken Break Point in MPLAB X v5.1 & CCS v5.081

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



Joined: 06 Oct 2020
Posts: 3

View user's profile Send private message

Broken Break Point in MPLAB X v5.1 & CCS v5.081
PostPosted: Tue Oct 06, 2020 10:03 am     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Oct 06, 2020 10:43 am     Reply with quote

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

View user's profile Send private message

Broken Break Point in MPLAB X v5.1 & CCS v5.081
PostPosted: Wed Oct 07, 2020 2:40 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Oct 07, 2020 3:32 am     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Oct 13, 2020 4:00 am     Reply with quote

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..\\\


Laughing Laughing Laughing Laughing
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