PSoC™ 6 Forum Discussions
Hi there, hope you're all doing well.
I am working on a project on the CYBLE 416045-02 on PSOC creator 4.3, where I am using the psoc 6 as a BLE peripheral to send data acquired from the ADC and send it periodically using an RTC or MCWDT interrupt. I am also using RTOS in my code.
Till now, I got to the point where I can succefully transfer data to the BLE central device (an ESP32) but could not get around on how to send it periodically and go into deep sleep mode when not advertising.
I attached my code on the post for reference.
Are there any example codes or documentation that feature RTOS, BLE, RTC/MCWDT and deep sleep mode all together (I know it's a lot to ask for), if so please let me know down below.
Fellow Psoc 6 developer
Hi, I configured http and mqtt in ModusToobox library, and get the compiling error of "fatal error: core_http_config.h: No such file or directory".
I tried the solution suggested by the forum, the compiling error is still there.
I tried to use
DEFINES+=CYBSP_WIFI_CAPABLE CY_RETARGET_IO_CONVERT_LF_TO_CRLF CY_RTOS_AWARE HTTP_DO_NOT_USE_CUSTOM_CONFIG MQTT_DO_NOT_USE_CUSTOM_CONFIG in my makefile but
still got same errors.
Is there any way to solve the problems? Thanks.
Hello, I'm using a CYBLE-416045-02 to read out two ADCs (ADS1260) over SPI and send the data via BLE to a computer. For that I'm using FreeRTOS with a task for each ADC and a task for BLE.
When I run the programm everything works as espected. However, when I unplug either the ADCs or the PSoC, the programm does not run anymore. With the help of the debugg function in PSoC creator I found out that the programm gets stuck in a while loop, that waits for the data ready line. By flashing at first a random program (e.g. blinking LED) and then reflashing the actual program, the problem a be fixed. Directly reflashing the actual program does not resolve the issue. Pressing the reset button when the problem occurs does also not help.
Does anyone have a suggestion where the root of this problem might be? I hope someone has an idea without having a look into the code. Unfortunately, I would have to change a lot since I'm not allowed to make it public.
I am not aware of the usage of any functions in my program that manipulate the eeprom. Also the registers of the ADCs do not store anything without power.Show Less
I am currently working on a project where we want to receive data from a USB device and read it in with a PSoC6.
Therefore it would be ideal to program the PSoC6 as USB host.
In older articles there was no USB host support. What is the current project status. Is there a USB Host Driver available ?
If not, is there a way to exchange data between two USB devices ?
Thanks a lot for your help.
Regarding PSoC6 SCB I2C slave mode with multiple address matching, I want to confirm what is indicated in the documentation: selection of Device Configurator option “Accept Matching Address in RX FIFO” precludes use of the receiver FIFO for data and an interrupt is required for each received byte.
I discovered a nasty bug in the cyhal_spi.c implementation.
In some places, it is not taken into account, that the element size of the buffer is 2, in case the bit width is > 8.
The data corruption would have been immediately apparent if anyone ever tried to use this, which weirdly doesn't seem the case...
Anyways, please see attached the fixed cyhal_spi.c for mtb-hal-cat1 release 1.5.0 (btw, I have to stay at this version, because for the used TARGET_CYSBSYSKIT-DEV-01, the SPI clock selection does not work properly in version 1.6.0... It selects the 16.5 bit divider and then returns an error because of that...)
Also I checked that the bug is still present in version 2.0.
I am trying to program CYBLE-416045-02 using Flasher ARM in Stand-alone mode. It turns the red led on, when I press the [PROG] button. Here, the use cable from the flasher is connected to a power source but not a PC.
Flahser log shows:
ERROR: Failed to download RAMCode.
SN: 0 - Failed
I could successfully program the target device using J-Flash software. Flahser project set up is as follows:
Does anyone have some clue on this issue?
Best regards,Show Less
Does the CY8C6136FDI-F42's flash have ECC (Error Correction Code)?
I'm trying to detect if there is an error when writing and reading data to flash.
I wonder if there is something like ECC on the STM32L412RB.
I attach the relevant content.
I have the following problem:
I need to modify the BLE connection timeout, I managed to do this by modifying the CY_BLE_GAPC_CONNECTING_TIMEOUT macros in the generated file cy_ble_gap.h and it works perfectly, but the problem is that every time I build the project, it returns to the value that had before. I did not find any option to modify this parameter in the component in the top design. Is there any solution for this ?
I´m using CYBLE 416045-02 and PSoC Creator 4.4
Thanks in advance.Show Less
I want to do bootloading using USB in Psoc 6(CY8C6247BZI-D54). For that I tried USB in empty project and I found Error.
That Error is:
Invalid connection for clock "USBFS_devClk" connected to "\USBFS:USBFS\:clk_usb_dev". The component input does not support generated clocks.
I tried so many things and it is still not working.
Can somebody help me to solve this Error? Can someone send the link for code example of USB in PSOC Creator for PSOC6?