Skip to contentSkip to conversation

Are there any operations may influence WFI instruction?

DISCUSSION jameszxj 2 participants 2 messages May 1, 2021 – May 3, 2021

lore
Share & tools
lore

jameszxj

author
#0 lore raw

Hi,
I run rtems6 on my imx6ull board, just initialize a GPT timer to flash a LED. I load rtems with barebox, after output some initialized messages, system enters shell and stalls, interrupt(GPT timer, arch7 timer for tick) do not happen again. Shell (connect to UART1,interrupt mode) still works, when I type something, the LED flashes. It seems that system only responses to UART1 interrupt, and triggers the other interrupts respones. I remove wfi instruction from idle task, system runs ok.
And when I replace barebox with uboot, everything seems OK. I think maybe some initialized differences between barebox and uboot, but I haven't find any clues that may influence WFI.

Any suggestion?
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#1 lore raw

Hi,

Quoted 2 lines · jameszxj

Hi,
I run rtems6 on my imx6ull board, just initialize a GPT timer to flash a LED.

You can describe heartbeat LED in the barebox device tree just as you'd do in Linux and barebox will take care to blink it during bootstrap. No need to involve interrupts.

Quoted 2 lines

I load rtems with barebox, after output some initialized messages, system enters shell and stalls, interrupt(GPT timer, arch7 timer for tick) do not happen again. Shell (connect to UART1,interrupt mode) still works, when I type something, the LED flashes. It seems that system only responses to UART1 interrupt, and triggers the other interrupts respones. I remove wfi instruction from idle task, system runs ok. And when I replace barebox with uboot, everything seems OK. I think maybe some initialized differences between barebox and uboot, but I haven't find any clues that may influence WFI.

barebox on i.MX uses one of the available GPT timers as clocksource.

HTH,
Ahmad

Quoted 8 lines

Any suggestion?
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Signature · 9 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox