Author |
Message |
Topic: Problem with constant strings |
EdWaugh
Replies: 17
Views: 35383
|
Forum: General CCS C Discussion Posted: Fri Mar 08, 2013 8:52 am Subject: Update |
Sorry about the slow update to this thread but apparently this was fixed in v4.135. I'll do some testing and figure it out.
Cheers
ed |
Topic: Problem with constant strings |
EdWaugh
Replies: 17
Views: 35383
|
Forum: General CCS C Discussion Posted: Mon Jul 02, 2012 1:17 pm Subject: Problem with constant strings |
I just called and spoke to Dan and he said some other guys was looking at it but it's a difficult problem and might take a while to solve. If you want to hassle the support system my bug number is 2F7 ... |
Topic: Problem with constant strings |
EdWaugh
Replies: 17
Views: 35383
|
Forum: General CCS C Discussion Posted: Fri Jun 22, 2012 2:06 am Subject: Problem with constant strings |
Sorry I haven't yet, I'll do it today. Perhaps if we both emailed about the same issue and included the link to this thread we might get a better response. |
Topic: Problem with constant strings |
EdWaugh
Replies: 17
Views: 35383
|
Forum: General CCS C Discussion Posted: Thu Jun 21, 2012 8:56 am Subject: Problem with constant strings |
I can confirm the problem shown by my code is still present in 4.133.
Cheers
Ed |
Topic: Problem with constant strings |
EdWaugh
Replies: 17
Views: 35383
|
Forum: General CCS C Discussion Posted: Tue Jun 19, 2012 6:34 am Subject: Problem with constant strings |
Variable length strings would be great but I can guess I can do without, shouldn't this work?
const char string_a[6] = "hello";
const char string_b[6] = "world" ... |
Topic: Problem with constant strings |
EdWaugh
Replies: 17
Views: 35383
|
Forum: General CCS C Discussion Posted: Mon Jun 18, 2012 1:38 am Subject: Problem with constant strings |
Hi PCMProgrammer,
Thanks for having a look at this, I tried your code and it works for me, although of course you're allocating the longest string length to every string even when they don't need t ... |
Topic: Problem with constant strings |
EdWaugh
Replies: 17
Views: 35383
|
Forum: General CCS C Discussion Posted: Fri Jun 15, 2012 5:33 am Subject: Problem with constant strings |
hi guys,
Thanks for the responses, I had a look through the stuff and revised my code to this:
char rom *strings[] =
{
"HE",
"WO",
"CON&quo ... |
Topic: Problem with constant strings |
EdWaugh
Replies: 17
Views: 35383
|
Forum: General CCS C Discussion Posted: Thu Jun 14, 2012 10:56 am Subject: Problem with constant strings |
Hi all,
I'm having some trouble with constant strings, I'm trying the c code as found on this page:
const char *strings[] =
{
"HELLO",
"WORLD",
... |
Topic: Calling disable_interrupts() within an interrupt |
EdWaugh
Replies: 6
Views: 9511
|
Forum: General CCS C Discussion Posted: Wed May 16, 2012 2:08 am Subject: Calling disable_interrupts() within an interrupt |
Hey Ttelmah,
Thanks for the response, it's good to understand what's happening there.
Ed |
Topic: Calling disable_interrupts() within an interrupt |
EdWaugh
Replies: 6
Views: 9511
|
Forum: General CCS C Discussion Posted: Tue May 15, 2012 9:26 am Subject: Calling disable_interrupts() within an interrupt |
Thanks Andrew, that's just what this code does. I'm not sure why I decided it might be a problem but I'm sure I read it somewhere.
Cheers
Ed |
Topic: Calling disable_interrupts() within an interrupt |
EdWaugh
Replies: 6
Views: 9511
|
Forum: General CCS C Discussion Posted: Tue May 15, 2012 8:29 am Subject: Calling disable_interrupts() within an interrupt |
Hi all,
I hope all is going smoothly. I was looking at a piece of my library code and realised it was making a call to disable_interrupts inside the interrupt, for some reasons I have got in my hea ... |
Topic: Suffixes for constant literals in PCWH |
EdWaugh
Replies: 5
Views: 6934
|
Forum: General CCS C Discussion Posted: Fri Jan 27, 2012 7:45 am Subject: Suffixes for constant literals in PCWH |
Hi Ttelmah,
Yea I agree about the lack of documentation, but in your example isn't the underlying type still int8 and then it just gets cast to an int32? Maybe that doesn't matter really as I think ... |
Topic: Suffixes for constant literals in PCWH |
EdWaugh
Replies: 5
Views: 6934
|
Forum: General CCS C Discussion Posted: Fri Jan 27, 2012 5:54 am Subject: Suffixes for constant literals in PCWH |
Hi Ttelmah,
Thanks very much for your response. I'm not sure I'm keen on letting the compiler decide the size of the value used in the calculation, surely it's better for me to define it?
Also, ... |
Topic: Suffixes for constant literals in PCWH |
EdWaugh
Replies: 5
Views: 6934
|
Forum: General CCS C Discussion Posted: Fri Jan 27, 2012 4:02 am Subject: Suffixes for constant literals in PCWH |
Hi all,
I was wondering if anyone could advise me on something I couldn't see in the CCS manual. I tend to declare constant literal values using #define rather than as const as I like the compiler ... |
Topic: Problem creating copy of integer math routines using #org |
EdWaugh
Replies: 4
Views: 6346
|
Forum: General CCS C Discussion Posted: Fri Jan 20, 2012 8:02 am Subject: Problem creating copy of integer math routines using #org |
Hi all,
So I managed to make this work but putting each individual function explicitly within the same #org. This seems to work as the warnings go away and I can see interrupt calls going to an add ... |
|