PSoC™ 4 Forum Discussions
hello,
I can not change the maximum number attached to my device.
I do not want to do the pairing for each connection
see file BLE_StackGap.h
The OTA bootloader examples seem to assume SW2 is being used to trigger bootloader mode. What is the best practice for triggering the bootloader without a physical switch/button?
Cheers all.
Show LessIs it possible to have custom GATT services/components while still using a fixed stack OTA bootloader? The generated BLE_custom.h ends up in the bootloader project, so how can we access the custom #defines for the characteristics from the bootloadable project?
Thanks.
Show Lesshi,
How to make cy8ckit-042 BLE(psoc 4200- BLE) as SPI slave..?
I want to connect with beagle bone as a SPI master,what changes should i do for example project..?
what is UDB and SCB blocks in SPI communication..?what are differences?
Thanks and Regards,
Sridhar Naidu.
I have been playing with CY8CKIT-042-BLE Pioneer Kit for a while. Suppose I want to create something small like a keychain with LED that flashes when I press a button in an app on an iPhone. I assume that I need only a coin cell battery, CY8C4247LQI-BL483 chip, a resister, and an LED for the minimum. I wonder whether I can program the chip using the Pioneer Kit that I currently have? Do I need an extra kit to program it?
Show LessHello All,
I am using the CY8CKIT-042-BLE to develop a BLE application based on the PSoC_4_BLE_CapSense_Slider_LED example and I am unable to use the debugger as it gives the following error:
Error: dbg.M0015: Debugger exited unexpectedly during run. Encountered error (Target disconnected See output window for more information.)
I have read the following post and have been unable to fix the issue.
I am unable to use the debugger in either my project or the example project.
The debugger identifies as a KIT Prog/1A23152A03254400 Version 2.16 and my system is a Windows10 64-bit machine.
Any further ideas other than those outlined in the post referenced above.
Thanks
John
Show LessHi All,
I am trying to develop analog sense condition circuit for ADC of the CYBL10563-56LQXI ic which is present on CY8CKIT-042-BLE pioneer kit.
I am not able to find sufficient documentation on ADC or any other hardware aspect of the IC.
I want to know the internal reference voltage for ADC, the max allowed voltage at the ADC pin.
Please help in providing sufficient documentation.
Regards,
Shantanu.
Hi,
My project compiles just fine in debug mode, but if I switch to release, it tells me for example:
Build error: undefined reference to `cos'
It does the same for my other math operators.
Any ideas?
Thank you,
Tom
Hi,
First-time PSoC4 user/noob here. I've got a few of the CY8KIT-049-42xx kits (specced by customer - chip is CY8C4245AXI-483) and am trying to work from the CE95272 (Diff. PreAmplifier) application note to put together a simple multichannel ADC-sampling-to-UART-port proof of concept. However, after starting the ADC, the example hangs waiting for the ADC to be 'done' (dataReady asserted) - the interrupt never fires. When I replace this with a polling loop to report the value of ADC_IsEndConversion(ADC_RETURN_STATUS), it just reports 0 (not finished) always.
Tried so far:
- Ensured correct chip ise selected (Project -> Device Selector)
- Update all TopDesign.cysch components (Project -> Update Components - most were version 1.x; ADC now at version 2.30)
- Remove the flag-check from the ISR so that any hit to ADC_ISR_Handler will assert dataReady (for testing) - nothing
- Confirm configuration of SAR ADC: all defaults from the example except for sample rate
- Sample rate 150Hz, within range specified to the right of it, which I assume refers to the legal range according to the current clock configuration?
- Clock source Internal
- Sample mode Free running
- Vref: Internal 1.024V, single-ended neg. input Vss
- Result format signed, right-justified, 128 averages, alt. resolution 8 bits, averaging mode 'Fixed resolution'
- A/B/C/D clocks: 4
- Sequenced channels: 4 (0, 1, 2, 3 - 2 diff, 2 SE)
- Confirm ADC pin assignments in *.cydwr look OK and are valid for the kit
Note, the "ADC_IRQ_StartEx(ADC_ISR_Handler)" call in the example to register the interrupt handler isn't in the ADC documentation, but "ADC_IRQ_Enable()" (not used in the example) is. Adding this seems to have no effect.
For testing, my 'main loop' now consists of:
for(;;)
{
while(dataReady == 0u) // <-- hung here
{
//; /* Wait for ADC conversion */
UART_UartPutString("\r\nADC Status: ");
UART_UartPutChar( (uint8_t)ADC_IsEndConversion(ADC_RETURN_STATUS) + CONVERT_TO_ASCII);
}
// ...unreached code here...
}
The output is a neverending stream of "ADC Status: 0" messages.
Is there any special (chip-specific?) trick I'm missing to getting the ADC to start/finish conversion, or any advice on how to debug this further?
Thanks!
Show LessI want to send single advertisement packet on particular event (data from serial interface) without entering Deep Sleep mode, In Project #009: Dynamic Broadcaster I use CyBle_GappStopAdvertisement()
to stop advertisement (see code below). However, when I call CyBle_GappStartAdvertisement(CYBLE_ADVERTISING_FAST)
it seems to be ignored. Why CyBle_GappStartAdvertisement(uint8 advertisingIntervalType)
doesn't work?
int main()
{
InitializeSystem();
UART_1_Start();
for(;;)
{
CyBle_ProcessEvents();
rxData = UART_1_UartGetChar();
if (rxData)
{
CyBle_GappStartAdvertisement(CYBLE_ADVERTISING_FAST);
}
else
CyBle_GappStopAdvertisement();
#if ENABLE_DYNAMIC_ADV
DynamicADVPayloadUpdate(rxData);
#endif
}
}