PSoC™ 4 Forum Discussions
Hi Bob,
I am using the CYC8KIT-049 (42xx) plugged into my own board, which has three SPI devices sharing the same SCB SPI Master. The one at SS0 is a LED matrix which speaks Motorola with 16 bit data. At SS1 and SS2 are two Microchip CAP1128 capsense button controllers, which also speak Motorola, but with 8-bit data. SCB is initialized as Unconfigured. My code works with the LED matrix and the CAP1128 at SS1, and I have identical code to operate that at SS2. I also have a UART that spits debug info over the USB serial, showing button activity. My problem is that the PSOC will not operate the SS2 pin, it just sits high. I used a logic analyzer to catch this culprit, and to ensure that it wasn't interference on my board, I unplugged the 049 board and still no waveform on SS2. My code is attached. I've commented out the calls to interact with the LED matrix and the working CAP1128, to simplify. Any advice would be much appreciated.
Show LessHello,
I am using Cypress PSoC 4, CY8CKIT-042-BLE, CY8C4248LQI-BL583 and ESP8266.
I want these two modules to communicate with each other through UART.
I am unable to send a complete string, for example, a 15 bytes string. I want to use the parameters of the string in the application.
But, the complete data between them. I tried using APIs- UART_UARTGetByte() and UART_UARTGetChar(), if I wanted to receive data from the ESP which it prints serially.
And used UART_UARTPutString() & UART_UartPutChar() when I want to put string on serial port of ESP.
It's not working.
Show Lessin psoc creator, if you use the schematic tool to create 4 input switches, and name them SW1, SW2, SW3, SW4, the tool autogenerates 4 instances of the exact same code, the only difference is the name of the function, it creates API SW1_Read SW1_Write, SW2_Read, SW2_Write, SW3_Read SW3_Write, SW4_Read, SW4_Write,
Is there a way to get the tool to generate one copy of the API then you pass it the port. for instance just having Read_Port, and Write_Port, then pass the port as variable. instead of having 4 coppies of the same code?
Show LessHi,
I just bought the CY5677 Cysmart BLE 4.2 SUB Dongle with cy8c4248lqi-bl583. When I plug into my computer and run the Cysmart 1.2, it shows unsupported device.
I have clicked reset button but it still shows unsupported device. I then followed the description shown in Cysmart and went to PSoC Programmer to program the firmware but it shows:
ERROR: The hex file does not match with the acquired device, please check the device.
I only have the BLE_4_2_Dongle_CySmart_256K.hex in Cysmart folder for CY5677. I am not sure if this is the correct hex file. If not correct, where can I get the correct hex file?
Show LessHi,
I am thinking of connecting an serial EEPROM with PSOC 4 to store configuration data, in this regards looking for a design sample to connect the interface and firmware to access it.
Thank you,
Show LessHi,
I am using PSoC 4 to develop a sensor. I need to timestamp the data I read, then I will only send the peaks and their timestamps to a mobile phone.
When I code:
#include<AFE4403_Sample.h>
#include<time.h>
#include <sys/time.h>
// afe4403 sample data
void AFE4403_Sample(int *num, uint32 (*data)[350])
{
uint32 temp1;
int n=0;
time_t stop,start;
double Timestamp[350];
start=time(NULL);
if (*num<50) // num = 340 when work; num = 34 when debug
{
while(n<350)
{
temp1=BLE_AFE4403_ReadData(0x2A,0x00); /
temp1=temp1& 0xffffff; //set the highest two bits to 0
CyDelay(10);
stop=time(NULL);
Timestamp
(*data)
n++;
}
}
}
My Timestamp[350] array will have 350 times the same value. Does anyone know how to get the time difference between the start of AFE4403_Sample and the reading of my data?
Regards,
Elias
Show LessHey All,
I am using the example projects supplied by cypress of OTA upgradeable stack bootloader for PSoC 4200 BLE devices. I am using CYBLE-214009-00 PSoC BLE Module and CySmart application on an android cellphone for the upgrades. The system works fine as expected, but I am having some trouble with authentication now and then.
During an expected procedure:
1. I use CySmart to scan, connect, and evoke services screen on the App
2. This results in an authentication request being received by the app:
S ble 72 CYBLE_EVT_AUTH_REQ: security=0x2
S ble 73 CYBLE_EVT_AUTH_REQ: bonding =0x1
S ble 74 CYBLE_EVT_AUTH_REQ: ekeySize=0x10
S ble 75 CYBLE_EVT_AUTH_REQ: err =0x0
and the systems responds with authentication success.
3. I am able to navigate to bootlader service, which initiates the bonding successfully
Now if I disconnect the connection by navigating back to scan menu instead of uploading the firmware, the following happens:
1. In scan menu, I select the bootloader again, CySmart attempts to connect, and evoke services screen again
2. The PSoC sees the connection attempts, but without evoking any authentication request, responds with authentication Failure:
CYBLE_GAP_AUTH_ERROR_INSUFFICIENT_ENCRYPTION_KEY_SIZE Insufficient key size for the security requirements of this device or LTK is lost
3. The PSoC disconnects and CySmart fails to do service discovery and is stuck with a non-services to show screen.
Has anyone else seen a similar problem or give me some pointers to Android - PSoC authentication which is potentially manifesting in this behavior?
For additional information, the device is setup for Security level of Unauthenticated pairing with Encryption.
Any help will be greatly appreciated.
Thank you
-Sohail
Show Lesshi,
i want to generate the systick timer interrupt for 1 sec delay.Which is used for RTC_update() ,
please help me to resolve the issue.
Thanks in advance
Show LessI am using PSOC 4100S and its mounted on my PCB with an LED driver connected to the controller. The DC to DC converter on board is powering the controller. is there anyway by which i can deactivate the micro controller on board without disconnecting the VCC line. I tried connecting the XRES pin to ground but the controller is still active and sending signals to LED driver.
Show LessHi,
Can I advertise the Bluetooth Device Address (BD_ADDR) with the local name??
For example: the constant local name is "nm1" and I want it advertise with the BD_ADDR of the device - "nm1 -00A050548266"
Is it possible to do this at all?
Thanks
Show Less