Mbedtls rsa_sign example not working

Has anyone successfully used rsa_sign example program in mbedTLS??.
When is try to use it, it return RSA/SHA256 signature failed -0x4080 error.

Any idea whats the cause for this error? n how to correct it??