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

Setting the Code Segment When Using the Small Memory Model

How can I set the code segment used by the CPU in a small memory model when executing a downloaded application. I am having trouble in trying to force an interrupt function to use the correct code segment address when a downloaded application is used. The interrupt function continues to execute code out of the old segment, and I want it to execute code from the new segment. Thanks for any help.

Parents
  • Could you describe you setup in detail? Does "downloaded application" mean "loaded into memory at runtime"? Because there are a few things that need to be set up before you can switch at runtime to another application built with Keil tools. Is the ISR code "downloaded"? Could declaring some functions as far solve anything? far functions are called using CALLS instruction which modifies CS.

    - mike

Reply
  • Could you describe you setup in detail? Does "downloaded application" mean "loaded into memory at runtime"? Because there are a few things that need to be set up before you can switch at runtime to another application built with Keil tools. Is the ISR code "downloaded"? Could declaring some functions as far solve anything? far functions are called using CALLS instruction which modifies CS.

    - mike

Children
No data