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 14 matches
CCS Forum Index
Author Message
  Topic: Bigger size structure than actually declared
Remco

Replies: 3
Views: 7555

PostForum: General CCS C Discussion   Posted: Fri Jul 31, 2015 5:33 am   Subject: Bigger size structure than actually declared
But still after I find the solution, it behaves strange. Sometimes it will add those extra bytes but sometimes it will not. Very strange
  Topic: Bigger size structure than actually declared
Remco

Replies: 3
Views: 7555

PostForum: General CCS C Discussion   Posted: Fri Jul 31, 2015 2:34 am   Subject: Bigger size structure than actually declared
I just tried and it explained it.
What they say in the datasheet is actually true. Only they also look if there is an another int8 previous, if so they combined the two. They just don't add an extra ...
  Topic: Bigger size structure than actually declared
Remco

Replies: 3
Views: 7555

PostForum: General CCS C Discussion   Posted: Fri Jul 31, 2015 2:02 am   Subject: Bigger size structure than actually declared
Goodday, it's me again.

Today I have a question about how CCS handles structures. Because of a previous post I switched to variables inside a structure. The program works fine with it. The next ti ...
  Topic: ADDRESS ERROR TRAP INTERRUPT PIC24H
Remco

Replies: 33
Views: 65973

PostForum: General CCS C Discussion   Posted: Fri Jul 24, 2015 3:39 am   Subject: ADDRESS ERROR TRAP INTERRUPT PIC24H
I wrote the code exactly as you suggested. And with a touch on a button your suggested trap code will be executed. When the button is pressed I get the value thru UART that is connected to a PC. The v ...
  Topic: ADDRESS ERROR TRAP INTERRUPT PIC24H
Remco

Replies: 33
Views: 65973

PostForum: General CCS C Discussion   Posted: Fri Jul 24, 2015 2:50 am   Subject: ADDRESS ERROR TRAP INTERRUPT PIC24H
Yup you are wright. Did everything as it was writing. Get exactly the address at which it must go bad. It was also exactly the same as I had before I made the post. So thank you for your quick test, n ...
  Topic: ADDRESS ERROR TRAP INTERRUPT PIC24H
Remco

Replies: 33
Views: 65973

PostForum: General CCS C Discussion   Posted: Fri Jul 24, 2015 12:50 am   Subject: ADDRESS ERROR TRAP INTERRUPT PIC24H
Hi, it's me again.

I'm again facing a problem. This time it's with an address error when I'm reading out a software UART with a hardware UART running on interrupt. Time to time the uc reset himself ...
  Topic: Strange misbehaving array
Remco

Replies: 14
Views: 14894

PostForum: General CCS C Discussion   Posted: Thu Jul 23, 2015 4:05 am   Subject: Strange misbehaving array
We will see. It would make even a better compiler then it already is.
  Topic: Strange misbehaving array
Remco

Replies: 14
Views: 14894

PostForum: General CCS C Discussion   Posted: Mon Jul 20, 2015 2:55 am   Subject: [SOLVED] Strange misbehaving array
I probably have found the problem. I was also using sprintf. Apparently the array at which the string must be stored was too small. And there, as you said, it was writing to the memory after his decla ...
  Topic: Strange misbehaving array
Remco

Replies: 14
Views: 14894

PostForum: General CCS C Discussion   Posted: Mon Jul 20, 2015 1:30 am   Subject: Strange misbehaving array
Thank you for your reaction. Following your statements:

1) I know that's the case, but I read it can happen. Most likely not but it can.
2) Always good to know if a variable is definitely initiali ...
  Topic: Strange misbehaving array
Remco

Replies: 14
Views: 14894

PostForum: General CCS C Discussion   Posted: Fri Jul 17, 2015 7:17 am   Subject: Strange misbehaving array
In every routine where I access the variables I check the index. If incorrect it goes out of the routine. After a test, the problem still occurs. I also outputted the index value and every time it is ...
  Topic: Strange misbehaving array
Remco

Replies: 14
Views: 14894

PostForum: General CCS C Discussion   Posted: Fri Jul 17, 2015 6:40 am   Subject: Strange misbehaving array
accidental mis-indexing is the common cause of what you see
happening.

Would this be a mismatch of the compiler/uc or the code itself that is written by me?
  Topic: Strange misbehaving array
Remco

Replies: 14
Views: 14894

PostForum: General CCS C Discussion   Posted: Fri Jul 17, 2015 5:24 am   Subject: Strange misbehaving array
Good day chaps,

I recently came across a strange problem when testing my software. I develop the firmware with CCS C compiler version 5.042. The firmware will run on a dsPIC30F6014A. The problem is ...
  Topic: No UART interrupt
Remco

Replies: 3
Views: 7985

PostForum: General CCS C Discussion   Posted: Tue May 12, 2015 3:50 am   Subject: No UART interrupt
Ttelmah,

Thank you for your quick reaction. but in the mean time I was trying to get it to work, and I did it. I don't know how but that's I would say usual. But I little at the #NOLIST command. Th ...
  Topic: No UART interrupt
Remco

Replies: 3
Views: 7985

PostForum: General CCS C Discussion   Posted: Tue May 12, 2015 1:55 am   Subject: No UART interrupt
Hello people of the CCS community,

Recently I started using the CCS compiler as a trainee at a company. But I think I found a problem. When I want to use the hardware UART of the device(dsPIC30F601 ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group