EA 4088 Tips (for me)
.
Avoid Strange Behavior of online compiler with 4088 (e.g. wait() )
Use mbed-src lib instead of default mbed lib.
- delete mbed lib (Gear mark)
- Import mbed-src (Keyword search and import as library, Compile All)
https://mbed.org/questions/2292/LPC4088-blinky-sample-strange-behavior-w/
Set Heap Limit
If you request small,many chunk memory to EAlib's sdram code (under uVision) , (until need dynamic heap allocation) malloc() or new returns a Internal memory address even if SDRAM was activated.
Heap and stack shares same (internal) memory area, and heap limit is stack end (in default setting), so stack is crash (Cause hard fault) before SDRAM will supply.
- Use mbed-src lib. instead of mbed lib.
- Change heap limit (of Internal memory) as below.
/mbed-src/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys.cpp
r.heap_limit = sp_limit - 0x3000 ;
( This sample keeps memory for stack 0x3000 byte. Default is 0 byte. )
Please log in to post comments.