Dave Nadler
Dave Nadler
I never call printf before starting the OS, as I use OS resources to handle redirected output, and IIRC any storage used in newlib reentrancy structures will be wasted once...
@leech001 Last I looked ST FreeRTOS/newlib free storage was still very buggy - beware. @ApiumJacob Put the define in FreeRTOSconfig.h. Rather than guessing/trial and error, use my port.c which tells...
@ApiumJacob - In my stress testing USB CDC occasionally dropped packets from ST device to host (after I modified the code to send/receive using FreeRTOS queues). ST USB stack is...
Sorry, I'm afraid I don't understand your question? Both provided implementations check for out-of-memory with the check: ` if (currentHeapEnd + incr > limit) { // Ooops, no more memory...
Go it, yes could overflow depending on memory layout. Not an issue for the targets I'm using (because SRAM is not near top of 32-bit address space), but certainly possible....
> Thank you for your precious thread safe explanation and implementation of `_sbrk`, really helped. Thanks, much appreciated!
USB stick does not work unless plugged in at program start, and does not work if unplugged/replugged
Apologies I won't be able to look at this for some weeks...
USB stick does not work unless plugged in at program start, and does not work if unplugged/replugged
Update as I've had a chance to further test this... Oddly, plugging in a USB stick with application does work with a new faster USB stick (SanDisk Extreme PRO 128GB),...
USB stick does not work unless plugged in at program start, and does not work if unplugged/replugged
Further info: This behavior is caused by a very slow old USB stick. I had to increase the MSD read timeout for this stick to work with the uTasker USB...
Hi Guido - I haven't reviewed this carefully, but some of it looks daft or worse. Malloc in an ISR is never, ever, ever a good idea, WTF? Are they...