Author |
Message |
Topic: Problem with 32K crystal and pic24FJ |
Geows
Replies: 4
Views: 10637
|
Forum: General CCS C Discussion Posted: Mon Jun 13, 2016 5:50 am Subject: Problem with 32K crystal and pic24FJ |
This configuration worked :
setup_timer1(T1_EXTERNAL_RTC,TMR_DIV_BY_1)
PR1=32768
Thanks for all your answers ! |
Topic: Problem with 32K crystal and pic24FJ |
Geows
Replies: 4
Views: 10637
|
Forum: General CCS C Discussion Posted: Thu Jun 09, 2016 8:48 am Subject: Problem with 32K crystal and pic24FJ |
Hi !
I'm currently working on a pic24FJ128GB106 with ccs compiler with MPLAB v8.92.
I would like to know how to allow my secondary oscillator (32k768 crystal) to run my Timer1.
I checked the d ... |
Topic: Err0040: The target device is not ready for debugging. |
Geows
Replies: 18
Views: 54838
|
Forum: General CCS C Discussion Posted: Wed May 11, 2016 2:51 am Subject: Err0040: The target device is not ready for debugging. |
I actually followed the schema in the datasheet where it is said to start with capacitance of 0.1µF and R1=10K and R2=470
So according to the datasheet it should be ok.
After yes, there is the ca ... |
Topic: Err0040: The target device is not ready for debugging. |
Geows
Replies: 18
Views: 54838
|
Forum: General CCS C Discussion Posted: Wed May 11, 2016 1:33 am Subject: Err0040: The target device is not ready for debugging. |
OK, I found the error !
It was actually an error with the header file ! There are the same fuses, interruptions, ... but at the beginning there is a #device xxx and it needs to be the same as the o ... |
Topic: Err0040: The target device is not ready for debugging. |
Geows
Replies: 18
Views: 54838
|
Forum: General CCS C Discussion Posted: Wed May 11, 2016 1:23 am Subject: Err0040: The target device is not ready for debugging. |
Try with this : https://www.dropbox.com/s/9xrusm5a5fl2lu1/Carte_adaptative_V6%20-%20Project.pdf?dl=0 |
Topic: Err0040: The target device is not ready for debugging. |
Geows
Replies: 18
Views: 54838
|
Forum: General CCS C Discussion Posted: Wed May 11, 2016 12:58 am Subject: Err0040: The target device is not ready for debugging. |
My previous pic was a pic24FJ256GB106. It's the same model, with more memory.
I'm not sure the icd programmer was connected when i destroyed it. But I have different ICD programmer and it doesn't ... |
Topic: Err0040: The target device is not ready for debugging. |
Geows
Replies: 18
Views: 54838
|
Forum: General CCS C Discussion Posted: Mon May 09, 2016 10:02 am Subject: Err0040: The target device is not ready for debugging. |
Yes, that's what I was thinking too ! I have a 10MHz quartz because I thought I could do it anyway (but I was wrong) (in some pic, you can do this way to get a 40MHz but not on this one).
So since ... |
Topic: Err0040: The target device is not ready for debugging. |
Geows
Replies: 18
Views: 54838
|
Forum: General CCS C Discussion Posted: Mon May 09, 2016 3:01 am Subject: Err0040: The target device is not ready for debugging. |
Ok I understand.
So I change the ICD pins to 1 and 3 and it didn't change anything :/.
Before posting this topic, I checked some older topic and I saw it could happen if my clock didn't have the ... |
Topic: Err0040: The target device is not ready for debugging. |
Geows
Replies: 18
Views: 54838
|
Forum: General CCS C Discussion Posted: Fri May 06, 2016 7:33 am Subject: Err0040: The target device is not ready for debugging. |
Yes I'm sure ! Actually, if I hadn't the good port I think I wouldn't be able to program my pic. But since it is working (and I check my board) it is not the problem. |
Topic: Err0040: The target device is not ready for debugging. |
Geows
Replies: 18
Views: 54838
|
Forum: General CCS C Discussion Posted: Thu May 05, 2016 9:24 am Subject: Err0040: The target device is not ready for debugging. |
Thanks for the answer.
So I tried but it doesn't change anything :/ |
Topic: Err0040: The target device is not ready for debugging. |
Geows
Replies: 18
Views: 54838
|
Forum: General CCS C Discussion Posted: Thu May 05, 2016 4:28 am Subject: Err0040: The target device is not ready for debugging. |
Hi !
So first of all, I'm new in C language and in electronic in general. And I don't have the best english, so sorry in advance if some sentences are not really understandable !
I'm working on ... |
|