Quantcast
Channel: Cypress Semiconductor - PSoC Creator Software
Viewing all 369 articles
Browse latest View live

Custom Build Configurations?

$
0
0

I've looked in the PSoC Creator docs, on forums and other searches and couldn't find information about how to create custom build configurations.

I'm familiar with Microsoft Visual Studio​ features to create custom build configurations beyond the standard Debug and Release.  It allows me to define unique conditional compile settings depending on what target I'm trying to build.

In particular for the PSoC family it would be nice if I can have individual compile/build settings for the same app if I'm loading into the CY8KIT-042 which doesn't have a bootloader as compared to the CY8KIT-049 which does.  Without loading a separate project.

At least for now, does anyone know how to conditionally compile the "Bootloadable" object.  I know how to enable/disable it but I'm trying to load the app it on the 042 and 049 kits correctly.

Len

 


Any Reason for New User to use Creator 3.1 vs 4.0?

$
0
0

I'm brand new to PSoC, just installed downloaded & installed the CY8CKIT-059 DVD. I see there is now a Creator 3.1 SP2 update and Creator 4.0 download available.

Question: as a new user, is there any reason to use Creator 3.1, or should I skip 3.1 and simply go with 4.0? I'm a hobbyist, not an engineer, so my projects won't exactly be "pushing the envelope" of  PSoC.

 

Thanks in advance

[Problem with encryption and authentication] - PSoC Creator and CYBLE-022001-00

$
0
0

Good morning,

I am currently developping software with PSoC Creator 3.3 on a chip CYBLE-022001-00. My question is about the security. This is my configuration :

General :

GATT Server.
GAP Paripheral.

GAP Settings (Security) :

Security Mode : Mode 1.
Security Level : Authenticated pairing with encryption.
I/O Capabilities : Display Only.
Bonding requirement : No Bonding.
Encryption key size (bytes) : 16.

 

I have created 2 Services in a Custom profile : One for Read and one for write data. I have a bridge between BLE and I2C (i am using a project « Day035_I2C_BLE_Bridge » for that).

To have an higher security betweek two devices, i am using encryption and authentication. I used the project « Day016_Authentication » to have the same thing. The problem is : during the authentication, i enter the passkey in a smartphone (the passkey generated by the cyble-022001-00), but if i fail the authentication, i am still able to write data in a characteristic and i am able to read theses datas with the I2C component.

In the profile properties, all permissions need an encryption (encryption required) and an authentication (authentication required).

Do you know how it is possible to write (and read) in all characteristics even if the anthentication if fail ?

Thank you for your answer.

 

Kind regards.

input+interruption

$
0
0

hi every one 

i want to calculate the number of pulse of a signal, u think that is possible with this example by using juste only an input +interruption and than count the number of rising edge ....?

thank u every one ^^ 

 

Find Me profile: Where is alertLevel declared?

$
0
0

In the BLE_FindMe code example the blue LED is affected by the switch statement at line 194 in main.c. When I perform a Grep search for the declaration of alertLevel, no results are returned. In the Profiles tab of the Configure 'BLE' window, Alert LEvel is assigned a UUID of 2406. When I perform a Grep search for that UUID value, I see that the Alert Level in cyBle_gattDB[] (line 142) is assigned a value of 0x2A06u at offset 0x000Eu.

However, I still see no declaration that equates alertLevel to UUID 0x2A06u at offset 0x000Eu in cyBle_gattDB[].

When I create an empty Find Me project and build it, there is no switch statement and so I would need to know that I would need to create something to store the alert level sent from the client/central (in my case CySmart 1.0) to do whatever it is I need done by the server/peripheral. Or, I would need to understand that I need to start with the existing example code and change it to meet my needs. Where is this level of information presented?

Where is alertLevel declared? It must be declared somewhere so that the alert value sent by the client/central can be stored for use by the server/peripheral's code.

Howto manage multiple hardware targets?

$
0
0

I'd like to know if there is a way to manage multiple hardware targets in PSoC Creator?

i.e. without having to duplicate the full project, I'd like to:

1) re-use the same code & schematic but have different pin-mapping configs.

2) build for multiple target-cpu's (within the same psoc-family), preferably using the same binary.

example: I'd like to run the same code on both the main 5LP on a CY8KIT-059 & the KitProg CPU. Since they are slightly different, the boot-loader will not accept this. So I'd like to know if there is a way around the explicit cpu-definition in the bootloader component.

 

Thanks David

Only 8 colors in emwin

access interrupt of component from another component

$
0
0

Hello,

I would like to access the "CAN1_ReceiveMsg" of the CAN component from an custom component. I know that I can use the "CAN1_RECEIVE_MSG_CALLBACK" define, but only by adding it manually in my project. Is it possible to do this within my custom component so that it is not necessary to do the define by the component user? 

How can I read the received data from within the callbackfunktion? (How do I figure out witch mailbox was the one that caused the interrupt?)

regards Konrad


Anyone have copy of PSoC Creator 2.0?

$
0
0

Im trying to make firmware for an old CY8C3866AXI-040ES2 chip with ID 0x0E028069​.

Anyone have a copy/link of PSoC Creator 2.0? Earliest that the PSoC Creator Software Archive has is 2.1, which does not support this device.

USBFS-BOOTLOADER-HID

$
0
0

hi every one, can we make a project with usbfs on mode HID and also bootloader

i mean we can use the bootloader for loading our fils and also use the usb for communication with an application at the same time 

thank you every one :)

PSoC4 pioneer and ESP8266 WiFi module problem

$
0
0

Hello guys, 

 

I started to mess around with  ESP8266 and PSoC4 pioneer kit (CY8C4245AXI-483), this is my uart set up: 

https://i.imgur.com/UrOn4K9.png 

https://i.imgur.com/oP5A643.png

I have set up my ESP8266 pins like this: 

CE - 3.3 V 

3.3 V - 3.3 V 

RX - TX P1[1]

TX - RX P1[0]

GND - GND 

RST - P2[2] 

Everything else is left float. 

 

I send AT command and check for OK response from ESP like this: 

<code>

UART_PutString("AT\r\n");  

 if (!WaitText("OK", 100)) 
        UART_1_UartPutString("UART does not work\r\n"); // debug text to putty terminal

</code>

I use some code from similar projects, to check for OK response:

<code>

uint16  WaitText(char *target, int time)     /******************************************************/             
 {
uint8 targetLen = strlen(target);                                 // Длина искомого фрагмента
uint8 index = 0;                                                  // maximum target string length is 255 bytes
char c;                                                            // текущий символ
while(UART_GetRxBufferSize())
//do
{                             // читаем UART  
      c = UART_ReadRxData();                                        // это элемент[index] искомой строки?  
      if( c == target[index]){  if(++index >= targetLen){return 1; }}    // return true если все элементы строки найдены    if all chars in the target match
      else  index = 0;   //..........................                     // не тот фрагмент - обнуляемся 
      if( !UART_GetRxBufferSize()){CyDelay(1); time--;}    // при проверке с==0 - вычитывает несколько раз, поэтому ReadRxData и GetRxBufferSize
    } //while(time);
return 0;    // буфер данных пуст

</code>

The problem is, that I find no OK response. I thought that UART_PutString() function, does'nt put CR and LF chars at the end, so I put them myself, but I might be wrong, so I tried playing with combinations (no CR, but LF, no LF, but CR, no CR and no LF), but it still does'nt work, could it be that I configured my UART incorrectly? I know that the baud rate is correct, because I tested the esp on arduino board, and everything worked just fine. So at this point I am stumped, any ideas how to solve this?

timer +input

$
0
0

hi every one 

I wish to read a pwm signal by using only an input pin + timer, so I make an interruption relied to my pin and then I make a delay of 1ms but when I send the data to my application to read it, its send to me 0 value, I think my interruption doesn't work correctly, any suggestion please thank you ^^

Download PSoc Creator 4.1

$
0
0

Hi everyone, I am new to the community.
I can not download psoc creator 4.1.
Where do I find it? Give me the link?
Thank you

Psoc Version selector Launch scripts

$
0
0

Hello everybody,

I made a script that will open a project with the version of PsocCreator that it was created with (if available on the system).
This is functionality that I found very much lacking in PsocCreator. It is probably comparable to "Version Selector" from visual studio.

https://github.com/mjmlvp/LaunchPsocCreator

If there are issues, or you have pull requests please let me know. Any feedback could make the scripts more useable for general use.

 

Also, if cypress likes to make it part of the distribution in any form, I would love that.

Regards,

Martijn

PSoC creator 3.3 or 4.0 build EZ-PD CCGx SDK 3.0.1 error

$
0
0

Hi Sir,

I used PSoC creator 3.3 or 4.0 build CYPD2122-24LQXI_mobile/CYPD2122-24LQXI_notebook/CYPD2134-24LQXI_power_adapter have error happen.  as insert picture.

Please help me to solve this issue, Thanks a lot !!!

 


sprintf from psoc creator 2.2 to psoc creator 4.0

$
0
0

Hello,

 

I work from a project from psoc creator 2.2 with cypress kit-014 and i try to build it with new psoc creator 4.0 and cypress kit-059

with my new custom board.

How modify my project to work correctly with sprintf ?

sprintf doesn't work.

        // Calcul de la température en °Celcius
        Tx = ( Nx * q ) / 0.01 - 273.15;

        // Affichage du nombre Nx
        CharLCD_Position(3,0);
        CharLCD_PrintString("Nx =   ");
        CharLCD_PrintNumber(Nx);
        
        // Affichage de la température
        // avec le caractère spécial °
        CharLCD_Position(2,0);
        CharLCD_PrintString("T  = ");    
        sprintf(tstr,"%+9.4f",Tx);        
        CharLCD_PrintString(tstr);

 

Thank you for the help.

 

Patrick Guérangé

Teacher

France

Unable to read UART_Bootloader.hex. The path does not exist

$
0
0

Starting to explore PSoC 5... I am getting the following message when building a trivial PSoC 4 bootloadable project with dependency on UART_Bootloader. 

"Unable to read the hex file (D:\CY\WSs\Blinking LED\UART_Bootloader.cydsn\CortexM0\ARM_GCC_484\Debug\UART_Bootloader.hex). The path does not exist."

Both projects, bootloadable and bootloader have  ARM_GCC_493  paths.   Where is the 484 reference engrained in the bootloadable project for it to want that path?   I cannot find it anywhere.

Any ideas how to get around it?

 

 

 

A bit puzzled about archive/bundle and copy/paste process

$
0
0

When doing an archive/bundle, it creates a workspace.bundlexx.zip with renaming .cywrk files to include _bundlexx in the filename.  There does not seem to be a Creator function to restore bundle, neither to the original location to back out some changes, nor to a different location.   If that is true, it implies that the user would have to unzip the archive file in the desired location, but this will leave names changed, which is a bit odd .   What am I missing ?

Is it that this is a half way implementation of a rounder process that will see the other half implemented in the next update (4.1..) ?

Also, when I do a copy of a project and do a paste in another workspace in changes the names to ...Copy_01 even if there is no name contention.   This seems a bit awkward.   Is there a better way to clone a project ?

Tony

About .cywrk and .cywrk.user files

$
0
0

I have noticed the existence of these two files in a workspace.   It seems that the .cywrk.user one has much more stuff in it.  

My question if the content of the .cywrk.user is relevant for the integrity of the project.   The question has come to my mind when I unzipped a Nokia LCD 5510 project which comes with a .cywrk.Admin file which is not visible on the open workspace.   I opened the plain .cywrk and that PC created my .cywrk.tony.   Now, if I do work, add another project...   I assume the .tony will change.   What would happen if then I archive/bundle and send it back to Admin.   Would the user Admin see the updates with integrity?   

Update from 3.3 to 4.0 -> Where is the cyvis file?

$
0
0

Hi,

I have just updated from PSOC Creator 3.3 to 4.0, but cannot generate text based description files. I set generate description files to true. Rebuilt the project. Nothing happens. Does it have to be a new project?

Best,

Viewing all 369 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>