getting error "ERROR: source directory –b does not exist" when "west build –b nrf5340dk_nrf5340_cpunet –p"

C:\ncs\v2.6.2\nrf\samples\nrf5340\empty_app_core>west build –b nrf5340dk_nrf5340_cpuapp –p

while building the image, getting error:

ERROR: source directory –b does not exist
FATAL ERROR: refusing to proceed without --force due to above error

I checked the zephyr\board that the target board does exist.

C:\ncs\v2.6.2\zephyr\boards\arm\nrf5340dk_nrf5340

I used to be able to build without errors.

One major event for my PC is upgrading from windows10 to windows11. 

Thanks.

Related