Author |
Message |
Topic: PIC24FJ64GA306 startup problem |
slavka012
Replies: 9
Views: 22328
|
Forum: General CCS C Discussion Posted: Mon Dec 14, 2020 12:11 pm Subject: PIC24FJ64GA306 startup problem |
I did a bit more digging. Turned out it is WDT after all. On the 5.075 initialization code finishes up in 107mS (at 31KHz clock) and on 5.093 it takes over 120mS. WDT should nominally be 124mS, but so ... |
Topic: PIC24FJ64GA306 startup problem |
slavka012
Replies: 9
Views: 22328
|
Forum: General CCS C Discussion Posted: Mon Dec 14, 2020 7:52 am Subject: PIC24FJ64GA306 startup problem |
If you mean you are loading it with values using rand, then this is not done
during initialization. It is run time code. You can't load using a function
as part of the initialization.
The initiali ... |
Topic: PIC24FJ64GA306 startup problem |
slavka012
Replies: 9
Views: 22328
|
Forum: General CCS C Discussion Posted: Mon Dec 14, 2020 6:51 am Subject: PIC24FJ64GA306 startup problem |
I've just built one with a 256 element array. The initialisation is identical between 5.075, and 5.093. Same data statements and loop to load it. Obviously you did not fill it with random values like ... |
Topic: PIC24FJ64GA306 startup problem |
slavka012
Replies: 9
Views: 22328
|
Forum: General CCS C Discussion Posted: Sun Dec 13, 2020 2:44 pm Subject: PIC24FJ64GA306 startup problem |
Have just built a minimum project, with you published 'main', using
5.075, and 5.093, and the initialization is identical.
I imagine that's because there are no global variables to initialize in y ... |
Topic: PIC24FJ64GA306 startup problem |
slavka012
Replies: 9
Views: 22328
|
Forum: General CCS C Discussion Posted: Fri Dec 11, 2020 2:56 pm Subject: PIC24FJ64GA306 startup problem |
I have an application that works fine when I used compiler V5.075. Recently I have switched to V5.093, and the program no longer works. As far as I can tell it never reaches the main(). I mean MY main ... |
Topic: PIC24F64GA306, can't set #fuses properly |
slavka012
Replies: 10
Views: 18250
|
Forum: General CCS C Discussion Posted: Mon Mar 06, 2017 7:09 pm Subject: PIC24F64GA306, can't set #fuses properly |
Try these settings integrated into your code:
Thanks a lot, that worked. I guess compiler is trying to be smarter than it is capable of.
I would prefer it to issue a warning if fuses are not ... |
Topic: PIC24F64GA306, can't set #fuses properly |
slavka012
Replies: 10
Views: 18250
|
Forum: General CCS C Discussion Posted: Sat Mar 04, 2017 11:47 am Subject: PIC24F64GA306, can't set #fuses properly |
I read their post as they wanted to power on the chip in LPRC and then switch to 32MHz later. That's what I was addressing. I may have read their post wrong though.
This exactly the scenario. I t ... |
Topic: PIC24F64GA306, can't set #fuses properly |
slavka012
Replies: 10
Views: 18250
|
Forum: General CCS C Discussion Posted: Fri Mar 03, 2017 4:06 pm Subject: PIC24F64GA306, can't set #fuses properly |
I don't care if it is correct settings for 32MHz.
I want to start chip at a slow clock LPRC. |
Topic: PIC24F64GA306, can't set #fuses properly |
slavka012
Replies: 10
Views: 18250
|
Forum: General CCS C Discussion Posted: Fri Mar 03, 2017 11:44 am Subject: PIC24F64GA306, can't set #fuses properly |
Command line:
"C:\PROGRA~2\PICC\CCSCON.exe" out="build/default/production\_ext\1472" ../foot-board-main.c +FD +DF +CC +Y=9 +EA +DF +LN +T +A +M +J +EA +Z -P #__PIC24FJ64GA ... |
Topic: Assembler, goto instruction |
slavka012
Replies: 3
Views: 7116
|
Forum: General CCS C Discussion Posted: Tue Apr 28, 2015 5:34 pm Subject: Assembler, goto instruction |
ok I already found a solution - bra 0. Hm no, compiler does not take that
.
Yes it is basically a nop, but one that takes two cycles to execute.
I can't call delay_cycles from inside the #asm b ... |
Topic: Assembler, goto instruction |
slavka012
Replies: 3
Views: 7116
|
Forum: General CCS C Discussion Posted: Tue Apr 28, 2015 4:56 pm Subject: Assembler, goto instruction |
with microchip assembler I can use the following construction:
Goto $+1
where $ denotes current PC. Is there equivalent syntax for use with inline assembler with CCS ? |
Topic: This is a funny compiler |
slavka012
Replies: 13
Views: 16937
|
Forum: General CCS C Discussion Posted: Wed Dec 31, 2014 1:24 pm Subject: This is a funny compiler |
I'm fine with const objects being in ROM. It is a good thing. Does not matter though. If we even have "const" in language, it should be supported and efforts should be made to prevent const ... |
Topic: This is a funny compiler |
slavka012
Replies: 13
Views: 16937
|
Forum: General CCS C Discussion Posted: Tue Dec 30, 2014 12:30 pm Subject: This is a funny compiler |
Well ok, I'm passing a pointer to const to a function that accepts non-const pointer. This should be a compile time error. It works correctly if I remove const. |
Topic: This is a funny compiler |
slavka012
Replies: 13
Views: 16937
|
Forum: General CCS C Discussion Posted: Tue Dec 30, 2014 11:25 am Subject: This is a funny compiler |
Hitech is now Microchip. I'm trying XC now. |
Topic: This is a funny compiler |
slavka012
Replies: 13
Views: 16937
|
Forum: General CCS C Discussion Posted: Tue Dec 30, 2014 11:24 am Subject: This is a funny compiler |
V 5.026 |
|