iMXRT1021 - HARDFAULT in BOARD_BootClockRUN().

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

iMXRT1021 - HARDFAULT in BOARD_BootClockRUN().

ソリューションへジャンプ
1,503件の閲覧回数
t_thurgood
Contributor III

Hi,

We have experienced HARDFAULT issues at POR time. When trying alternative NOR flash chips or start-up configurations we would get an immediate hardfault in IAR debugger or standalone.

In the past we have had issues with some of the (unnecessary clock configs) and these have been removed from our build, but the latest problem was only "fixed" when this config was commented out in clock_configs.c...

// CLOCK_InitSysPfd(kCLOCK_Pfd2, 18);

I would like to know what this PFD is actually doing in relation to our hardware?

And do you see any consequences of this change?

We are using an IMXRT1021 with NOR flash, some led drivers, ethernet port and an RF chip.

br,

Tony

ラベル(1)
0 件の賞賛
返信
1 解決策
1,406件の閲覧回数
mjbcswitzerland
Specialist V

Tony

pastedImage_1.png

The default PFD2 output is 396MHz (with a fraction value of 24) so the call with a value of 18 is presumably setting the output to 528 MHz, like the main output.
PLL2-PFD2 is potentially connected to various peripherals, which have their own frequency limits and possibly something using this is clocked beyond specification.

See also the table of page 5 of https://www.utasker.com/docs/iMX/i.MX_RT_1021_uTasker.pdf

The question is whether you configured this to output this frequency or whether whatever code you are using/generating is doing it maybe by mistake?

Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
1,406件の閲覧回数
chriscowdery
Contributor V

I am working with Tony on this one and I did the original work. The code is based on one of the FreeRTOS examples for the MIMX1020-EVK.

Probably freertos_generic.zip

I have just checked and it has this misconfigured (?) clock.

Chris.

0 件の賞賛
返信
1,407件の閲覧回数
mjbcswitzerland
Specialist V

Tony

pastedImage_1.png

The default PFD2 output is 396MHz (with a fraction value of 24) so the call with a value of 18 is presumably setting the output to 528 MHz, like the main output.
PLL2-PFD2 is potentially connected to various peripherals, which have their own frequency limits and possibly something using this is clocked beyond specification.

See also the table of page 5 of https://www.utasker.com/docs/iMX/i.MX_RT_1021_uTasker.pdf

The question is whether you configured this to output this frequency or whether whatever code you are using/generating is doing it maybe by mistake?

Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]

0 件の賞賛
返信
509件の閲覧回数
arpad_toth
Contributor II

Why doesn't the UI tool show the clock limit in clock tree? Like in ST's cube MX.

0 件の賞賛
返信
1,406件の閲覧回数
t_thurgood
Contributor III

Hi Mark,

Thanks for the quick response and the very useful information.

I believe that clock config came from the original evk setup. I will investigate its use in our project, using the clock diagrams.

best regards,

Tony

0 件の賞賛
返信