Unit test for iMX6 Platform SDK hangs when ELF is run from U-boot

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Unit test for iMX6 Platform SDK hangs when ELF is run from U-boot

跳至解决方案
1,781 次查看
andreaskarlsson
Contributor III

Background :  Unit tests for iMX6 Platform SDK hangs when the ELF is run from U-boot.

Hw: SABRESD card MCIMX6DL. With 1GB DDR

Sw:

SKD: imx6_platform_sdk_v1.1.0 built with Sourcery_CodeBench_Lite_for_ARM_EABI

U-boot: Built last week from latest source with mx6dlsabresd_config, only diff from latest is I included CMD ELF for bootelf

Steps to reproduce

1. Booted U-boot via SD card.

2. Load the ELF via  > tftp 0x20000000 sdk_unit_test_ALL.elf

3. Run the ELF via >bootelf 0x20000000

4. The unit test application start as expected.

5. From the menu I select "e - epit test -> 2 - for tick test"

6. When started it hangs after the text below hav ebeen printed.

EPIT is programmed to generate an interrupt every 10ms as a tick timer.

The test exits after 10 seconds.

Have anyone in the community succesfully booted and run the unittest application via U-boot?

Regards

Andreas

标签 (1)
0 项奖励
回复
1 解答
1,351 次查看
andreaskarlsson
Contributor III

For the community  FYI

I got it working today. Basically iMX6 Platform SDK startup.S need to "reset" the CortexA9 core when it is started from U-boot. It can't start properly with inherited settings dont by U-boot. Ex VBAR

Regards

Andreas

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,352 次查看
andreaskarlsson
Contributor III

For the community  FYI

I got it working today. Basically iMX6 Platform SDK startup.S need to "reset" the CortexA9 core when it is started from U-boot. It can't start properly with inherited settings dont by U-boot. Ex VBAR

Regards

Andreas

0 项奖励
回复
1,351 次查看
ceyhun
Contributor I

Hi Andreas

I am experiencing the same situation. Can you explain this reset operation of CortexA9 core in more detail?

Thank you..

0 项奖励
回复