cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32mp157 optee ETC panic 0 0 ECO 5.0.3

MWoło.2
Senior III

Hello,

I encountered a problem with optee that I could not resolve due to a misunderstanding of debug information.

During boot up the board, I get the following debug log

Spoiler
...
F/TC:0 0 __clk_enable:1195 Clock 192 has been enabled
D/TC:0 0 probe_driver_node:550 element: stm32-rtc on node rtc@5c004000 initialized
F/TC:0 0 probe_driver_node:543 Probing stm32-iwdg on node watchdog@5a002000
F/TC:0 0 pager_deploy_page:1469 Mapped 0x30023000 -> 0x2fffa000
F/TC:0 0 pager_deploy_page:1469 Mapped 0x30056000 -> 0x2ffea000
F/TC:0 0 pager_deploy_page:1469 Mapped 0x30021000 -> 0x2fffd000
D/TC:0 0 gic_it_set_cpu_mask:410 cpu_mask: writing 0xff000000 to 0x349218b4
D/TC:0 0 gic_it_set_cpu_mask:412 cpu_mask: 0x3000000
D/TC:0 0 gic_it_set_prio:426 prio: writing 0x1 to 0x349214b7
D/TC:0 0 dt_driver_device_from_node_idx_prop:370 Property resets missing in node watchdog@5a002000
F/TC:0 0 __clk_enable:1195 Clock 58 has been enabled
D/TC:0 0 iwdg_wdt_get_version_and_status:528 Watchdog is enabled
F/TC:0 0 pager_deploy_page:1469 Mapped 0x30055000 -> 0x2ffed000
F/TC:0 0 pager_deploy_page:1469 Mapped 0x3001c000 -> 0x2fffb000
D/TC:0 0 register_periph_iomem:331 IO for non-secure resource 0x5a002000
E/TC:0 0 Panic

and with Panic at the end. I have to admit that I don't see any trouble with the debug text above.

I also attached two dts files tf-a and optee and full log. 

The files were generated from the latest STMCubeIde 1.17.0 with the necessary supplementation.

Thanks for any help

BR Michal

4 REPLIES 4
GatienC
ST Employee

Hello Michal,

In order to have some more information on what causes the panic, you can print the call stack. Please have a look at https://optee.readthedocs.io/en/latest/debug/abort_dumps.html.

This will heavily narrow down the search to the root cause.

Br,

Gatien

Hi GatienC,

I think Your suggestion did not resolve my problem because in my debug-log.txt there are no records with just empty addresses or data dumps like

"E/TC:0  0x001044a8" 

 Besides in my log, I have no records like "E/TC" without the last 'panic'.

Can I find the example dts of optee for DK2 board or ED1.

In my opinion Cube generator did something improper or I defined something wrong in it.

BR,

Michal

GatienC
ST Employee

It most probably is linked to this but the backtrace will allow you to know which part of the code makes the platform panic.

Can you check in the "conf.mk" file in the build directory, that you have 

 

 

CFG_UNWIND=y

 

 

 

You can also set 

 

 

CFG_TEE_CORE_DEBUG=y

 

 

as well.

BR,

Gatien

MWoło.2
Senior III

OK, I check and try new options and let You know soon.

Thanks for now.

BR,

Michal