- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am writing p port data to s port by creating manual channel between them and debugging with segger.
dmaCfg.notification = CY_U3P_DMA_CB_PROD_EVENT |CY_U3P_DMA_CB_RECV_CPLT ;
while debugging, the value for dmaCfg.notification is 12.what does mean?is CY_U3P_DMA_CB_PROD_EVENT is called?
dmaCfg.cb = CyFxSlFifoPtoSDmaCallback;
the value for dmaCfg.cb is showing error reading variable(please look at attached image).
let me know the reason.
thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
>> the value for dmaCfg.notification is 12.what does mean?is CY_U3P_DMA_CB_PROD_EVENT is called?
Since you have set the dmaCfg.notification field to CY_U3P_DMA_CB_PROD_EVENT | CY_U3P_DMA_CB_RECV_CPLT, where the value of CY_U3P_DMA_CB_PROD_EVENT is 0x1000 and the value of CY_U3P_DMA_CB_RECV_CPLT is 0x0100, the resultant value of the dmaCfg.notification is 0x1100 which corresponds to 12. This does not mean that the CY_U3P_DMA_CB_PROD_EVENT event is called. The DMA channel is registered for the events CY_U3P_DMA_CB_PROD_EVENT and CY_U3P_DMA_CB_RECV_CPLT.
>> the value for dmaCfg.cb is showing error reading variable(please look at attached image).
let me know the reason.
Have you defined the function CyFxSlFifoPtoSDmaCallback() properly in your firmware code? Are there any errors while the code is directly built using the Eclipse IDE?
Best regards,
Srinath S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
>> the value for dmaCfg.notification is 12.what does mean?is CY_U3P_DMA_CB_PROD_EVENT is called?
Since you have set the dmaCfg.notification field to CY_U3P_DMA_CB_PROD_EVENT | CY_U3P_DMA_CB_RECV_CPLT, where the value of CY_U3P_DMA_CB_PROD_EVENT is 0x1000 and the value of CY_U3P_DMA_CB_RECV_CPLT is 0x0100, the resultant value of the dmaCfg.notification is 0x1100 which corresponds to 12. This does not mean that the CY_U3P_DMA_CB_PROD_EVENT event is called. The DMA channel is registered for the events CY_U3P_DMA_CB_PROD_EVENT and CY_U3P_DMA_CB_RECV_CPLT.
>> the value for dmaCfg.cb is showing error reading variable(please look at attached image).
let me know the reason.
Have you defined the function CyFxSlFifoPtoSDmaCallback() properly in your firmware code? Are there any errors while the code is directly built using the Eclipse IDE?
Best regards,
Srinath S