??? 04/16/08 17:20 Read: times |
#153533 - I *think* I have that covered... Responding to: ???'s previous message |
Unless you mean something other than what I think of when you say 'startup code'.
I have a main.c file that runs first, along with a bunch of other .c and .h files. Inside main.c there is a main() that looks like this: void main(void) { Initialize(); ... } void Initialize(void) { Initialize8051(); ... } void Initialize8051(void) { PCA0MD &= ~0x40; // disable WDT ... } So it appears to me as though the WDT is being disabled right away. I tried moving the disable to the first line of main(), but the results were the same. Unless there's something that I'm missing (and that's likely) I don't see where it's a WDT problem... |
Topic | Author | Date |
SDCC XRAM Problem | 01/01/70 00:00 | |
Sounds like ... | 01/01/70 00:00 | |
I *think* I have that covered... | 01/01/70 00:00 | |
it is NOT | 01/01/70 00:00 | |
Assembly | 01/01/70 00:00 | |
I'll try anything once | 01/01/70 00:00 | |
OK, here is a way | 01/01/70 00:00 | |
ANSI C | 01/01/70 00:00 | |
SDCC startup | 01/01/70 00:00 | |
unsigned char _sdcc_external_startup(void) | 01/01/70 00:00 | |
holy cow | 01/01/70 00:00 | |
The problem is obvious ... | 01/01/70 00:00 | |
I'm not that bombastic, but agree in principle wit | 01/01/70 00:00 | |
When someone is familiar with it as you are ... | 01/01/70 00:00 | |
show me one from this year | 01/01/70 00:00 | |
You have taken my comment wrong. | 01/01/70 00:00 | |
My Guess Is That... | 01/01/70 00:00 | |
not always ...![]() | 01/01/70 00:00 | |
obscure? | 01/01/70 00:00 |