STM32單片機在Keil5下仿真
- DUG卻出現*** error 65: access violation at 0x40021000 : no ‘read’ permission.
Options for target -> Debug
選擇 [User simulator]
Dialog DLL默認是DCM3.DLL
Parameter默認是-pCM3
應改爲
Dialog DLL默認是DARMSTM.DLL
Parameter默認是-pSTM32F103RC
Options for target -> Debug
選擇 [User simulator]
Dialog DLL默認是DCM3.DLL
Parameter默認是-pCM3
應改爲
Dialog DLL默認是DARMSTM.DLL
Parameter默認是-pSTM32F103RC
1 if (GetEPTxStatus(ENDP1) == EP_TX_NAK) 則認爲發送完成了 2 可以在相應端點的回調函數中,作相應的標誌 void EP1_IN_Callback(void)