Eric,

> Then I download to my device. When the buffer array size is < ~100
> bytes, or absent, the for loop in main runs and P0.1 toggles, which I
> can easily see on my scope.
>
> BUT with the buffer line written as is, the code never gets to that
> spot. Diffing the resulting ihx files, I see:

Had you searched the SiLabs forum (recommended) you would have found many questions about this. It's the watchdog biting during initialization. You must disable it in _sdcc_external_startup(). E.g.

char _sdcc_external_startup(void)
{
  PCA0MD &= ~0x40;
  return 0;
}

Maarten
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to