5 Replies Latest reply on Sep 28, 2020 10:12 PM by GlWa_4148656

    can PC send a special command to reset FX3 ?

    GlWa_4148656

      In my application,  FX3 is used as slave FIFO, in which i enable the AUTO-DMA mode, it means that i can not control any internal register or ram,  this chip act as a FIFO-black box.

       

      if hot plug exists, any speacial operation from PC can reset the device ?  to make sure the rest of data in memory don`t affect the next transfer.

       

      similarly, i think the GPIF-II logic part in FPGA may be reset when usb hot plug happened, so when it happens, i may need a hardware signal from FX3 to notify FPGA to reset relevant logic parts, is there any good solution ? 

        • 1. Re: can PC send a special command to reset FX3 ?
          RashiV_61

          Hello,

           

          From the description, I understand that FX3 needs to be reset, and on reset, the FPGA also needs to be notified. Is my understanding correct?

          - Please let me know your meaning of "hot-plug exists". Is it like FX3 will initially be in the self-powered mode and then FX3 will be connected to the host. On connecting FX3 to the host FX3 should be reset . Is it correct?

           

           

          Regards,

          Rashi

          • 2. Re: can PC send a special command to reset FX3 ?
            GlWa_4148656

            Sure, all your understandings are correct !  

             

            when the USB port is re-connected to host, i think the there may exist a scheme which can reset all relevant parts in FX3,  and the FX3 driver part in FPGA should be reset as well ,so i need a hardware signal from FX3 to notify FPGA when USB port is re-connected to host, if this "hardware signal" is a kind of dedicated "connect successful notification" signal belong to FX3 , that will be perfect and easy for me, hah.

             

             

             

             

            • 3. Re: can PC send a special command to reset FX3 ?
              RashiV_61

              Hello,

               

              Thank you for the confirmation.

              CyU3PUsbRegisterEventCallback API is used to register a USB event callback function with the USB driver. This function will be invoked by the driver every time a USB event of interest happens.

              Please refer to the FX3 API Guide for the different types of USB events defined in CyU3PUsbEventType_t. One of these events is CY_U3P_USB_EVENT_CONNECT this occurs when the USB connection is successful.  You can check for this event and notify the FPGA using a GPIO.

               

              Note: You can also refer to the bulksrcsink example of the SDK to get more details about the implementation of CyU3PUsbRegisterEventCallback API.

               

              Please let me know if any queries on this

               

              Regards,

              Rashi

              1 of 1 people found this helpful
              • 4. Re: can PC send a special command to reset FX3 ?
                GlWa_4148656

                Thanks for your solution!  rashi,   i will check those API relate to your words.

                • 5. Re: can PC send a special command to reset FX3 ?
                  GlWa_4148656

                  Thanks for your solution!  rashi,   i will check those API relate to your words.