cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

New Contributor

請教一個關於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
Reply
1 Solution
1 Reply