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

Works in the Simulator and ICE but not on the target Dallas DS87C520 uP

I have a program compiled to target a DS87C520. The source is A51 assembly and C code mix. The compiled output is in Intel Hex file format.

The Keil Simulator executes the program just fine. We also have an ICE that runs the program. However, when I burn the hex record into the actual micro, I get nothing.

Any ideas?

I can email source, hex file, etc if anyone wants to take a look.

Thanks,
Chris Beattie

Parents
  • Jon,

    I took a step back and tried the HELLO example that comes with the Keil suite and got the same results. I tried the example vanilla out of the box and then with the "Use On Chip ROM" option checked (we're programming the Intel Hex file directly into the micro and trying to run, no external RAM right now) and still no dice.

    I'm 99% sure it's not a hardware issue, as we have downloaded a freeware monitor (PaulMon2) from the internet, programmed the micro with that hex file and it works just fine. This monitor is written entirely in assembly, no C.

    The only thing I can think of is that there is something wrong with initialization, like the reset vector isn't set up right. Is doing a "CSEG AT 0" the same as a "org 0"?

    Any other ideas would be EXTREMELY appreciated and welcome.

    Thanks,
    Chris Beattie

Reply
  • Jon,

    I took a step back and tried the HELLO example that comes with the Keil suite and got the same results. I tried the example vanilla out of the box and then with the "Use On Chip ROM" option checked (we're programming the Intel Hex file directly into the micro and trying to run, no external RAM right now) and still no dice.

    I'm 99% sure it's not a hardware issue, as we have downloaded a freeware monitor (PaulMon2) from the internet, programmed the micro with that hex file and it works just fine. This monitor is written entirely in assembly, no C.

    The only thing I can think of is that there is something wrong with initialization, like the reset vector isn't set up right. Is doing a "CSEG AT 0" the same as a "org 0"?

    Any other ideas would be EXTREMELY appreciated and welcome.

    Thanks,
    Chris Beattie

Children
No data