Page 2 of 2

Re: shell halting when code size gets too big

Posted: Mon Sep 12, 2016 11:56 am
by pcat
PS I am using Build 16.1.0

Re: shell halting when code size gets too big

Posted: Mon Sep 12, 2016 12:29 pm
by Giovanni
Hi,

There is no issue as far I know, shells work in a lot of application. I am not sure there is something to fix in the shell.

You should provide more info.

Giovanni

Re: shell halting when code size gets too big

Posted: Fri Oct 21, 2016 2:59 pm
by pcat
Hi,
I resolved this issue many weeks ago but have another question on different subject but just to complete this one.

I identified I was actually running out of RAM, I used chCoreGetStatusX() to find out the free Heap size.
I changed the device so I have more RAM 48kb.

Forgive my ignorance but is there a simple method of checking RAM usage or is it just a case of looking in the .dmp file for the highest assigned address ?
e.g.
20004da8 l d .heap 00000000 .heap This is close to 20k and that was the size of the RAM in the STM32F103RB device.

Or am I on the completely wrong track .

Best regards
Paul

Re: shell halting when code size gets too big

Posted: Fri Oct 21, 2016 3:37 pm
by Giovanni
Hi,

Map or dmp files are the best way to see static memory usage.

Giovanni