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 36 matches
CCS Forum Index
Author Message
  Topic: In circuit serial debugger with ICD-U64 on DSPIC33EP256GP504
levdev

Replies: 3
Views: 39593

PostForum: CCS ICD / Mach X / Load-n-Go   Posted: Fri May 18, 2018 5:48 pm   Subject: In circuit serial debugger with ICD-U64 on DSPIC33EP256GP504
Yes, ICD=3 means using the 3rd programming port, and yes I've got the right connections, as i can program and verify the device.

However today I managed to get it working. I updated the Firmware o ...
  Topic: In circuit serial debugger with ICD-U64 on DSPIC33EP256GP504
levdev

Replies: 3
Views: 39593

PostForum: CCS ICD / Mach X / Load-n-Go   Posted: Thu May 17, 2018 4:45 pm   Subject: In circuit serial debugger with ICD-U64 on DSPIC33EP256GP504
I am using a board with DSPIC33EP256GP504, and programming with the ICD-U64 (latest HW and FW revisions). I am using compiler version 5.070. The device programs fine and runs, albeit with a few bugs ...
  Topic: Constant array returns wrong value with variable index value
levdev

Replies: 23
Views: 34216

PostForum: General CCS C Discussion   Posted: Fri Jan 13, 2012 8:50 am   Subject: Constant array returns wrong value with variable index value
OK, last post on the subject. I've actually found the root cause and it's so simple I must be stupid not to have found it earlier.

#FUSES EBTR

protects the memory from table reads. This stops ...
  Topic: Constant array returns wrong value with variable index value
levdev

Replies: 23
Views: 34216

PostForum: General CCS C Discussion   Posted: Thu Jan 12, 2012 4:44 pm   Subject: Constant array returns wrong value with variable index value
The program memory is correct in both the source file and on the device. I have checked both. The new function I wrote confirms that because it reads the correct values. The problem I'm sure is wit ...
  Topic: Constant array returns wrong value with variable index value
levdev

Replies: 23
Views: 34216

PostForum: General CCS C Discussion   Posted: Thu Jan 12, 2012 11:43 am   Subject: Constant array returns wrong value with variable index value
Well I've found a workable solution to this problem which is posted below. I don't know if the original problem is compiler version specific, or device specific, but I'm surprised no one else here ha ...
  Topic: Constant array returns wrong value with variable index value
levdev

Replies: 23
Views: 34216

PostForum: General CCS C Discussion   Posted: Wed Jan 11, 2012 2:51 pm   Subject: Constant array returns wrong value with variable index value
OK, two strange things related to this issue. Take the following program:

#include <18F26K22.h>

#ROM 0x07F0 = {1000,1001,1002,1003,0xFFFF,0xFFFF,0xFFFF,0xFFFF}
#ROM 0x0800 = &# ...
  Topic: Constant array returns wrong value with variable index value
levdev

Replies: 23
Views: 34216

PostForum: General CCS C Discussion   Posted: Wed Jan 11, 2012 12:30 pm   Subject: Constant array returns wrong value with variable index value
Your array will be 2048 bytes, which will just cross the boundary. Are you sure the last few variables are returned correctly?
  Topic: Constant array returns wrong value with variable index value
levdev

Replies: 23
Views: 34216

PostForum: General CCS C Discussion   Posted: Wed Jan 11, 2012 12:23 pm   Subject: Constant array returns wrong value with variable index value
Actually scratch some of that, Ttelmah the function also doesn't work on data stored after memory location 0x7FF.

#include <18F26K22.h>

#FUSES NOWDT //No Watch Dog Timer ...
  Topic: Constant array returns wrong value with variable index value
levdev

Replies: 23
Views: 34216

PostForum: General CCS C Discussion   Posted: Wed Jan 11, 2012 12:10 pm   Subject: Constant array returns wrong value with variable index value
After some more testing it seems that any constant array placed after memory location 0x0800 will not return the correct value. It's not so much the transition past 7FF, but just anything beyond this ...
  Topic: Constant array returns wrong value with variable index value
levdev

Replies: 23
Views: 34216

PostForum: General CCS C Discussion   Posted: Tue Jan 10, 2012 4:55 pm   Subject: Constant array returns wrong value with variable index value
Can you use this for constant arrays stored in program memory? This array is too big for the RAm available on the PIC18f26k22.
  Topic: Constant array returns wrong value with variable index value
levdev

Replies: 23
Views: 34216

PostForum: General CCS C Discussion   Posted: Tue Jan 10, 2012 4:35 pm   Subject: Constant array returns wrong value with variable index value
Is there anyway of forcing the array into the start of a page, so it doesn't have to cross the boundary?
  Topic: Constant array returns wrong value with variable index value
levdev

Replies: 23
Views: 34216

PostForum: General CCS C Discussion   Posted: Mon Jan 09, 2012 5:40 pm   Subject: Constant array returns wrong value with variable index value
Thanks for the fix. I had just been working on a similar fix myself, but haven't had time to test either yet.

The thing I don't understand is that for this function to work, the bytes of data must ...
  Topic: Constant array returns wrong value with variable index value
levdev

Replies: 23
Views: 34216

PostForum: General CCS C Discussion   Posted: Mon Jan 09, 2012 1:37 pm   Subject: Constant array returns wrong value with variable index value
Thanks for your reply. I moved the variable declaration, this has made the two values consistently the same, but still wrong when the array index goes over 1014.

void main()
{
in ...
  Topic: Constant array returns wrong value with variable index value
levdev

Replies: 23
Views: 34216

PostForum: General CCS C Discussion   Posted: Mon Jan 09, 2012 12:42 pm   Subject: Constant array returns wrong value with variable index value
I'm having a problem returning the correct value from an array when accessing it with a variable index. A constant index returns the correct value. They both return the correct value up to the index ...
  Topic: RS232 Receive Problem on UART
levdev

Replies: 6
Views: 13265

PostForum: General CCS C Discussion   Posted: Thu Jun 30, 2011 7:53 am   Subject: RS232 Receive Problem on UART
Has anyone got any other ideas, I still can't get past this problem.
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group