Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OOB_5_4] tls-client got "SSL - Memory allocation failed" #54

Closed
soramame21 opened this issue Mar 2, 2017 · 11 comments
Closed

[OOB_5_4] tls-client got "SSL - Memory allocation failed" #54

soramame21 opened this issue Mar 2, 2017 · 11 comments

Comments

@soramame21
Copy link

soramame21 commented Mar 2, 2017

I got following error when running tls-client on NUCLEO_F746ZG.
It related memory handling by IAR compiler.
allocation_err

How to build the bad executable

mbed compile -m NUCLEO_F746ZG -t IAR -c > bb0 2>&1

mbed export -i IAR -m NUCLEO_F746ZG -vv > aa 2>&1
then click Make, Download and Debug on IAR Embedded Workbench.

mbed export -i make_iar -m NUCLEO_F746ZG -vv > a00 2>&1
make clean
make V=1 > ren02 2>&1

How to build a working executable

mbed compile -m NUCLEO_F746ZG -t GCC_ARM -c > bb2 2>&1

@soramame21
Copy link
Author

@SimonB @MarceloSalazar Could you give comment for this issue?

@simonbutcher
Copy link
Contributor

Looks like a memory problem. The suspicion is the heap isn't big enough with IAR.

@mazimkhan - Can you please look at this?

@mazimkhan
Copy link

@soramame21 please try with latest mbed-os that has fix for the memory issue.

@ciarmcom
Copy link
Member

ciarmcom commented Mar 7, 2017

ARM Internal Ref: IOTSSL-1248

@soramame21
Copy link
Author

@mazimkhan I'll try it tomorrow. thanks.

@mazimkhan
Copy link

mazimkhan commented Mar 7, 2017

Memory issue for NUCLEO_F429ZI and UBLOX ODIN W2 is fixed by mbed-os ARMmbed/mbed-os#3871
For NUCLEO_F746ZG new fix need to be done.

@mazimkhan
Copy link

Please try with this PR on mbed-os
ARMmbed/mbed-os#3902

@mazimkhan
Copy link

Updated my comment above. This issue should be fixed by ARMmbed/mbed-os#3902

@MarceloSalazar
Copy link

I confirm PR ARMmbed/mbed-os#3902 fixes memory allocation problem when building with IAR
@0xc0170 please add a note to the mbed OS known issue list

@soramame21
Copy link
Author

@mazimkhan @MarceloSalazar yes, I verified the fix for IAR toolchain as well.

@mazimkhan
Copy link

Can this be closed now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants