RAM issue on LPC1768

Do you need the functionality of an RTOS in this application? Whilst that does seem like an excessively high amount of RAM usage (and this is not a fix for that, but a workaround), you may be able to use Bare Metal if you don’t need the features of an RTOS.