zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.87k stars 6.63k forks source link

NSIM boards cant find property files #69752

Closed nashif closed 8 months ago

nashif commented 8 months ago

Describe the bug

Trying to run hello_world in nsim simulator...

west  build -p  -b nsim/nsim_em  samples/hello_world/ -t run

Generating files from /home/nashif/zephyrproject/zephyr/build/zephyr/zephyr.elf for board: nsim
[104/105] nSIM COMMAND: /home/nashif/bin/nsimdrv -propsfile /home/nashif/zephyrp...sim/support/nsim.props /home/nashif/zephyrproject/zephyr/build/zephyr/zephyr.elf
07:24:27.656895 ERROR:Could not read properties file /home/nashif/zephyrproject/zephyr/boards/synopsys/nsim/support/nsim.props

To Reproduce Steps to reproduce the behavior:

  1. west build -p -b nsim/nsim_em samples/hello_world/ -t run

Expected behavior

It should run

Impact None of the nsim simulators work

Additional context we use

set(NSIM_PROPS "${BOARD}.props")

but

i9:zephyr(board_identifier): find -name *props
./boards/synopsys/nsim/support/nsim_vpx5.props
./boards/synopsys/nsim/support/nsim_hs5x.props
./boards/synopsys/nsim/support/nsim_hs3x_hostlink.props
./boards/synopsys/nsim/support/nsim_sem.props
./boards/synopsys/nsim/support/nsim_em11d.props
./boards/synopsys/nsim/support/nsim_em.props
./boards/synopsys/nsim/support/nsim_em7d_v22.props
./boards/synopsys/nsim/support/nsim_hs_mpuv6.props
./boards/synopsys/nsim/support/nsim_sem_mpu_stack_guard.props
./boards/synopsys/nsim/support/nsim_hs.props
./boards/synopsys/nsim/support/nsim_hs_sram.props
./boards/synopsys/nsim/support/nsim_hs_flash_xip.props
./boards/synopsys/nsim/support/nsim_hs6x.props

so, the file name is never the same as ${BOARD}

nashif commented 8 months ago

fyi @ruuddw @evgeniy-paltsev @abrodkin