Topic: [SOLVED] "RSA_FUNCTION MP_EXPTMOD_E: memory/config problem" error
Hello:
What exactly means the "RSA_FUNCTION MP_EXPTMOD_E: memory/config problem" error?
I 'm using wolfSSL (with RTOS) to connect to AWS and it works perfect.
Now, I had to add a routine to write flash in the mcu ATSAM4, and for some reason (?), the stack does not longer connect. Checking the log, I see the above error.
I can't find the way the flash routines affect the stack. These routines use an array of 512 bytes but at local scope (inside a function) so it shouldn't affect. The flash routine is a wrapper around routines in ROM (from Atmel) and has few functions to init, unlock, erase and write the flash. Making tests I discover only the write function (last step in the procedure) is the one affects the stack. So the array in memory is not the cause of the problem. I don't know exactly how the flash_write() affects this.
Anyway, I would need to understand what above error means... It's the memory not enough? Why memory config problem? Is there any way to check additional parameters to see how the other code affects the stack?
I hope someone can help.
Thanks
Gus