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

Problem with xdata const

Hello,
I try some like this:

xdata const char table[]={"BBBB"};

to place consts in ext. ROM.

Everything is OK,
but i get only ONE hex file.

I need hex file to burn internal flash ROM in 89s8252, and another hex to burn external
data rom. How can i make two hex file from
OMF2 file?

Is this possible?...

Tomasz Halat

Parents
  • With the code you have posted the table will be stored in code space then loaded into xdata at runtime.

    If this is not what you want you could create a binary image of what you want in the external ROM by whatever means (utility program, hex editor etc) then use bin2hex to convert to hex file.

    Stefan

Reply
  • With the code you have posted the table will be stored in code space then loaded into xdata at runtime.

    If this is not what you want you could create a binary image of what you want in the external ROM by whatever means (utility program, hex editor etc) then use bin2hex to convert to hex file.

    Stefan

Children
No data