Thanks, I tested simply copying the code and it works. I will probably make a 
PR for that and we can then refactor the code to have a single place for each 
arch.

Best,
Matias

On Sun, Jan 17, 2021, at 05:06, Xiang Xiao wrote:
> On Sat, Jan 16, 2021 at 6:08 PM Matias N. <mat...@imap.cc> wrote:
> 
> > Hi,
> > I would like to add this feature so I can measure used stack on nRF52. I'm
> > trying to figure out what
> > is needed and it would seem I need to replicate the go_nx_start() function
> > found on other <arch>_start.c
> > files. Is that all there is to it?
> >
> >
> it's only for idle thread coloration, other thread stack coloration is
> handled by common code.
> 
> 
> > Also, any reason why this is chip dependant and not simply arch dependant?
> > It would seem this piece of code
> > is the same for all chip families inside a given arch.
> >
> >
> Yes,  go_nx_start could share the same code in one arch.
> 
> While we're at it, stack check code also involves replicating the few lines
> > found on <arch>_start.c right? Is this
> > also really chip dependant?
> >
> > Best,
> > Matias
> 

Reply via email to