SDCC and memory organization

Discussion in 'Programmer's Corner' started by GabrielSalla, Sep 3, 2013.

  1. GabrielSalla

    Thread Starter New Member

    Jul 6, 2013
    6
    0
    I'm programming for AT89LP216 (http://www.atmel.com/Images/doc3621.pdf) (8051 familly) developing both programmer (software+hardware) and the target device. I read the following info about ISP (page 66, section 24.2):
    "The memory is divided into pages of 32 bytes each. A single read or write command may only access a single page in the memory."
    Dividing the code memory we have the following start adresses for some memory pages:
    00 20 40 60 80 A0 C0 E0...
    I've compiled a code and I've noticed the following line at the .hex:
    :07 0079 00 EA4B4C4D70ED2233
    As you can see, it's trying to write 7 bytes starting at the adress 79h. It would be ok if the code page didn't end at 79h.
    I want to know if it's possible to use a linker with SDCC and make it solve this problem for me. If it can't, I'll have to verify when programming...
     
Loading...