-
Problem description: testbench snippet:
firmware snippet:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
如果firmware.c中單獨測試//qs的部分,如果也不行,有可能是firmware mprj0~31的設定有問題,可以檢查一下。 |
Beta Was this translation helpful? Give feedback.
-
firmware中uart的那段code是把cpu接收user project interrupt的功能打開 |
Beta Was this translation helpful? Give feedback.
-
few comments:
The above procedure avoids time for the testbench and firmware latency which is more robust. |
Beta Was this translation helpful? Give feedback.
few comments:
in the task uart: send_data, we may wait random delay to send data. This is to let interrupt happen at any time when CPU execute fir/matmul/qs
mask = irq_getmask();
mask |= 1 << USER_IRQ_0_INTERRUPT; // USER_IRQ_0_INTERRUPT = 2
irq_setmask(mask);
// enable user_irq_0_ev_enable
user_irq_0_ev_enable_write(1);