Hi again...
I think I encountered a workaround:
1) Clear all components (in my project, GPIOA, UART0 and UART2)
2) GENERATE CODE whitout any component; it´s working, don´t generate any error... !!!!
3) Insert GPIOA, then GENERATE CODE; it´s working again, don´t generate any error
4) Insert UART0, then GENERATE CODE; still no errors...
5) Finally insert UART2, then GENERATE CODE; no more errors...!!!
6) Initialize all devices (PORTS, UART0, UART2) and no errors after GENERATE CODE
What was wrong with the other issue? I arrived to the same result but without errors.
Well, I hope that this description helps with find the correct solution to the problem.