Author |
Message |
Topic: Probably off topic... |
esteban
Replies: 5
Views: 8027
|
Forum: General CCS C Discussion Posted: Thu Sep 20, 2007 3:09 am Subject: Probably off topic... |
Hi.
I might be asking in the wrong place, but i don't know where to ask this question. Maybe somebody could point me in the right forum. Sorry for the inconvenience.
I have a triac to control a PSC ... |
Topic: bank switching problem? |
esteban
Replies: 23
Views: 15990
|
Forum: General CCS C Discussion Posted: Sun Sep 16, 2007 12:04 pm Subject: bank switching problem? |
Hi. I'm back to let you know that i've found the problem.
It was in effect a bank switching problem. It was caused by the bootloader.
The bootloader is looking at the address of the hex file it's lo ... |
Topic: bank switching problem? |
esteban
Replies: 23
Views: 15990
|
Forum: General CCS C Discussion Posted: Mon Sep 03, 2007 3:32 pm Subject: bank switching problem? |
I don't have the programmer connected (is in a separated board). And have just connected RB3 to gnd (i'm not using it in the test).
Still the same.
Don't want to keep bothering you or anybody else i ... |
Topic: bank switching problem? |
esteban
Replies: 23
Views: 15990
|
Forum: General CCS C Discussion Posted: Mon Sep 03, 2007 3:06 pm Subject: bank switching problem? |
Thanks a lot, again.
I'll try with another board, and see what happens. If it worked for you, it's obvious that it is not a code problem (source/compiler/whatever). I was pretty sure it was, but i'd ... |
Topic: bank switching problem? |
esteban
Replies: 23
Views: 15990
|
Forum: General CCS C Discussion Posted: Mon Sep 03, 2007 2:57 pm Subject: bank switching problem? |
Here's the code stripped down, as you suggested.
#include "C:\Barreras\PIC\Pic_Barrera.h"
#BYTE PUERTO_C=0x07
#org 0x1F00, 0x1FFF void loader16F876(void) {} ... |
Topic: bank switching problem? |
esteban
Replies: 23
Views: 15990
|
Forum: General CCS C Discussion Posted: Mon Sep 03, 2007 2:21 pm Subject: bank switching problem? |
I added the ERRORS directive on the two #USE rs232().
I have that done on older versions of my code, also, but done it again just now.
Same problem.
I already had the capacitors on both VDD pins (t ... |
Topic: bank switching problem? |
esteban
Replies: 23
Views: 15990
|
Forum: General CCS C Discussion Posted: Mon Sep 03, 2007 2:01 pm Subject: bank switching problem? |
I've just tried compiling with an older version (3.249). Nothing seems to change. Same behaviour.
And about one of my previous posts, forget it, im starting to desesperate again. |
Topic: bank switching problem? |
esteban
Replies: 23
Views: 15990
|
Forum: General CCS C Discussion Posted: Mon Sep 03, 2007 12:45 pm Subject: bank switching problem? |
Yes, i'm using a LVP to program the bootloader.
(this one:
http://finitesite.com/d3jsys/
)
The switches you are seeing from the bootloader hex, are the ones with which the bootloader comes insid ... |
Topic: bank switching problem? |
esteban
Replies: 23
Views: 15990
|
Forum: General CCS C Discussion Posted: Mon Sep 03, 2007 12:20 pm Subject: bank switching problem? |
The bootloader is v9-50
I'm setting the fuses with ICProg when i program the bootloader. I'm aware that the #fuses directives in the c source i've pasted is not in effect.
The hex file of the boot ... |
Topic: bank switching problem? |
esteban
Replies: 23
Views: 15990
|
Forum: General CCS C Discussion Posted: Mon Sep 03, 2007 10:07 am Subject: bank switching problem? |
What happens, if you let the compiler do it's job?...
Why are _you_ fiddling with the W register, and the status, in the interrupt handler?.
As it stands, this is wasted work. The code you write her ... |
Topic: bank switching problem? |
esteban
Replies: 23
Views: 15990
|
Forum: General CCS C Discussion Posted: Mon Sep 03, 2007 9:43 am Subject: bank switching problem? |
Yes, i was aware of the RMW performance. Anyway, the post you just sent me, point it out in a very clear fashion, so it was very interesting.
In fact, after reading, i'm gladly surprised that the sco ... |
Topic: bank switching problem? |
esteban
Replies: 23
Views: 15990
|
Forum: General CCS C Discussion Posted: Mon Sep 03, 2007 8:07 am Subject: bank switching problem? |
Hi. Thanks for your reply!.
Well, the compiler topic sounds good. I'm kind of confused because i've assumed that if i see it on the LST, there should be good. But i'll not hesistate in trying if ther ... |
Topic: bank switching problem? |
esteban
Replies: 23
Views: 15990
|
Forum: General CCS C Discussion Posted: Mon Sep 03, 2007 6:37 am Subject: bank switching problem? |
Hi, all.
I'm having a strange problem that has me stuck for days now.
My original code (the one that first showed strange issues) is much more complex than this one. I've struggled to simplify it wh ... |
|