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.59k stars 6.48k forks source link

up_squared: samples/portability/cmsis_rtos_v1/philosophers/ failed. #28552

Closed chen-png closed 4 years ago

chen-png commented 4 years ago

To Reproduce Steps to reproduce the behavior:

  1. west build -b up_squared -p auto samples/portability/cmsis_rtos_v1/philosophers/
  2. west flash ~/up_squared.sh
  3. see error

Logs and console output Philosopher 2 [P: 0] HOLDING ONE FORK Philosopher 3 [P: 1] EATING [ 25 ms ] Philosopher 4 [P: 2] EATING [ 25 ms ] STARVING

Demo Description

An implementation of a solution to the Dining Philosophers problem (a classic multi-thread synchronization problem) using CMSIS RTOS V1 APIs. This particular implementation demonstrates the usage of multiple preemptible threads of differing priorities, as well as semaphores and thread sleeping.

Environment (please complete the following information):

dcpleung commented 4 years ago

This does not seem to be the correct log. Could you update?

chen-png commented 4 years ago

This does not seem to be the correct log. Could you update?

sorry, pasted error log. I have updated the log.