PSoC™ 4 Forum Discussions
Jeff.
Been running w/ UART_to_BLE_Central for awhile and it's time to move up.
I'm trying to unzip verbatim and compile EZSerial_Host_Demo.cywrk. I am getting error:
Undefined reference to 'main' in Cm0Start.c
I'm a little rusty after just coming back on board w/ PSoC creator. I running the older v3.3. I seem to recall to set dependencies or something.
Can you hep me out?
Thanks. John
Show LessHello,
When using EZ-Serial firmware with CYBLE-212006-01, what is the state of the extended range feature ? The datasheet of the CYBLE (http://www.cypress.com/file/318881/download) describes a source code modification p15. Is it present in the EZ-Serial firmware ? Is there a command to enable or disable it ?
Thanks in advance
Show Lessi have done Project -> Build Settings -> Linker -> General and adding the letter "m" into Additional Libraries.
i got error rodata will not fit in region rom. rom overflowed by 1104 bytes.
my statement is
read_out1 = (10*sqrt(read_out1*10));
pl. help
Show LessHello professionals,
I adapted the example program Sensorless FOC in PSoC 4 creator for my own BLDC motor with using the kit (motor driver board) CY8CKIT-037. Here I changed parameters as per my own motor and it started to run but I would like to know how to increase the torque. Can anyone please tell me how to increase the torque through program in source code? My motor performances at 16000rpm is 35mN-m but I am not getting this much of torque. Please help me. Your help is really appreciated.
Thanks in advance
Show Lesswhat is the device address or slave address of kxtj2(accelerometer of psoc4m)?
Hello.
I am currently working on interfacing of flex sensor with the PSOC 4200 but I can't get the analog values(float) to print on the terminal.
Here's the code:
#include <project.h>
#include <stdio.h>
int main()
{
float R_DIV = 47500.0; //47K Ohm approx
float VCC=5.0;
float STRAIGHT_RESISTANCE = 37300.0;
float BEND_RESISTANCE = 90000.0;
uint8 flexADC;
float32 flexV, flexR;
char str[10];
float angle=0.0;
UART_Start();
ADC_Start();
CyGlobalIntEnable;
for(;;)
{
ADC_StartConvert();
ADC_IsEndConversion(ADC_WAIT_FOR_RESULT);
flexADC = ADC_GetResult16(0);
flexV = ADC_CountsTo_Volts(0,flexADC);
flexR = R_DIV * (VCC / flexV - 1.0);
UART_PutString("Resistance in Ohms");
sprintf(str,"%.2f ",flexR);
UART_PutString("%s\n",str);
angle= (flexR-STRAIGHT_RESISTANCE)*(90.0-0.0)/(BEND_RESISTANCE-STRAIGHT_RESISTANCE)+0.0;
UART_PutString("Bend angle in degrees");
sprintf(str,"%.2f ",angle);
UART_PutString("%s\n",str);
CyDelay(2000);
}
}
Hello,
I am using CYBLE-012011 eval board and I have successfully transmitted beacons by making necessary changes to the eddyStone project for PSoC-4-BLE.
In eddyStone.c --> ConfigureAdvPacket(bool isPacketRegular),
/* Service Data */
cyBle_discoveryData.advData[7] = 0x0E; /* Length */
cyBle_discoveryData.advData[8] = 0x16; /* Service Data */
cyBle_discoveryData.advData[9] = 0xAA; /* LSB - Eddystone Service */
cyBle_discoveryData.advData[10] = 0xFE; /* MSB - Eddystone Service */
cyBle_discoveryData.advData[11] = 0x10; /* Signifies Eddystone URL */
cyBle_discoveryData.advData[12] = 0xF2; /* Ranging data: -14dB*/
cyBle_discoveryData.advData[13] = 0x00; /* URL scheme- http://www. */
cyBle_discoveryData.advData[14] = 0x63; /* Encoded URL - 'c' */
cyBle_discoveryData.advData[15] = 0x79; /* Encoded URL - 'y' */
cyBle_discoveryData.advData[16] = 0x70; /* Encoded URL - 'p' */
cyBle_discoveryData.advData[17] = 0x72; /* Encoded URL - 'r' */
cyBle_discoveryData.advData[18] = 0x65; /* Encoded URL - 'e' */
cyBle_discoveryData.advData[19] = 0x73; /* Encoded URL - 's' */
cyBle_discoveryData.advData[20] = 0x73; /* Encoded URL - 's' */
cyBle_discoveryData.advData[21] = 0x00; /* Expansion - .com */
/* ADV packet length */
cyBle_discoveryData.advDataLen = 28;
After beaconing this shows in LOCATE android app as
URL in APP:
http://www.cypress.com/ (Eddystone-URL)
When I add more data and increase the cyBle_discoveryData.advDataLen accordingly, I am not able to see the entire data in the beacon URL. Say if I want to transmit a data Len of 28,
I have added more 's' characters from array index [22] to [26] and set index [27] to 0x00
cyBle_discoveryData.advDataLen = 28;
URL in APP:
http://www.cypresss (Eddystone-URL)
I am missing data from array index [22]. What am I doing wrong? Are there any other flags which I should modify?
Thanks
Dheeraj
Hey Guys & Gals,
I'm trying to set up the Over-The-Air BLE Firmware Upgrade and I'm getting the error: The row number exceeds the bounds whenever I try to upload the cyacd file. The cyacd file was created using a bootloadable component. Any ideas what's going on here guys?
Thanks in advance!
Show LessHello,
I have flashed the EZ-Serial image onto my CYBLE-012011 evaluation board from here. I connected USB-UART to pins P3.4 and P3.5. I opened the COM port on putty and did a RESET(shorted XRES to ground ). According to the firmware guide in here(page 8), the factory default behaviour should give a boot message like
@E,0032,BOOT,E=0100,S=030100C2,P=0100,C=01,A=00A050E3835F
But I am not seeing any output on the COM port. Also the guide says that local echo is enabled. I can't see anything being printed on the console when I type in. How does this work?
Thanks
Dheeraj
Hello,
I want to store the generated .cyacd file from a bootloadable project into an embedded host. The embedded host a RAM size of 128KB. My project's .cyacd file is 195KB. I am looking for ways to shrink this image so that I can store it in the embedded host. This is needed so that I can bootload the firmware image onto CYBLE-012011 from the embedded host flash instead of downloading it from a server.
Also, what is the difference between .cyacd file and .hex file? Why are we using .cyacd file for bootloading using an embedded host?
Out of curiosity, I have created an empty project and placed a few components in it. Without application code the generated hex file is about 282 KB and .cyacd file is about 7 KB. With my application code, the .hex file is still 282 KB but the .cyacd file grew to 195 KB. I don't get this. The .hex file size is always the same? Any ideas?
Thanks
Dheeraj