This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

stack Heap setting prob

Hi
i am using RealView mdk for LPC2368 and trying

#pragma import (__use_no_semihosting_swi) and redefining stack and heap in retarget.c

__value_in_regs struct __initial_stackheap __user_initial_stackheap( unsigned R0, unsigned SP, unsigned R2, unsigned SL)
{ / struct __initial_stackheap config;

// Configure stack and heap boundaries and size config.heap_base = HEAP_BASE; config.heap_limit = HEAP_BASE + HEAP_SIZE; config.stack_base = SP; config.stack_limit = SP - 0x0D00;

return config;
}

void __sys_exit(int return_code)
{

while(1); // Endless loop
}

void __ttywrch(char c){}

But still i am getting Linker Errors

Error: L6915E: Library reports error: __use_no_semihosting was requested, but _sys_exit was referenced
Error: L6915E: Library reports error: __use_no_semihosting was requested, but _ttywrch was referenced

Any body knows about it ...plz reply

Best Regards

0