Ok it seems that setting did the trick.
The difference was that in original example static
Also had to lower TOTALHEAP
define configAPPLICATIONALLOCATEDHEAP 0
// Original #define configTOTALHEAP
SIZE ( 14 * 1024 )
define configTOTALHEAPSIZE ( 3 * 1024 )
Now issue becomes that all stops in ISR trap after ~15 seconds , and I can reproduce it , it is always ~15 seconds.
;– default ISR handler if user does not supply
;– simply puts device into lpm0
NOP ; CPU40 Compatibility NOP
Could this be somehow connected?