FX3 / State Machine control

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
KyleLin
Level 3
Level 3
Distributor - Weikeng(GC)
First solution authored 50 sign-ins First like received

請教一個關於AN75779 - UVC example裡state machine的問題:

在PUSH_DATA_SCK0指向PUSH_DATA_SCK1的路徑上,

為了保險起見,我希望在切換到thread1前,先確定thread1是否已可使用(包含確認Descriptor是否已經載入完成等...),

因此嘗試加了一個trigger "DMA_RDY_TH1",如下圖所示

FX3_State_Machine.jpg

但卻收到錯誤訊息:

Trigger variable ‘DMA_RDY_TH1’ cannot be used in transition equation between states ‘PUSH_DATA_SCK0’ and ‘PUSH_DATA_SCK1’.

‘Thread number’ of Action ‘IN_DATA’ need to be ’Thread1’ for using trigger variable ‘DMA_RDY_TH1’

我想在Thread1上使用IN_DATA來取樣資料,但卻不能先確認thread1是否已可使用? 不知是不是我誤解了trigger "DMA_RDY_TH1"的意思了@@?

  1. ps. 同樣的概念,測試過在WAIT_FULL_SCK0到PUSH_DATA_SCK1的路徑上多加一個trigger "DMA_RDY_TH1"就不會有錯誤訊息並可順利編譯...

FX3_State_Machine2.jpg.png

謝謝!

ref: AN75779 example https://www.cypress.com/documentation/application-notes/an75779-how-implement-image-sensor-interface...

0 Likes
1 Solution
YangyangC_06
Employee
Employee
750 replies posted 500 replies posted 250 replies posted
0 Likes
1 Reply
YangyangC_06
Employee
Employee
750 replies posted 500 replies posted 250 replies posted
0 Likes