TAD blank according to stack size

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TAD blank according to stack size

814 Views
jeremyesquirol
Contributor III

Hi,

 

I'm working with custon MK21FN1M0 board with MQX 4.2.0 (udated 4.2.0.2 was done) on KDS 3.2 on windows 10.

I'm debugging with PEMicro (Multilink)

 

I'm facing a strange behaviour using TAD. I've tasks with different stack size :

193801_193801.pngpastedImage_1.png

Just after creating the "LOOP_TASK_USER_IDX" with _task_create(0,LOOP_TASK_USER_IDX,0);
I lost data from TAD. There is no error returned by _task_create()

193803_193803.pngpastedImage_1.png

 

All TAD tabs are empty. That's the last task I launch, and before it TAD is working fine.
This behaviour change according to LOOP_TASK_USER_IDX task size. If i reduce the stack, TAD works.

 

Untill this morning it was working with 10000; After i made some tests, it don't work with 10000; Only with smaller value (about 7000)

 

I dont' think i'm using all the RAM, BSS for my project is 6808 and total task Stack is 22000. MK21FN1M has 128KB of RAM,  according to RAM Memory Utilization ,even if I consider only the 64KB lower part I must still got a lot of memory

193802_193802.pngpastedImage_2.png

I've seen similar posts in community forum but no answer was given.

Does someone know what is hapening with TAD? Does the error came from TAD or must be in my code?

 

I join TAD logs

Regards,

Original Attachment has been moved to: TAD_log_170913_211204.log.zip

0 Kudos
0 Replies