From: SourceForge.net <no...@so...> - 2004-10-19 11:31:33
|
Patches item #944561, was opened at 2004-04-29 17:12 Message generated for change (Comment added) made by maartenbrock You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=300599&aid=944561&group_id=599 Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Chris Kavanagh (librestreamkav) >Assigned to: Maarten Brock (maartenbrock) Summary: cc1010 Startup Code Patch Initial Comment: Don't allow start up code to zero out everything. A Custom sdcc_external_startup function with inline assembly and returning non-zero will also work. With out the above I found the cc1010 would hang. ---------------------------------------------------------------------- >Comment By: Maarten Brock (maartenbrock) Date: 2004-10-19 13:31 Message: Logged In: YES user_id=888171 SDCC 2.4.6 uses --iram-size to determine how much data/idata must be cleared. ---------------------------------------------------------------------- Comment By: Maarten Brock (maartenbrock) Date: 2004-04-30 10:24 Message: Logged In: YES user_id=888171 Hi Chris, For SDCC 2.4.0 this works out fine. But for 2.4.1 this was already changed. The clearing of data memory is now in device/lib/mcs51/crtclear.asm. The assumption that clearing all 256 bytes is harmless is not valid for the cc1010 as you found out. Also the p2 register is replaced by a virtual XPAGE sfr which you can declare anywhere in your C sources to point out the correct xdata page register. Greets, Maarten ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=300599&aid=944561&group_id=599 |