Quantcast
Channel: Cypress Semiconductor - PSoC 3 Device Programming
Viewing all 103 articles
Browse latest View live

programming succeeds only 1 time

$
0
0

In my project, the programming succeeds only 1 time.
I get an error (102 - Failed to erase the flash) when I try to re-programming.
The device (CY8C3245PVI134) no longer programmed in any project.
I can not erase the Flash using a programmer (File -> ERasing All Flash).
What could be the cause, and is it possible to recover the chip? 
 


how to configure the PSOC 3 to read the 19200 baud rate inputs data

$
0
0

Hello Everyone, 

I am using psoc 3 to read the input data from the Counter machine which is configured(counter machine) to 19200 baud rate  so when i give the counter input directly to the capacitor in order to change the input from alternate signals in to the steady state signal znd then to the PSOC 3 to gpio pins and  after then  when i see the output from the uart terminal it is not even able to read the data properly but the same configuration actually working fine for the 1200-9600 baud rates so i don't able to understand what is going wrong with the 19200 baud rate so i request somebody could propose me some other alternative logic or ideas to test the 19200 baud rate input any help would be greatly appreciated

 

Thank you

prabhu

psoc 3 program is not working in psoc creator 4

$
0
0

Hello Everyone,

 

I have recently updated my psoc 3.3 to psoc 4 and then i checked my already working program in the posc creator 4  it not even working wt all  just it make the device turn off immediately i dont able understand  can anybody please tell me why this is happening do i need make any changes in the psoc creator 4 

 

any help would be greatly appreciated

 

Thank you

prabhu

Emulated Eeprom

$
0
0

I am using CY8C4124LQI-443 Psoc 4100 family in my project. I need to use emulated eeprom. There is an example in psoc. But I have problem when I use. I want to read the data written on eeprom after restart the system.

 

I use this command CY_GET_REG8(adress); or Data = (*((uint8 *) (adres)));. Data read is 0. 

What is the problem of this? Can anyone explain the detail of this? (I think after I close the system, Data written is deleted by the microcontroller.?)

 

Thanks for helping. 

Can Creator 4.0 work with CY8CKIT-001 with the PSoC 3 plug in?

$
0
0

Hi all - I have a CY8CKIT-001 and hoped to use the CY8C38 plug in.  When I connect the programmer it says:

The device was recognized but PSoC Creator (4.0) does not support using it at this time.

 

Also (perhaps related) when I power up the PSoC kit with the PSoC 3 family plug in it does not do the self check that the other PSoC modules do.  Perhaps it got erased?  Hardware failure?

 

Please advise

Thanks,   Paul

Attachments: 

Cap Sense CSD method

$
0
0

Does anyone know why would I would have to call CapSense_CSD_Start() method twice in order to make my 3 button switch to work correctly?  My top button wouldn't work if i don't call that method twice.  The top button is further away from other 2 buttons.  The tuning method is set to "AutoSense." 

Here is the line of code.

    CyGlobalIntEnable;  /* Uncomment this line to enable global interrupts. */     
    CapSense_CSD_Start();    
    CapSense_CSD_Start();
    CapSense_CSD_InitializeAllBaselines();

for(,,)    

if(CapSense_CSD_IsBusy() == 0u){// If not busy.
            /* Update all baselines */
            CapSense_CSD_UpdateEnabledBaselines();
            /* Update On/Off State */
            CapSense_CSD_ScanEnabledWidgets();
            /* Display CapSense state using LED/LCD */         
        }
        CapSense_State();//checks for active widget

}

Command Line Interface

$
0
0

Part to program = CYBLE-022001-00

Using the MiniProg3 programmer and referencing the ppcli app notes.

Example : Programming a Chip

OpenPort MINIProg3/848E4756090B “c:/Program Files/Cypress/Programmer”

HEX_ReadFile "c:\\CYBLE-022001-00.hex"    //Does this specify the device being used???????

SetAcquireMode “Power”
Acquire
Calibrate
EraseAll
Program
Verify
VerifyProtect
Protect
CheckSum 0
HEX_ReadChecksum

Writing a batch File for CY8

$
0
0

Hello,

i want to write a batch file for CY8.

how to progrming, earsing , verifing etc... CY8 with batch file?

please help

thanks 


How to configure UART to write the AT Commands in the TERMINAL

$
0
0

Hello Everyone,

I have devlopped my first prototype using PSOC3  and i would like to test my prototype by passing the AT commands in order to test the UBLOX module which is installed in my hardware,

i want to send the AT commands from the UART (TX/RX) terminal and it should bypass the PSOC 3 or link the PSOC3 MICROCONTROLLER with the  UBLOX module directly and i would like to see the response for those AT commands in the UART terminal 

Inorder to send  the AT commands in the UART terminal what should i do (configuration ) how can i bypass the PSOC 3 inorder to write the AT commands directly into the UBLOX MODULE

 

1) Do i need to use two UART components in order to make this logic work or one UART component is sufficient?

2) i dont know how to bypass or directly pass the AT Commands into the UBLOX module without interferring the PSOC 3(MICROCONTROLLER) so i request can anyone propose me some ideas or logic or examples to write the AT ommands it could be really helpful for me to test my prototype

Thank you

prabhu

example code - The Hex file does not match the acquired device

$
0
0

Hi Cypress guys,

I am using miniProg3 to program CYPD2122-20FNXIT. when I use "PSoC Programmer 3.25.0.2504", every thing is OK. But when I run sample code "C:\Program Files (x86)\Cypress\Programmer\Examples\Protocols\SWD\C_Sharp", I got error:

Program All using COM-object interface only
MiniProg3/1548BB00036F
-->CYPD2122-20FNXIT Information:
Family: CYPD2xxx
Pins : 20
Flash : 32768
Acquire Modes: 3 POWER RESET
Silicon IDs:
        14 06 11 A4
ProgrammerVersion:MiniProg3 version 2.05 [3.08/2.08]
hexJtagID :0x14 0x06 0x12 0xA4
chipJtagID:0x0B 0xB1 0x14 0x77
Failed! The Hex file does not match the acquired device, please connect the appropriate device

for trouble shooting, I add some console output of hexJtagID and chipJtagID, looks like the issue is chipJtagID NOT correct.

Any advice to get correct chipJtagID?

I am attaching the screen shot of "PSoC Programmer 3.25.0.2504", the modified source code(c#) and run output.

 

why cydelay is not working properly(psoc3)

$
0
0

Hello Everyone, 

I hav configured two gpio pins from Psoc3 one for Reset and another for Power On likewise in the below attached i wrote my simple main inorder to reset the logic actually my device will turn on only if the Reset pin held low for few seconds and then go back to high so inorder to achieve this logic i have intially set the high for RESET pin and then it will be high for few seconds then it should go (RESET pin) to logic low for 2 seconds after that it should go again logic high 

 

so finally which brings hte logic of reset the device and it will restart again but my problem is above logic is not working as expected coudl anyone please suggest me what mistake did i made in the below code or please suggest me some alternative ways to implement the logic in PSOC3

 

int main()
{
   
    Switch_int_Start();
    isr_100ms_Start();    
    CyGlobalIntEnable;    
RESET_Write(1);
PWR_ON_Write(0);
        Enable_3V8_Write(0);
    
CyDelay(5000);
RESET_Write(0);
CyDelay(2000);
RESET_Write(1);
}

Any help would be greatly aprreciated

Thank you

prabhu

Capsense button barely sensing touch

$
0
0

I have a board I designed according to the CapSense design rules and I'm hoping somebody would be able to help me out with the issue I am having (I have attached a partial image of the board just to show its design for reference).

So, here is my issue. When I set my CapSense module to manual I get strong readings on all buttons and the slider, but seeing that we don't have time to do manual calibration for every single item these go in, this isn't very feasible especially with environmental factors having effect of the readings. When I set my CapSense to manual with run-time tuning the reading I get for my furthest button isn't as strong but is still plenty to set as a touch. Now the issue is that when I set my CapSense to SmartSense it barely gets a reading from this button at all. 

Is there anything I can do to make this reading stronger when using SmartSense? When I use manual or manual with run-time tuning I get a very strong reading so I doubt this is a board design issue and could probably be fixed somewhere in software, I just dont really know how. 

JTAG not available as Debug Select option

$
0
0

Hi,

 

I'm running PSoC 3.3 for CY8C3666LTI-027.
In the System tab of the IDE there are only the two debug select options: SWD and SWD+SWV.
There's neither choices for GPIO (no debug) nor JTAG. None of the JTAG pins are used for anything else.
JTAG is needed for boundary scan and programming using third-party probe.

What may be the reason why the JTAG options do not exist?

Enable/Disable CapSense Shield Programmatically

$
0
0

I would like to use my chips shield pin to determine if there is a 0 Ohm resistor connecting two hatchedplanes on my board on startup. If the resistor is sensed I would then like to Enable the CapSense shield. If the resistor is not sensed I would then like to Disable the CapSense shield. Seeing that the hatched planes are parallel hatched planes I would think I could measure the capacitance and it would change with/without the presence of the resistor connecting them. I have attached an image of the board as reference. The red hatched plane is connected to the shield pin and when the the resistor (R5) is present the blue hatched plane is also connected to shield. When R5 is not present, R6 is, which then makes the blue hatched plane a ground plane. 

So, my question is: How/can you Enable/Disable CapSense Shield programmatically? and would it be possible to use the shield pin to sense the presence of the resistor?

Attachments: 

WHY UART RX BUFFER is Passing Some extra unwanted data a

$
0
0

Hello Everyone,

I have developed my new prototype  using PSOC 3 and Right now i have been testing my prototype using UART to send the AT commands via Hyperterminal for that am getting proper response  and also i have attached the picture for proper response under name TEST image please see attached picture

My problem is that i have sent AT commands directly from software instead of typing in hyperterminal using PUTSTRING function  but am getting some addtional imporper data along with my AT commands in the hyperterminal please see the attached picture i did not understand why the extra values are arising at the first command execution itsefl could anyone please suggest me some useful mehtods to resolve those extra unwanted data in my command s? please help me why it is happening like that i can't able to resolve this issue any help would eb greatly appreicated

I have attached my project along with this please have a look and suggest me some ideas or please verify my software 

 

 


PSOC Checsum

$
0
0

What type of Checksum does PSOC programmer perform on the Flash data?

I'm trying to verify my checksum with a separate program (Dataman) with a PSOC 3.

There are several types of checksum available:

Byte sum(x8)

Word sum Little Endian (x16)

Word sum Big Endian (x16)

CRC-CCIT

CRC-XModem

CRC-16

CRC-32

Negated (N)

Straight (N)

Supplement (U)

 

I'd like to know what kind of checksum PSOC Programmer uses so I can varify with a 3rd party program.

Thanks,

Kyle

why Rx Buffer missing some incoming data after successsful first exection

$
0
0

Hello Everyone 

I have been working on the PSoc3.3 for a while 

I am using the UART component to send the AT commands to the modem

During the First AT command execution RX buffer is working as expected and returning all the values in the Debug terminal 

Sending the AT COMMANDS second time by using While(1) Loop

AT command are sent to the modem by the UART  but the data returning from the modem are missed by the buffer and the values show on the debug terminal is showing some of the incoming data are missed 

since last week i have been trying to the find the issue but not able to solve this issue so i am expecting some help or ideas from this group actually i have wrote an circular buffer to process the data return from the Modem 

unsigned char rx_buffer[256];

unsigned char ptr_rx_buffer_R;  // pointer to position in RxBuffer to write incoming Rx bytes
unsigned char ptr_rx_buffer_W;  // pointer to position in RxBuffer to write incoming Rx bytes

CY_ISR(isr_RX_INT)

    
    while(UART_ReadRxStatus()& UART_RX_STS_FIFO_NOTEMPTY)
    {
    rx_buffer[ptr_rx_buffer_W] = UART_RXDATA_REG;
    ptr_rx_buffer_W++;
    UART_ClearRXBuffer();
    }
  
}

This is my above interrupt function it is working only for the first time after that it is started missing some datas i dont know why please help me to sort out this issue

i have attached the two pictures first one is workign well while in the seocnd picutre you will get clear idea of what i have been facing

 

Thank you

prabhu

SMBus Slave configuration in PSoC-3

$
0
0

Hi,

Can someone please explain me PAGE and QUERY options and their application in SMBus Slave block configuration?(Please don't copy paste the data sheet content)

Regards,

Harsha

RTOS implementation in PSOC3

$
0
0

Hey guys,

I want to implent a simple rtos in a psoc3. Can anyone suggest me what are the best resources that I have to go through learn that.

And also I want to download microkernel for psoc3 can anyone suggest me where can i get it from.

Note : I am a newbie to this. 

Half Duplex Uart

$
0
0

Hi Everyone,

 

I would need some help to implement an algorithm that let me send  through the PSoC 3'serial port  a few bytes  to  the serial port of device A  only every 5 seconds. That endless loop only can be interrupted if PSoc 3'serial port is receiving some few bytes from the device A.  Afterward  the endless loop should be running  again.

Please see the attached file.

Viewing all 103 articles
Browse latest View live