PSoC™ 4 Forum Discussions
I'm referencing the Dynamic Broadcaster and Battery Level examples from 100 Days, and wanted to work on a switch that would interrupt, computer the battery percentage, update the advertisement info, and restart broadcasting. Using the module only, and not the dev kit, if pin 3[7] were my ADC pin, would I just 'jump' that pin to VDDR? Do I need a 1uF cap of anything?
Show LessIf i am building my application ,it throws following errors..
Build error: .\CortexM0\ARM_GCC_493\Debug\ipsp.elf section `.heap' will not fit in region `ram'
Build error: region RAM overflowed with stack
Build error: region `ram' overflowed by 0 bytes
How to rectify these problems...?
Thanks and Regards,
Sridhar Naidu.
Show LessI have attached the example file for the central role. I ran across the followings problem. Once the user button is pushed the breakpoint triggers on this button push, but after the program is resumed the program continues to trigger even though the switch is not active.
Show LessHello all, Please have a look at this function in a Proximity Sensing regards:
/***** Function Name: Output_Init *********
* Summary: * Output_Init() performs following functions:
* 1: Starts PRSm * Parameters: * None. * Return: * None***/
void Output_Init(void)
{
/* Set up WDT to generate the wakeup/timing ISR */
/* Update the match register for generating a periodic WDT ISR. */
/*Note: In order to do a periodic ISR using WDT, Match value needs to be
updated every WDT ISR with the desired time value added on top of the
existing match value */
#if ((0u != CapSense_IS_M0S8PERI_BLOCK) && (0u == (CY_PSOC4_4100BL || CY_PSOC4_4200BL || CY_PSOC4_4100M || CY_PSOC4_4200M)))
CySysWdtWriteMatch(WATCHDOG_TIMER_COUNT);
#else
CySysWdtWriteMatch(0, WATCHDOG_TIMER_COUNT);
#endif /* (0u != CapSense_IS_M0S8PERI_BLOCK) */
#if ((0u != CapSense_IS_M0S8PERI_BLOCK) && (0u == (CY_PSOC4_4100BL || CY_PSOC4_4200BL || CY_PSOC4_4100M || CY_PSOC4_4200M)))
/* Enable the WDT interrupt in SRSS INTR mask register */
CySysWdtUnmaskInterrupt();
#else
CySysWdtClearInterrupt(0);
#endif /* (0u != CapSense_IS_M0S8PERI_BLOCK) */
/* Map the WatchDog_ISR vector to the WDT_ISR */
WDT_ISR_StartEx(WatchDog_ISR);
/* Start PRSm block */
PRSm_Init();
PRSm_WriteCounter(LED_OFF_DUTY);
PRSm_Enable();
}
Please explain the meaning of following lines:
#if ((0u != CapSense_IS_M0S8PERI_BLOCK) && (0u == (CY_PSOC4_4100BL || CY_PSOC4_4200BL || CY_PSOC4_4100M || CY_PSOC4_4200M)))
Thanks & Regards-
Amit
Show LessWhy not scan the Apple phone's Bluetooth BLE equipment, I use the example of 100 days 100.
Hi. When I run the 100 Projects in 100 days example "#16 Authentication", http://www.cypress.com/blog/100-projects-100-days/project-016-authentication I have problems bonding and reconnecting on my Samsung S5 Neo (I am using this example code to debug my own application). Here are the steps necessary to reproduce the problem on a CY8CKIT-042-BLE kit:
1. Set TopDesign.cysch/BLE_1/GAP Settings/Security/Bonding Requirement to "Bonding".
2. In main.c, under case CYBLE_EVT_GAP_DEVICE_DISCONNECTED, before "break", add: "CyBle_GappStartAdvertisement(CYBLE_ADVERTISING_FAST);" so that after disconnection it is possible for the Central to reconnect.
3. With either "CySmart" or "nRF Master Control Panel" for Android, try to connect+bond, disconnect, reconnect, disconnect. Here is what happens for me (before each of the following IO Capability tests, I make sure that no pairing information is stored on the phone from a previous test):
With nRF Master Control Panel:
------------------------------
0(Display):
Bond, disconnect, connect, disconnect works perfectly. Passkey needed only once.
1(Display Yes/No):
Bond, disconnect, connect, disconnect works perfectly. Passkey needed only once.
2(Keyboard):
Bond, disconnect, connect, disconnect works perfectly. Passkey needed only once.
3(No Input No Output):
Bond OK. Disconnect OK. Reconnect: Bonding:yes displayed on Cypress, but phone displays "Bonding" and after a while displays "Not Bonded". At this point, Cypress displays "CYBLE_EVT_GAP_AUTH_FAILED: 18". A closer look in Android Bluetooth settings shows that pairing info is not stored on phone, so the bonding has effectively failed.
4(Keyboard & Display):
Bond, disconnect, connect, disconnect works perfectly. Passkey needed only once.
With CySmart:
-------------
0(Display):
Bond, disconnect, connect, disconnect works perfectly. Passkey needed only once. However, "No services found" appears in CySmart on first connection, but not on subsequent connections.
1(Display Yes/No):
Bond, disconnect, connect, disconnect works perfectly. Passkey needed only once. However, "No services found" appears in CySmart on first connection, but not on subsequent connections.
2(Keyboard):
"Bonding is in process. Please wait." appears on Android device. Must kill CySmart. Pairing data is stored on phone, however. A subsequent connection sometimes succeeds, but sometimes fails to discover services.
3(No Input No Output):
Bond OK. Disconnect OK. Reconnect: Bonding:yes displayed on Cypress, but phone displays "bonding is in process" and after a while displays "Unable to pair. Check whether the device is advertising and supports pairing". At this point, Cypress displays "CYBLE_EVT_GAP_AUTH_FAILED: 18". A closer look in Android Bluetooth settings shows that pairing info is not stored on phone, so the bonding has effectively failed.
4(Keyboard & Display):
Bonding is in process. Please wait. Must kill CySmart. Pairing data is stored on phone, however. A subsequent connection sometimes succeeds, but sometimes fails to discover services.
With nRF Master Control Panel, authentication works almost perfectly, except for the No Input / No Output case. This leads me to believe that CySmart for Android lacks robustness for several cases, but it also seems that the PSoC BLE stack has trouble with No Input/No Output (which is unfortunately the case which I need for my application). Does anybody have PSoC example code that is reliable for No Input/No Output pairing and reconnection?
Thanks...
Show LessHi,
I want to program BLE peripheral to transmit certain amount of bit. And on the other side (receiver) I want to observe how many bits are received. I am thinking to use the BLE PSoC 4 module as transmitter and BLE USB dongle as the receiver. I expect I can observe it on the PC. It's kind of BER measurement. Is that possible to do that?
Thanks
regards,
Daryanto
Show LessI just bought CY8CKIT-042-BLE Pioneer Kit, and download and install all new software from your website, I fire up CySmart, and it tells me:
The current firmware version of the dongle is not supported by the tool, Program the firmware located at XXXXYYYYYZZZ and launch the tool again. How do I flash the dongle, I start reading documentation, that point to another document, that points to an application note, that points to another ap note, I am going down a rabit hole just to update the firmware using the bootloader. How do I do this quick and easy?
Show Lesssoftware : Psoc Creator3.3
Sample code :BLE Heart rate sensor
Hardware :CY5671 Proc BLE Module, Mini Prog3, Heart rate sensor
I am a beginner.
I want to connect the cy5671 and heart rate sensor.
However, I do not know the way.
First of all I do not know the GPIO connection location.
help me.
Tell me if there is something web site that would be helpful.
Hi,
Is it possible to use SPI with CYBLE-014008-00 module?
On PSOC creator I have selected CYBLE-014008-00 to my target hardware and implemented SPI (SCB mode) to cysch schematic. Then on cydwr sheet it is not possible to drag all SPI IO's to component pins.
Show Less