This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

AT91SAM7S256 not coming out of RESET...

Okay... this may be slightly off topic... I'm suspecting hardware more than software.

Here's the problem... I've done KEIL projects for AT91SAM7S32 and AT91SAM7S64 boards and the hardware has always come out of reset and started to execute code reliably when not using the debugger.

Now I've tried (2) different AT91SAM7S256 designs, and they've both behaved differently in that sometimes the code just doesn't appear to come out of reset reliably. I simplifed both projects to do nothing but configure the H/W reset input and an I/O pin to be a driver, and then toggle that I/O pin in an infinite loop but that code does not run reliably. I am using a 4-layer board with a ground plane, and all the oscillator, reset and JTAG port stuff is a direct cut/paste from my working designs using the S32 & S64 parts.

I added code to enable a ~1 second watchdog timer, and that seems to fix the problem, in that when the I/O pin doesn't toggle after a power up reset or hardware reset it does come to life after ~1 second when the watchdog timer times out.

Does anybody know of anything that could be responsible for this type of symptom...?

Thanks,
Dave.

Parents
  • Update...

    I slowed MCK down to ~ 25 MHz (from ~ 55 MHz), and the symptom appears to have gone away. I've checked and double checked all the relevant datasheet sections, including the errata, and I don't see any reason I can't have an MCK of ~ 55 Mhz. I'm using REV A parts (AT91SAM7S256 AU A) parts.

    I'm using a 20 MHz crystal, with 1 flash read wait state, with MUL = 1401 and DIV = 255. This should create an MCK of ~ 54.95 MHz, which should be okay as best as I can tell. If I slow MUL down to 637 the symptom goes away. Can anyone tell me if the settings I'm trying to use are valid or not, or if there's anything else I should be checking?

    Again... I know this is probably considered slightly off topic, since it's not about the KEIL tools per se, but I am using KEIL tools on this project ;-)

    Dave.

Reply
  • Update...

    I slowed MCK down to ~ 25 MHz (from ~ 55 MHz), and the symptom appears to have gone away. I've checked and double checked all the relevant datasheet sections, including the errata, and I don't see any reason I can't have an MCK of ~ 55 Mhz. I'm using REV A parts (AT91SAM7S256 AU A) parts.

    I'm using a 20 MHz crystal, with 1 flash read wait state, with MUL = 1401 and DIV = 255. This should create an MCK of ~ 54.95 MHz, which should be okay as best as I can tell. If I slow MUL down to 637 the symptom goes away. Can anyone tell me if the settings I'm trying to use are valid or not, or if there's anything else I should be checking?

    Again... I know this is probably considered slightly off topic, since it's not about the KEIL tools per se, but I am using KEIL tools on this project ;-)

    Dave.

Children