Author |
Message |
Topic: Could not start target |
Pekub
Replies: 2
Views: 5562
|
Forum: General CCS C Discussion Posted: Mon Aug 19, 2013 6:59 am Subject: Debug 18F14K22 - solved |
Hello,
PIC18F14K22 is possible to debug with ICD-U64 / maybe with ICD-U40, I have not tried it /.
My problem was a bad installation program PCWHD V4.132.
It was necessary to reinstall the pro ... |
Topic: Could not start target |
Pekub
Replies: 2
Views: 5562
|
Forum: General CCS C Discussion Posted: Fri Aug 16, 2013 4:16 am Subject: Could not start target |
Hi,
I use 18F14K22. It works fine, but I can't get it to debug.
It appears:
Could not start target: The target was not halted after reset.......
I try it with ICD-U40 and ICD-U64. I also chang ... |
Topic: Access to ROM const |
Pekub
Replies: 6
Views: 10061
|
Forum: General CCS C Discussion Posted: Sat Nov 26, 2011 4:02 am Subject: Access to ROM const |
I tried it maybe 20 times with V 4.127, V 4.122,
but it doesn`t work.
#include <18F26K22.h>
#device CONST=ROM
#fuses INTRC,,NOWDT,PUT,BROWNOUT,NOLVP
#use delay(clock=16000000)
... |
Topic: Access to ROM const |
Pekub
Replies: 6
Views: 10061
|
Forum: General CCS C Discussion Posted: Thu Nov 24, 2011 3:56 am Subject: Access to ROM const |
O.K. It`s work.
But try this one:
int8 xx;
const int8 Table[2] = {10, 50};
xx = 100;
if(xx < Table[0])
Led_PrgEE_On();
else
L ... |
Topic: Access to ROM const |
Pekub
Replies: 6
Views: 10061
|
Forum: General CCS C Discussion Posted: Wed Nov 23, 2011 10:50 am Subject: Access to ROM const |
Hello,
I tried use ROM constant in my program.
Please, can someone explain me what is the right way to access a ROM constant ?
#include <18F26K22.h>
#device CONST=ROM
..
const int8 ... |
Topic: Pointer to struct V4.127 |
Pekub
Replies: 5
Views: 8261
|
Forum: General CCS C Discussion Posted: Wed Nov 23, 2011 8:34 am Subject: Pointer to struct V4.127 |
Thank`s PCM programmer.
The solution with "cast pointer" works right.
ptr = (int8 *)(pRx->Buff) +0; // Cast pointer to int8*
I think this relates to the ... |
Topic: Pointer to struct V4.127 |
Pekub
Replies: 5
Views: 8261
|
Forum: General CCS C Discussion Posted: Tue Nov 22, 2011 5:56 am Subject: Pointer to struct V4.127 |
Hello,
To access the elements of my structure I used the pointer. It worked fine with Compiler Version 4.122 and older.
With new version V4.126 and V4.127 it doesn`t work.
I wrote simple pr ... |
Topic: PIC16F1824 Optimization error |
Pekub
Replies: 5
Views: 8655
|
Forum: General CCS C Discussion Posted: Thu Apr 07, 2011 4:56 am Subject: PIC16F1824 Optimization error |
I identified it is not optimization error.
The program does not work with #opt 0 and even with #opt 9 - default value.
I still do not know what is wrong.
I'm going to change my application to a ... |
Topic: PIC16F1824 Optimization error |
Pekub
Replies: 5
Views: 8655
|
Forum: General CCS C Discussion Posted: Tue Apr 05, 2011 5:17 am Subject: PIC16F1824 Optimization error |
I am maximally simplify my program and all functions. The program now does not perform any function, but the problem remained.
The processor will be reset about every 2 sec.
#case
#include < ... |
Topic: Pointer to constant |
Pekub
Replies: 5
Views: 22049
|
Forum: General CCS C Discussion Posted: Tue Apr 05, 2011 3:11 am Subject: Pointer to constant |
Thank you PCM programmer and Ttelmah also. This is what I needed.
In my opinion, use keyword "rom" is not sufficiently explained in the manual. |
Topic: Pointer to constant |
Pekub
Replies: 5
Views: 22049
|
Forum: General CCS C Discussion Posted: Mon Apr 04, 2011 7:42 am Subject: Pointer to constant |
Compiler: 4.119
Hello,
I tried a sample for using pointer to constant from CCS web site.
The same is in CCS manual.
This error appears:
*** Error 46 "Bdt12_Main.c" Line 7(16,17): ... |
Topic: PIC16F1824 Optimization error |
Pekub
Replies: 5
Views: 8655
|
Forum: General CCS C Discussion Posted: Mon Apr 04, 2011 3:13 am Subject: PIC16F1824 Optimization error |
Compiler: 4.119
Hello,
I made a little larger program on PIC16F1824.
I use two struct
struct TG
{
short ItWasErr;
int8 NoSignalErrCnt;
int8 L ... |
Topic: Reset on IO pin |
Pekub
Replies: 2
Views: 6048
|
Forum: General CCS C Discussion Posted: Fri Mar 25, 2011 3:50 am Subject: Reset on IO pin |
Thank you for your ideas. I tried them.
I found that this problem is not with the pull up resistor.
The problem is not software but hardware.
Input A2/INT in this chip is very sensitive to nois ... |
Topic: Reset on IO pin |
Pekub
Replies: 2
Views: 6048
|
Forum: General CCS C Discussion Posted: Fri Mar 18, 2011 7:32 am Subject: Reset on IO pin |
I have a very simple program for PIC16F1824.
Compiler V 4.119
If I set low level on the RA2 pin, the processor resets.
When I delete a row with the settings pull up, it's all okay.
Please, ... |
Topic: I2c doesn't work |
Pekub
Replies: 1
Views: 3254
|
Forum: General CCS C Discussion Posted: Sun Mar 18, 2007 10:35 am Subject: I2c doesn't work |
I tried i2c communication between 18F2420 / Master/ and 18F4420 / Slave/. It doesn't work. I used ex_slave.c code for slave and standard master code. When I used on slave side 16F877A, communication ... |
|