Hi Andras, thanks for your answer. I don't know if you are still working on it since your first post is a bit old now but I have found the way to get the "stat = SUCCESS" propperly. It was indeed related to the HOST_CONFIG parameter.
In the workspace of IAR.. go inside the "TOOLS" folder-> open the "buildConfig.cfg" file and modify the BLE Host Build Configuration, make comment (add two slash "//" ) the observer config and uncomment the peripheral+observer one. Leave everything else in that file the same. Should look like this in the end:
//-DHOST_CONFIG=PERIPHERAL_CFG
-DHOST_CONFIG=PERIPHERAL_CFG+OBSERVER_CFG
Now, it is running properly on my chip. It is indeed doing the observer and peripheral functions.
I think this is the answer for the initial question of the post, so please verify it so it can help others.
Best regards
Luis