4 Replies Latest reply on Oct 23, 2019 11:33 PM by AnNa_4422346

    led blinking problem

    AnNa_4422346

      I am new to the EZ USB Suite and USB in general. I was running a few example codes with certain modifications to understand the functioning better.

      I have Cypress FX3 SuperSpeed Explorer Kit. I have attached the code below. I used this code with the BookLedBlink example in EZ USB Suite.

      I am blinking 2 LEDs alternatively and I have set the delay to 1 second.

      The moment I program my FX3 Superspeed, the time period is working correctly. As soon I reset the device, the frequency increases instantly and the desired time period is not achieved. What needs to be done? Can someone give me a working block of code for this and explain what extra things I need to set?

        • 1. Re: led blinking problem
          JayakrishnaT_76

          Hello,

           

          Can you please let us know what was your boot option? Also, can you please share the traces of GPIO before and after you reset the FX3. I tried the same firmware firmware and got the following trace.

           

           

          Best Regards,

          Jayakrishna

          • 2. Re: led blinking problem
            AnNa_4422346

            Hi,

             

            I programmed by connecting the Fx3 Superspeed module with the USB. I programmed it into RAM.

            I am new to programming to Cypress modules. Could you tell me where do you see the traces of GPIO? In EZ USB Suite?

             

            Thanks.

            • 3. Re: led blinking problem
              JayakrishnaT_76

              Hello,

               

              USB Boot mode is a boot option in which the FX3 firmware image is downloaded into the FX3 system RAM from the USB Host. So you have used USB Boot mode. In this mode if you press the RESET button, the Firmware image will be erased from the RAM. That is the reason why you get undesired frequencies.

              If you would still like to run the same code after pressing RESET, then please use the I2C EEPROM boot. For this, follow the steps listed below:

              1. In the Control Center, Select the Boot option as I2C EEPROM. This is shown in the following fig.

               

              2. After programming succeeded is shown, the device will re-enumerate as  USB BootProgrammer Device as shown below.

              3. Now remove the jumper in J4 of the superspeed explorer kit. Then press the reset button to run the code.

               

              To see the traces, you can make use of an oscilloscope or logic analyzer like salae. If you are using salae logic analyzer, then the software can be downloaded from the following website:

              Logic analyzer software from Saleae

               

              Best Regards,

              Jayakrishna

              • 4. Re: led blinking problem
                AnNa_4422346

                Thanks a lot! The code runs fine now. Thanks for the information.