Enter X, Square, X, O, Triangle, X to activate invincibility in God of War: Chains of Olympus on PSP.
Make sure you are entering it on a screen that accepts input, and input the sequence in one go without pausing between buttons. A dropped or doubled press is the usual reason a code appears not to register.
Invincibility trivialises combat, which is fine for exploring or for pushing past a difficulty spike, but it also means you will not trigger the damage-based events some encounters rely on.
If the code stops working after a checkpoint reload, re-enter it. Codes of this type generally apply to the current session rather than persisting in the save.