Since you moved the stack from the end of the RAM to before the code (and before the heap) the _sbrk function will hang always because the following condition will be always true:
(heap_end + incr) > _get_stack_pointer()
If the stack is before the heap then I would check something like this:
(heap_end + incr) > _END_OFRAM
Hi,
Since you moved the stack from the end of the RAM to before the code (and before the heap) the _sbrk function will hang always because the following condition will be always true: (heap_end + incr) > _get_stack_pointer()
If the stack is before the heap then I would check something like this: (heap_end + incr) > _END_OFRAM
Regards, Bertalan