-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
I am running mbed tls code in mbed-os on Cypress platform CY8CPROTO_062_4343W. Mbed-CLI is used here. I am running it on ARM Compiler version 5. I have run it on other compilers such as GCC_ARM and IAR. It works fine on these. For ARM Compiler I am getting stack overflow error on wait() call which is done after the operation is completed. I am getting following log
main: Hello World
main_unittest.cpp 300 ssl_generate_keys Private key len=608
main_unittest.cpp 121 _init_rsa_pk Private key len=608
main_unittest.cpp 395 unittest_ssl Encryption successful.
main_unittest.cpp 121 _init_rsa_pk Private key len=608
main_unittest.cpp 403 unittest_ssl decrypted_text = How are you?.
main_unittest.cpp 404 unittest_ssl strlen = 12,
main_unittest.cpp 408 unittest_ssl Test completed successfully!.
++ MbedOS Error Info ++
Error Status: 0x80020125 Code: 293 Module: 2
Error Message: CMSIS-RTOS error: Stack overflow
Location: 0x1000DA9F
Error Value: 0x1
Current Thread: main Id: 0x8004B80 Entry: 0x1000DE7D StackSize: 0x1000 StackMem: 0x8003B80 SP: 0x80FF758
For more info, visit: https://armmbed.github.io/mbedos-error/?error=0x80020125
-- MbedOS Error Info --
I have attached two files here main.cpp and unittest_ssl.cpp. These contain the code I am running.
I found out that the stack overflow error occurs on wait() call used in main.cpp after the operation is over.