-
Notifications
You must be signed in to change notification settings - Fork 2k
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
z1: malloc doesn't work when running z1 mote on Cooja #6150
Comments
First of all: are you sure you want to use malloc() on embedded device - particular a really constrained one such as the MSP430? Second: I'm not really sure I understand your proposed solution. Have you verified that it fixes your problem? Can you elaborate why casting the result to |
Hi, Thanks for your prompt reply.
Thanks. Best regards, 2016-11-21 6:31 GMT-08:00 Oleg Hahm notifications@github.com:
|
By the way, I realized that 'unsigned int' may be not good solution for all 2016-11-21 10:54 GMT-08:00 Jiff Kuo jiffkuo@gmail.com:
|
Yes, please close it.
Thanks
From Jiff Kuo iPhone
… Peter Kietzmann ***@***.***> 於 2017年11月27日 09:25 寫道:
@Jiffkuo I didn't follow your description above in detail but however, cooja was never (really) part of RIOT ( #1921 wasn't merged). Also, there was no conversation since one year. You think we can close this one?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
hi, |
I found an issue about malloc, if you use malloc in C code and compile the code within z1 board then running it on Cooja simulator. No error report after the compilation. However, malloc always returns NULL.
After investigation, I think we can modify msp430-main.c:141 as below,
Could you help to review the modification? Does it make sense?
Thank you
Tzu-Chi
The text was updated successfully, but these errors were encountered: