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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,066 Views
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

Labels (1)
0 Kudos
1 Solution
636 Views
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

View solution in original post

0 Kudos
2 Replies
637 Views
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 Kudos
636 Views
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 Kudos