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

More Pointer Problems

Here's another good one. Again, works fine on simulator/debugger, but not on the target hardware.

If I do this:

BYTE process_Help(char *cmdBuffer) reentrant
{
cmdBuffer[0] = '\0';
printf( "Help Message");
return TRUE;
}

everything works fine. But if I do this:

BYTE process_Help(char *cmdBuffer) reentrant
{
char *strHelp = "Help Message";
cmdBuffer[0] = '\0';
printf(strHelp);
return TRUE;
}

it works fine on the simulator/debugger, but nothing is displayed when executed on the target hardware.

Any/All help welcome and appreciated.

Thanks,
Chris Beattie

Parents
  • The Dallas 520 chip has the XDATA memory internal to the micro. There is 1K of static ram interfaced internally starting at XDATA address 0. There are no speed issues invloved either with this ram - it works at the full execution speed of the device. The optional wait states only affect memory/peripherals accesed extrenal to the chip.

Reply
  • The Dallas 520 chip has the XDATA memory internal to the micro. There is 1K of static ram interfaced internally starting at XDATA address 0. There are no speed issues invloved either with this ram - it works at the full execution speed of the device. The optional wait states only affect memory/peripherals accesed extrenal to the chip.

Children
No data