First of all: Thank you Igor and thank you Dirty!
Aniway, I tried the .xcl file you suggested (even if I had already tried that one) and even tried to insert a SLEEP_CODE segment definition in it but it didn't work..
Maybe, you can suggest a more proper definition of this segment
I inserted the one i am reporting:
// Sleep PCON instruction must be 4-byte aligned.
//
-D_SLEEP_CODE_SPACE_START=(_CODE0_END-7)
-D_SLEEP_CODE_SPACE_END=(_CODE0_END)
-Z(CODE)SLEEP_CODE=_SLEEP_CODE_SPACE_START-_SLEEP_CODE_SPACE_END
//
This was taken from a modified version of the ti_51ew_cc2530b.xcl file.
I'm aware of the fact that the best solution is to completely redevelope the application starting from the sample, but I hope to get the help i'm desperately needing since i'm quite in a hurry. Can you suggest any other solution please?
Thanks a lot!