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

how to partition DS5000 using keil c51

Hi,

Hope someone with experience with DS5000 or equivalent to help in a matter.

How do I partition DS5000's code/data using Keil C51 ?

Parents
  • Hi,

    I am trying to modify startup.A51 with the following chunk of codes to partition the memory, putting it after "CSEG AT 0" does work to some extent. The compiler complains '*** WARNING L5: CODE SPACE MEMORY OVERLAP". Ignoring this I downloaded to my board, i check that the partition is indeed modified, but my interrupts and interrupts can't work anymore.

    Am I missing something more ?

    What I have cut-and-paste is as follows:

    MOV TA, #0AAh ;Timed
    MOV TA, #55h ;Access
    ORL MCON, #02h ;Set PAA
    MOV MCON, #028h ;Set Partition to 5800 on DS5000
    MOV TA, #0AAh ;Timed
    MOV TA, #55h ;Access
    ANL MCON, #0FDh ;Clear PAA

Reply
  • Hi,

    I am trying to modify startup.A51 with the following chunk of codes to partition the memory, putting it after "CSEG AT 0" does work to some extent. The compiler complains '*** WARNING L5: CODE SPACE MEMORY OVERLAP". Ignoring this I downloaded to my board, i check that the partition is indeed modified, but my interrupts and interrupts can't work anymore.

    Am I missing something more ?

    What I have cut-and-paste is as follows:

    MOV TA, #0AAh ;Timed
    MOV TA, #55h ;Access
    ORL MCON, #02h ;Set PAA
    MOV MCON, #028h ;Set Partition to 5800 on DS5000
    MOV TA, #0AAh ;Timed
    MOV TA, #55h ;Access
    ANL MCON, #0FDh ;Clear PAA

Children