PSoC™ 4 Forum Discussions
Hi
I want to read data from an I2C slave device (bme280) to my psoc 4 ble and then transmit these 3 measurements out over ble (cysmart initially). I get the ble configuration to some extent and definitely get the I2C configuration but I just dont get the moving of data from my I2C device out over ble. If i configure a temperature service in BLE, how does it know to take this data from my I2C device? The 100projects 100days sample day 31 digital sensor to me seems to have an error as I can get every other sample project to work in my custom device except for this one. Any and all help greatly appreciated
Regards
Show LessHey guys,
I'm trying to implement a project that connects the BLE through a secured pairing method instead of an open connection. The Cypress examples in the 100 projects in 100 days seem to not use Key pass Authentication when it comes to the Android Implementations. Has anyone managed to do something with key pass authentication with the BLE and an Android Application?
Thanks!
Show LessHi,
I am using a CY8CKIT-049-42xx, powered by a MINIPROG-3 at 3.3V.
I have an UART with TX and RX that is connected to a Raspberry Pi (3.3V). TX is on P1.5, RX is on P1.4.
As soon as I connect the RX and TX lines (and 0V) to the Raspberry, the PSoC gets powered over these lines, even if the MINIPROG is not connected. I have not yet checked if the firmware is really up and running, at least both LEDs on the CY8CKIT are on.
When I connect the MINIPROG-3 and start debugging, the program runs fine until a character is received from the PSOC. In this case the debugger steps into UART_1_GetRxBufferSize() and never returns. It is not possible to halt the software, only stop debugging works.
The UART is configured with 16 bytes receive buffer and 16 bytes send buffer, interrupts are enabled.
Two questions:
How can I avoid the PSoC to be powered over the UART connection?
Why does the firmware get stuck in UART_1_GetRxBufferSize()?
Any ideas are welcome.
Show LessI have a custom board with a CYBLE-022001-00 and a MiniProg3
The PSoC creator sees the MiniProg3 and the CYBLE-022001-00 and I can connect to it
When I select "Attach to running target", the debug screen comes up but it appears stuck and I never reach a breakpoint in my main.c (see attached)
Also when I select "program" I get the following message
"There was an error running the Programmer to configure the device. Try lowering the clock speed used for communication in the Options dialog, under Tools > Options > Program/Debug > Port Configuration. If the problem persists, make sure that the Programmer for this debug target is properly installed and ready to use."
My clock speed is set to 1.5 MHz. I tried to lower it to 0.8 and 0.2 to no avail
Could you please help
Thank you
Andy
Hi guys, this is my first post in the forum, so please correct me if I do something wrong.
I'm using a CYBLE-014008-EVAL with the CY8CKIT-042-BLE.
I'm communicating with 4 ADS1115 via I2C in a rather complicate ambient (I2C communications are going to fail due to inducted errors from time to time). The problem is that in the source generated code for the I2C SCBs, there are several while loops where my program gets stuck.
I wanted to do something to restart the process when I2C fails, but I can't modify the source code without it getting restored every time I rebuild the project. Is there anything in the API I haven't found which could help me? If not, is there any way I can modify the source code (I already tried this: http://www.cypress.com/knowledge-base-article/avoiding-changes-source-file-get-overwritten-psoc-creator )?
I would also like to know which of the ADCs has failed and send some kind of error, but I'm stuck in the same problem as before.
Thanks in advance..and great job! This is a great community
PD: I can't attach the project due to the matter of it. I can paste some parts of the code if needed though.
Show LessHello everyone, and thanks again for your previous support, nowadays I will start working with RTOS, in this case I will use FreeRTOS, application using PSoC 4 BLE module, so for that reason I have come up with several questions such as the following:
- What will change when the FreeRTOS gets loaded inside the PSoC 4 BLE?
- Would be a difference in the way that the PSoC 4 BLE is programmed using PSoC creator?, in other words, would I still be able to program it using PSoC creator?
- How can I upload the FreeRTOS to the target device (PSoC 4 BLE)?
- Once the FreeRTOS is uploaded; how can I program the PSoC 4 BLE in other to include the "Priority scheduling (i.e., event driven)" and "Time sharing (i.e., round robin)"?
Thanks very much indeed for all your future help
Show LessHi,
I am not sure if this is the place to write this, but...
I have watched one of the PSoc BLE 101 videos, but I would rather have the information (including the figures and code) in a PDF file which is much much more useful and faster to consume than a video.
Are there such PDFs?
Best regards,
Fernando
Show LessHi,
I am trying to connect the output of a UART to Pin P1[7], but I am getting no output. If I connect it to P1[6], then I can see data coming out of that pin.
As far as I can tell, I am not using P1[7] as VREF. I have no ADC in my project, but I do have a Comparator. I can find any option that lets me disable the VREF function for P1[7].
How can I use P1[7] as a digital output?
Many thanks
Hugo
Show LessHi friends,
Kindly support me to verify the attached gerber file for PCB layout.
I had made schematic for 4 capsense buttons and programming pins, attached schematic for your reference and verification.
Looking forward your support to verify and correct me if there is any mistakes in the schematic and layout.
with Thanks & Regards
K Jagdish
Show LessHi. I'm trying to simultaneously (well, interleaved, to be more accurate) read multiple SAR ADC channels into a RAM buffer via DMA on a PSOC 4, but I'm having a hard time seeing how. I wouldn't even mind if they wound up interleaved in the buffer, but don't see how to do that either.
Specifically, the DMA_Start function takes a SrcAddress parameter, which lets me successfully configure and DMA from any one ADC channel by providing, for example, ADC_SAR_CHAN0_RESULT_PTR as SrcAddress. This works great. But there's no option to specify multiple source addresses. I've tried chaining the DMA descriptors in a loop, but unsurprisingly, I just don't get any data from channel 1, it always reads 0. I can't run DMA_Start twice -- whichever SrcAddress is last, I get data only on that channel.
None of the examples I've found actually do this either. But I'm sure it must work -- not much point in a sequencing ADC if you can't actually get multiple channels of data out!
Show Less