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

Search found 17 matches
CCS Forum Index
Author Message
  Topic: Help with possible compiler bug or leak in my own code.
mathewss

Replies: 13
Views: 21809

PostForum: General CCS C Discussion   Posted: Thu Jan 05, 2017 12:17 am   Subject: Help with possible compiler bug or leak in my own code.
Ok finally got a chance to test the new compiler version tonight.

CCS PCH C Compiler, Version 5.062
Again this is a pic18f26k22.

Looks like it preserves FF5,FF6 and FF7 but not FF8.
Looking t ...
  Topic: Help with possible compiler bug or leak in my own code.
mathewss

Replies: 13
Views: 21809

PostForum: General CCS C Discussion   Posted: Fri Dec 30, 2016 1:47 pm   Subject: Help with possible compiler bug or leak in my own code.
Cool switch thanks! had not noticed that one in docs before. Did a test with the sample code above and it did not seem to change the interrupt vector code it still skips the table registers.

The Li ...
  Topic: Help with possible compiler bug or leak in my own code.
mathewss

Replies: 13
Views: 21809

PostForum: General CCS C Discussion   Posted: Thu Dec 29, 2016 10:44 pm   Subject: Help with possible compiler bug or leak in my own code.
looks like the compiler version you have did save the table registers and here is what I get no save.

Thanks! for doing the test.

As I mentioned I was stuck on this version because at the time o ...
  Topic: Help with possible compiler bug or leak in my own code.
mathewss

Replies: 13
Views: 21809

PostForum: General CCS C Discussion   Posted: Thu Dec 29, 2016 7:19 pm   Subject: Help with possible compiler bug or leak in my own code.
meh.. much better and fewer errors but still I am getting corrupt data sometimes.

Maybe I missed some byte :(
  Topic: Help with possible compiler bug or leak in my own code.
mathewss

Replies: 13
Views: 21809

PostForum: General CCS C Discussion   Posted: Thu Dec 29, 2016 6:48 pm   Subject: Help with possible compiler bug or leak in my own code.
I am using PCHL or Linux version.

CCS PCH C Compiler, Version 5.011, xxxxx 29-Dec-16 16:38

The last dump was the interrupt vector generated just after the initial jump to program space. ...
  Topic: Help with possible compiler bug or leak in my own code.
mathewss

Replies: 13
Views: 21809

PostForum: General CCS C Discussion   Posted: Thu Dec 29, 2016 2:26 pm   Subject: Help with possible compiler bug or leak in my own code.
PIC18F26K22. Most of ASM code is clear as day just like any I have done over the past 35 or more years but some of the PIC specific operations I am not well studied on such as the table read and write ...
  Topic: Help with possible compiler bug or leak in my own code.
mathewss

Replies: 13
Views: 21809

PostForum: General CCS C Discussion   Posted: Thu Dec 29, 2016 12:46 pm   Subject: Help with possible compiler bug or leak in my own code.
Hmm maybe some idea.

I am now doing memcpy in my #INT routine moving data from code space to ram so this is doing a TBLPTR operation.

Now I am thinking this is a race condition and the registers ...
  Topic: Help with possible compiler bug or leak in my own code.
mathewss

Replies: 13
Views: 21809

PostForum: General CCS C Discussion   Posted: Thu Dec 29, 2016 12:25 pm   Subject: Help with possible compiler bug or leak in my own code.
I am not sure what the feature is called but if someone knows it will I hope make googling a little easier. I am using Version 5.011 on Ubuntu as I have been for years. I have tried a newer compiler b ...
  Topic: Best way to use pcm and pch on one system
mathewss

Replies: 2
Views: 3252

PostForum: General CCS C Discussion   Posted: Sun Feb 21, 2010 1:35 am   Subject: Best way to use pcm and pch on one system
Hay all.

I have pchl and pcml and have a common code I am compiling for different pic chips, a 16f877 and a 18f2420.

I would prefer to not to have to change my /etc/ccsc.ini every time and k ...
  Topic: Functions previously on PIC called later
mathewss

Replies: 1
Views: 2568

PostForum: General CCS C Discussion   Posted: Sat Jan 02, 2010 5:57 pm   Subject: Functions previously on PIC called later
I would like to put a few functions in a block of the pic that I can later call from my main code that I will upload later.

As an example my bootloader has usb_write and usb_read
I also use these ...
  Topic: String initialization
mathewss

Replies: 10
Views: 12039

PostForum: General CCS C Discussion   Posted: Fri Feb 20, 2009 6:31 pm   Subject: Constants and strings storing in eeprom to save code ROM
I have been trying to figure out a good way to keep all of my constant stings in ROM to free up as much program memory as possible.

This does not seem to work.

I am using pcml on an PIC16F877a ...
  Topic: problem comparing #bit values
mathewss

Replies: 5
Views: 5741

PostForum: General CCS C Discussion   Posted: Wed Sep 24, 2008 9:41 am   Subject: problem comparing #bit values
Sweeet....

thats a huge improvement thanks.
  Topic: problem comparing #bit values
mathewss

Replies: 5
Views: 5741

PostForum: General CCS C Discussion   Posted: Tue Sep 23, 2008 8:35 pm   Subject: problem comparing #bit values
Thanks Frank very much what that is what I figured.

Reading the ASM code my test case used it sure didnt seem right.

The ASM output from your method looks right. Now can it be improved?

Anyo ...
  Topic: need help IR program...
mathewss

Replies: 3
Views: 4755

PostForum: General CCS C Discussion   Posted: Tue Sep 23, 2008 11:39 am   Subject: need help IR program...
It sounds like you want a light break alarm of sorts.

When the light beam no longer hits the light sensor a trigger happens..

What exactly does this have to do with 3hkz i dont understand what y ...
  Topic: Help searching a byte pattern within an array of bytes.
mathewss

Replies: 1
Views: 3319

PostForum: General CCS C Discussion   Posted: Tue Sep 23, 2008 11:25 am   Subject: Help searching a byte pattern within an array of bytes.
I do not believe this will work well for you if I understand your needs.

In your code you are only looking at your pattern on the byte boundary.

If your pattern exists on 2 bytes ie the lower ni ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group