Page 3 of 3

Re: chSysHalt("SV#8") at Vector78

Posted: Thu Feb 01, 2018 9:55 am
by Giovanni
Hi,

SV#8 is the check :)

Anyway, good news you found it.

Giovanni

Re: chSysHalt("SV#8") at Vector78

Posted: Thu Feb 01, 2018 2:50 pm
by vrollei
Not exactly... :-)

Two calls of CH_IRQ_PROLOGUE() / CH_IRQ_EPILOGUE() inside EXT IRQ handler,
but SW#8 will be called in different IRQ handler, so there is no call trace or hit that can be used to find the problem.

Re: chSysHalt("SV#8") at Vector78

Posted: Thu Feb 01, 2018 3:41 pm
by Giovanni
The callback is called by the IRQ handler, the callback then calls CH_IRQ_PROLOGUE(), I think it is two in a row even if do not happen in the same function.

Unless I understood it wrong.

Giovanni

Re: chSysHalt("SV#8") at Vector78

Posted: Thu Feb 01, 2018 4:56 pm
by vrollei
Yes,

first CH_IRQ_PROLOGUE in EXT IRQ handler, the second CH_IRQ_PROLOGUE in EXT callback and chSysHalt(SV#8) will be call from different IRQ handler,
in my case it were: ST and SPI, so there was no hint to look at CycloneTCP OS port which was call CH_IRQ_PROLOGUE from EXT callback.