PSoC™ 4 Forum Discussions
how do I make the example run on a CYBLE-222005-EVAL on the CY8KIT-042-BLE
It runs OK with the CY8KIT-142 / CY8C4247LQI-BL483
Thanks in advance.
Show LessReally trying hard to find help with being able to use dual or more proximity sensors over ble. A good start would be just being able to see an example of someone using two proximity sensors. I've tried to use the single ble proximity example on the PROC module as a basis for starting but I don't understand the valuables. Note that I am not trying to use two CapSense Components, just more than one pin as a sensor.
Thanks for any help anyone can provide...
Regards,
Kevin
First off, I would like to say I am new here and my apologies if I am posting this in the wrong place.
So quick back story, I bought 2 CY8CKIT-049-42xx PSoC 4 Prototyping Kits and they just arrived in the mail. I have never used PSoC or any Cypress offerings before. So far I have built my own project and got the LED on board to blink however fast I want and with whatever duty cycle I choose to get familiarized with the PSoC Creator 3.1. (So far I love it, it took me 30 mins of just reading the kit guide to get started from start to finish of my own project. Very well documented, anyone with some C experience can probably teach themselves this. Excellent, 11/10, would recommend)
After that I tried to get my wireless PS2 Controllers running on this (I have already run them on the MSP430 from TI). I love the SPI Master block so far, being able to set it to LSB First is great since the PS2 controller is little endian. However the problems start to occur when I upload the code. I grab a scope and check my Clk line, working great, so is Attention (SS/CS) and Command (MOSI). However my Data line (MISO) is floating at about 4v. The data being sent to the PS2 controller is correct on the scope, and its being run just in digital mode currently, so I am sending 5 bytes to it (0x01, 0x42, 0x00, 0xFF, 0xFF) and it should be returning (0xFF, 0x41, 0x5A) for the first 3 bytes (which I normally check but am not currently so that the transfer isn't interupted so I could check the data being sent) and then button data for the last 2 bytes.
I have tried slowing the clock I have attached to the SPI Master block as I know these PS2 controllers are somewhat finicky with timing. Some places say they will run a bit below 100kHz all the way to a bit above 500kHz. The ones I have from using the MSP430 seem to like to run between 350kHz and 500kHz and I have the external clock set to 850kHz so the Clk they get should be 475kHz, which it seems to be. But I also know these controllers seem to like a small delay between bytes, and there is absolutely none. Is there a way to code in a delay between each byte using the SPI Master?
I am using this link for reference;
http://store.curiousinventor.com/guides/PS2
Or if you have any other ideas, please let me know as well! As easy as this seems and as quickly as I have taken to it, I am sure there is tons to learn still.
Code I am using to get it to send the data correctly so far is as follows; SPI Master setup with CPHA and CPOL both = 1. RX and TX buffers both set to 5. Data bits set to 8.
#include <project.h>
int i;
char button_Data[21];
char poll_Data[] = {0x01,0x42,0x00,0xFF,0xFF};
char check_Digital[] = {0xFF,0x41,0x5A};
int main()
{
for(;;)
{
SPIM_WriteTxData(poll_Data[0]);
SPIM_WriteTxData(poll_Data[1]);
SPIM_WriteTxData(poll_Data[2]);
SPIM_WriteTxData(poll_Data[3]);
SPIM_WriteTxData(poll_Data[4]);
SPIM_Start();
for(i=0;i<5;i++)
{
CyDelayCycles(25);
button_Data = SPIM_ReadRxData();
}
SPIM_Stop();
CyDelayCycles(150);
}
/* CyGlobalIntEnable; */ /* Uncomment this line to enable global interrupts. */
return 0;
}
/* [] END OF FILE */
Hello everybody,
can somebody please help me to resolve my problem? Actually there is no communication between ADXL345 and PSOC4 BLE. I used both I2C Slave Addresses Ox1D and Ox53--> No reaction
In attachment you find my project.
regards
Ziad
Show LessHello,
we are close to release a new product based on the CYBLE-212019 module (ProcBLE), but we are currently observing random erasures (i.e., zeroing) of the metadata used by the bootloader - Upgradable Stack use case.
We are of course investigating into the code looking for bugs, but we noticed that the code provided in CyFlash.c to access Flash (or SFlash) does not tweak the IMO for CY_IP_SPCIF_SYNCHRONOUS is not true. We are wondering if this is correct, since all the documentation we found about Flash programming for the target processor states that any Flash operation shall be run with 48MHz IMO (which is eventually restored).
It has to be noted that in our application the SFlash may be updated from time to time depending on system operation. Since we don't use bonding, regular Flash is supposed to be written only when updating bootloader's metadata in case of FOTA request.
Build system is PSoC Creator 3.3 SP2 and cy_boot version 5.30 is used in the design.
Best regards,
Stefano Voulaz
I'm using CYBLE-022001-00 and would like to configure pins P1.5 and P1.4 as either UART or GPIOs during runtime. Depending on the configuration of the board, I need those pins to be either GPIO or UART pins. The cydwr editor will not let me assign the same pins to both the UART and the GPIOs.
Show LessHi everyone, i'm new in cypress devices. I have a CYBLE-022001-00 and i need to connect this module to my Xilinx Zynq-7000 Board as a receiver for some data (using UART pins only).
I build, program and debug my system in Vivado Design Suite for Xilinx devices. So can I use a CYBLE-022001-00 module in my project? How I need to program and debug it? What a features and procedures?
Thanks
I'm working on a custom board design where there will be no SW2 to provide a wakeup interrupt. I would like to use an external signal from a rotational pulse sensor (used for calculating RPM) to provide a wakeup signal. Can I just tie this signal into the current pin used for SW2 and still be able to calculate RPM or do I need to chain 2 IRQ blocks together? Will there be any problems with a constant triggering of the wakeup IRQ because this is also a RPM signal?
This is my 1st PSoC 4 BLE project so any other helpful hints would be welcome.
Show LessHi All,
I am working on CY8C4248LQI-BL583. I am able to run an OTA boot loader and UART boot loader separately,
I want to combine the 2 boot loaders into one project so I will be able to load my project via UART or via BLE,
Did someone create such a boot loader? What is the way to combine 2 boot loaders?
Thanks in advance
Show Less