Launch bare metal sample

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

Launch bare metal sample

741 Views
OlivierG
Contributor III

Hi

I use a Imx 93 evk board
I am tring to measure the launch time of a bare metal yocto application

i launch
MACHINE=imx91-11x11-lpddr4-evk DISTRO=nxp-real-time-edge source ./real-time-edge-setup-env.sh -b build
bitbake nxp-image-real-time-edge

in the image there are samples
/root/examples/heterogeneous-multicore/

i would like to launch a sample which emit an Ethernet trame like : hello-world-ca
/root/examples/heterogeneous-multicore/hello-world-ca/ddr_release

I would like to launch wireshark on the host PC and measure approximatively the time beetween the power on and the first trame on wireshark

Is there a way to flash an SD card with this example so that it boots immediately ?

 

Greeting 

Olivier

0 Kudos
Reply
1 Reply

721 Views
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

You could use the time command for measuring the time executing the command of loading and running the demo, you will use this command:

# Use the command from 3.3.2.3.1.2 RTEDGEUG
setenv load_baremetal "ext4load mmc 1:2 0xC0000000 /examples/heterogeneous-multicore/hello-world-ca/ddr_release/hello_world_ca53_RTOS0_RAM_CONSOLE-0xc0fff000.bin; dcache flush; icache flush; cpu 2 release 0xC0000000"
# Measure the time that takes to run the script
time run load_baremetal

Then, you can add the script to bootscript for its automatic execution upon boot.

Regards

0 Kudos
Reply