FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [October 2010 Threads] More Info for vApplicationMallocFailedHookPosted by Freddy Gomez on October 14, 2010 Hi everybody,
This is just a suggestion for the FREERTOS:
Could the size of the requested memory chunk be passed as argument to this function?
Rationale: * It is better than void argument.
My motivation to post his suggestion is that a bug in my application cause the pvPortMalloc function be called with a higher value. In my case the value is directly related to the content of a file and the file (hand made for a test) was wrong. So the argument in the malloc failed hook would be helped me.
May be someone could share more examples of the usage of the argument in the malloc failed hook.
Regards
-Fred
RE: More Info for vApplicationMallocFailedHookPosted by Dave on October 15, 2010 I don't think the prototype of the hook function should be changed because that would break a lot of peoples code. You can put a break point in the function, then if it gets hit, step out of the function and inspect all the variables in a debugger though.
RE: More Info for vApplicationMallocFailedHookPosted by Freddy Gomez on October 15, 2010 Certainly we don't want code breaks, thanks for the comment.
I've been using the breakpoint method for a while. But in a alpha or beta release it cannot be done because of the debugger.
However, It could be done by allowing the user to select (by FREERTOSConfig.h) between the current implementation of the hook and the alternative option.
Again, It was just a suggestion.
More Info for vApplicationMallocFailedHookPosted by iweindesmedt on April 28, 2017
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|