-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intermittent MemMgtFault on stm32l4x6-nucleo #1095
Intermittent MemMgtFault on stm32l4x6-nucleo #1095
Comments
https://github.com/phoenix-rtos/plo/actions/runs/9546062432/job/26308199690
|
There's a slight chance that phoenix-rtos/phoenix-rtos-kernel#561 might fix it |
PC: 269 static int tty_uartenabled(tty_ctx_t *ctx)
270 {
271 return (*(ctx->base + cr1) & 1) ? 1 : 0;
0x08021962 <+530>: ldr.w r3, [r5, #512] @ 0x200
0x08021966 <+534>: ldr r3, [r3, #0]
285 while (((tty_dmarxready(ctx) == 0) && (tty_dmatxready(ctx) == 0)) || (tty_uartenabled(ctx) == 0)) {
0x08021968 <+536>: lsls r3, r3, #31
0x0802196a <+538>: bpl.w 0x80217c2 <tty_dmathread+114>
0x0802196e <+542>: b.n 0x8021804 <tty_dmathread+180>
235 libtty_wake_reader(&ctx->ttyCommon);
0x08021970 <+544>: mov r0, r6
0x08021972 <+546>: bl 0x8024048 <libtty_wake_reader>
0x08021976 <+550>: b.n 0x80218f0 <tty_dmathread+416>
0x08021978 <+552>: lsls r0, r2, #3
0x0802197a <+554>: movs r0, r0 LR: 257 static int tty_dmatxready(tty_ctx_t *ctx)
258 {
259 return ((ctx->data.dma.txDoneFlag != 0) && (libtty_txready(&ctx->ttyCommon) != 0)) ? 1 : 0;
0x08021956 <+518>: mov r0, r6
0x08021958 <+520>: bl 0x8023d5c <libtty_txready>
0x0802195c <+524>: cmp r0, #0
0x0802195e <+526>: beq.w 0x80217c2 <tty_dmathread+114>
260 }
Looks like code path that are reached in normal work and works fine. |
Maybe you can try phoenix-rtos/phoenix-rtos-kernel#553? |
I see it failed during merge to master, so I assume this pr needs further changes. |
At the first glance it looks fixed by phoenix-rtos/phoenix-rtos-kernel#562 @adamdebek could you also check? |
Yea, tests are running already. |
I ran over 200 test companies during night and not single one failed, so this confirm the issue is resolved. |
For now seen once on CI (https://github.com/phoenix-rtos/phoenix-rtos-project/actions/runs/9502217223/job/26189746156):
Seems like psh might be trying to access USART2 CR1 register for some reason. Did not look further into this issue.
The text was updated successfully, but these errors were encountered: