Saturday, April 5, 2014

Problem in Ties code- Just wont build!

Ah.. great. Error in Ties code! No way! Go with a basic gpio on off code then. Go ahead and burn that. Make sure the initial image file is safe and sound. Take it from RUNs computer today.

You have to get TIE to get his code to build on Eclipse. That has to happen fast! Maybe tuesday. Till then ? 


Oooooo... PHH paid a visit. !! And I told him what I was working on !

My heart skipped a beat when I was busy working on my codes and I hear a familiar voice form behind "Hello!"

And I look back and PHH is smiling at me!

He was surprised that I had no clue about the firmware and how to work on it. And I told him I can manage it in time!

Wow... I have to show him I can do anything whatsoever. !

Lets do this! 

AIM: Make a GPIO pin go high or low and check it using the multimeter.


Basic code: GpioApp/cyfxgpioapp.c form the 1.3 firmware.

Notes:

1.General purpose I/O pins are a special (simple) case of low
bandwidth peripherals that do not need DMA capability

2.Simple GPIO provides software controlled and observable
input and output capability. They also can raise interrupts.
Complex GPIOs support a variety of time based functions.
They either work off a slow or fast clock. Complex GPIOs
can also be used as general purpose timers by firmware.

3. The basic structure goes something like this.
a. Write the GPIO init function and define all the pins.
b. Write various thread functions.
c. Create an Application function which calls the threads.
d. In main function - Configure the pins for enable.  


Code Observations:

1. In CyFxGpioInit (void):
/* Override GPIO 21 as this pin is associated with GPIF Control signal.
     * The IO cannot be selected as GPIO by CyU3PDeviceConfigureIOMatrix call
     * as it is part of the GPIF IOs. Override API call must be made with
     * caution as this will change the functionality of the pin. If the IO
     * line is used as part of GPIF and is connected to some external device,
     * then the line will no longer behave as a GPIF IO.. Here CTL4 line is
     * not used and so it is safe to override.  */
    apiRetStatus = CyU3PDeviceGpioOverride (21, CyTrue);



Procedure:

1. The DAQ board has a TP2 at GPIO45.q

2. Use the basic gpioApp and modify the pins.

Observations:
1. so when we directly load the code, it doesnt return the connection status status as expected.
2. Trying to read and compare the GpioApp and the GpioSpi codes to see why the later returns the descriptors.
3. All your pin setting are done in:
                                                  void CyFxGpioInit (void)
4.

Next step: Playing with Tie's code

Now I know how to set up the Eclipse and burn the image file :) Looks good. Now I can get down to some business and start experiment with his board.


Friday, April 4, 2014

How to USE Eclipse IDE for FX3

http://www.cypress.com/?rID=92670

or just google asking for the title of this post! :)

Lets hope for the best from this tutorial...

Or there is a great video tutorial by Cypress. look it up. 

ERROR (SOLVED): Setting Up eclipse!



JUST DOWNLOAD THE CYPRESS version of ECLIPSE form their website and you will be good.


IMP: How to setup the IMG file creation other settings before starting of with Eclipse!

Open the programmers manual, and then go to the topic which says :

12.2.2.4: Creating New Eclipse Projects
This will provide the setup steps for you to use Eclipse successfully!

Going ahead and setting up the process!