how to add prefix 0x to hex?

Hi! i am using P89c669 as master and P89v51 as Slave.The Slave program it self by using IAP method.the hex file for the program is received form master.so the master have the hex file.now the problem is to convert the normal hex to prefix added hex value [0x].because keil is not support the hex values without 0x prefix.Is there any solution for this.
Thanks & Regards,
K.T.Venkatesh.

Parents
  • "now the problem is to convert the normal hex to prefix added hex value [0x].because keil is not support the hex values without 0x prefix"

    No, I don't think that is the problem at all!

    For example, the Intel Hex format does not have "0x" prefixes, and there are plenty of examples - including Keil C51 examples - that work perfectly well with it.

    Therefore, please explain in detail what you are trying to achieve, and why (you think) your current approach needs this "0x" prefix...

Reply
  • "now the problem is to convert the normal hex to prefix added hex value [0x].because keil is not support the hex values without 0x prefix"

    No, I don't think that is the problem at all!

    For example, the Intel Hex format does not have "0x" prefixes, and there are plenty of examples - including Keil C51 examples - that work perfectly well with it.

    Therefore, please explain in detail what you are trying to achieve, and why (you think) your current approach needs this "0x" prefix...

Children
More questions in this forum