#14 cc1010 Startup Code Patch

closed-fixed
None
5
2004-10-19
2004-04-29
No

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.

Discussion

  • Maarten Brock

    Maarten Brock - 2004-04-30

    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

     
  • Maarten Brock

    Maarten Brock - 2004-10-19
    • assigned_to: nobody --> maartenbrock
    • status: open --> closed-fixed
     
  • Maarten Brock

    Maarten Brock - 2004-10-19

    Logged In: YES
    user_id=888171

    SDCC 2.4.6 uses --iram-size to determine how much
    data/idata must be cleared.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks