phoenix-rtos-project icon indicating copy to clipboard operation
phoenix-rtos-project copied to clipboard

armv7m7-imxrt117x-evk: BusFault when starting new psh after exit cmd

Open damianloew opened this issue 2 years ago • 7 comments

Screenshot from 2023-01-02 10-15-46

  • seems to not happen on armv7m7-imxrt106x target

damianloew avatar Jan 02 '23 09:01 damianloew

Additionaly system can hang after executing ps command (there is no output). It seems that it happen only on the imxrt117x target and the imxrt106x is not affected.

jsarzy avatar Jan 12 '23 11:01 jsarzy

FYI: Probably the source of problems is toolchain. Just cloned the phoenix-rtos-project sha:e1224d, manually build toolchains (I keep an archive), here's the quick track:

  • Using toolchain build on 24.09.2021 (sha:d275ff) this does not occur see the attached picocom logs 20230112_230433_ttyACM0.log
  • When used (my current) toolchain build on 18.11.2022 (sha:efdff3) above mentioned failure occurs to me as well.

Hopefully this helped.

gerard5 avatar Jan 12 '23 22:01 gerard5

can we confirm if this still happens?

I think since the issue detection there were some changes to TLS handling on Cortex-M targets in libphoenix but I'm not sure.

nalajcie avatar Sep 08 '23 12:09 nalajcie

can we confirm if this still happens?

I think since the issue detection there were some changes to TLS handling on Cortex-M targets in libphoenix but I'm not sure.

Seems to be fine now, tested using 8970699c419155287f806f14d5ff7166df4a0d7f phrtosproject version.

damianloew avatar Sep 11 '23 12:09 damianloew

So, can we remove this:

https://github.com/phoenix-rtos/phoenix-rtos-tests/blob/fd0b9a58935a48865ab594959a0e60fcd3fd0b71/trunner/target/armv7m7.py#L104-L106

nalajcie avatar Sep 12 '23 07:09 nalajcie

The issue is still present, there is no info about exception but consecutive:

sysexec psh
exit
sysexec psh
exit 
sysexec psh
exit

would hang on sysexec psh at some point along the way

nalajcie avatar Sep 14 '23 09:09 nalajcie

The above behavior is present after applying this PR https://github.com/phoenix-rtos/phoenix-rtos-project/pull/836 (probably indirectly - changes are not suspicious, only the order of symbols in .text section has been changed), the previous phrtos-project update (d358a307f8248a31904982fdac34febe7e41cad9) seems to work fine and this issue is not present.

damianloew avatar Sep 14 '23 14:09 damianloew

Could you put exception log?

anglov avatar Jun 10 '24 11:06 anglov

Could you put exception log?

Sorry, I've checked it on the older version of toolchain, I am still testing it to be 100% sure, but an issue seems to be resolved

damianloew avatar Jun 10 '24 12:06 damianloew

The issue no longer occur, checked on ea760a2fdc7ebb328303851bb29f086b3f4775c0

Probably fixed in https://github.com/phoenix-rtos/phoenix-rtos-build/commit/072b8599ebcf4178d0094d3ae256dd4e2eddba0c (toolchain rebuild needed)

damianloew avatar Jun 10 '24 16:06 damianloew