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

XC888 - Problem when executing code from XRAM.

Hello

I am using Infineon's XC888 uController. I have to execute the code from XRAM. I have done the same for another project on the same uController. But, I am not able to do this in the new project. I am refering to 'AP0805810_Load_Code_To_XRAM.pdf' app note. I have tried both the the user class and program segment method. After debugging and comparing with the other working project, I figured out that it is not able to read the correct address. In the .i file, the compiler assigns a xdata pointer to the source address instead of code pointer for the source program seg for 'memcpy' fn of 'string.h'. I think I have identified the cause here. Is there any reason why this can happen when the target options are same for both projects? Is there a way around this?

Thanks!