Not sure but if x is an int, 16 bits, the address space of PSOC 1 is limited to 32KB,
is compiler losing it on the implied cast ?
I changed to BYTE x; and tried again. But problem is not solved. I think that is not cast problem. PSoc compiler may not be ANSI C. ((&PRT0DR) + x) is ordinary address operations.
Is there someone who has been faced with this problem?
You might file a CASE on this -
To create a technical or issue case at Cypress -
“Create a Case”
You have to be registered on Cypress web site first.
Thanks for your suggestion