PSoC™ 6 Forum Discussions
请问大家,要烧录CY8C6136BZI-F14应该用什么编程器或者说从什么开发板上能把它的编程器掰下来用,目前现有的编程器似乎不兼容该芯片
I'm using the CyBLE 416045-02 module. I am currently unable to get the module to go into deep sleep.
I am using the single core M0 configuration due to needs on the M4 core. I have the "Use BLE low power mode" checked in Top Design. I have a 32 Mhz external crystal across 12.6 and 12.7 for the ECO. I have the PILO enabled and I'm driving the Clk_LF with the PILO.
I have it in Limited Discovery Mode with a Fast Advertising interval timeout of 10 seconds. In my BLE event handler CY_BLE_EVT_GAPP_ADVERTISEMENT_START_STOP I am setting a sleep flag if the advertisement state is stopped. I can see it hit this in the debugger after 10 seconds.
For testing, I'm not even enabling the M4 core. I'm just turning on starting the BLE stack and waiting for the sleep flag to get set, which it does, then I'm attempting to enter deep sleep by calling Cy_SysPm_DeepSleep(CY_SYSPM_WAIT_FOR_INTERRUPT);
I'm seeing some conflicting information about the extern watch crystal. Several places it says its required to use BLE low power mode but in the module datasheet it says " The external 32-kHz XTAL is optional, and the precision internal low-speed oscillator (PILO) can be used if precise timing is not required". Apparently this is because the PILO isn't available on most PSoC 6 modules. I don't have a WCO connected because we're using the PILO as stated above.
Any suggestions? Are there any example of a single core BLE controller/host where its going into deep sleep?
Show LessHi,
I'm using a Keras model for number images classification in Python.
https://keras.io/examples/vision/mnist_convnet/
This is well know example. The images are (28,28) grayscale images. I've the .h5 and the .tflite model. The inputs are C arrays converted from JPG files using Python script.
The problem: I've got wrong classification results on my PSoc6 eval board (CY8CKIT-062S2-43012) using quantization.
I've followed the ModusToolbox™ Machine Learning user guide and I've used the 'ML Configurator' in ModusToolbox.
I've also followed the 'Machine_Learning_Gesture_Classification' example and copied some important parts from this project.
I've a workaround. When I quantize the the input itself. In this case we don't need to call 'mtb_ml_utils_model_quantize'. However it is very unusual. In this case everything is OK. This is the case in main.c when 'QUANTIZED_INPUT=1'
What I missed? What may the problem?
I've attached the Makefile and main.c
Show Less
Hello, recently I have been working on implementing BLE communication (both Central and Peripheral side) with PSoC 63. I have been using Zephyr RTOS with the BLESS stack. My setup is fairly basic:
- One PSoC-63 acts as Peripheral with a custom service that is equivalent to Nordic's UART Service. In this use case, only the TX Characteristic is useful (GATT Notifications). Its notable kconfig options are:
- CONFIG_BT_PSOC6_BLESS=y
- CONFIG_BT_PSOC6_BLESS_MAX_RX_PAYLOAD=251
- CONFIG_BT_PSOC6_BLESS_MAX_TX_PAYLOAD=251
- The second PSoC-63 acts as Central and connects to the PSoC peripheral, looks for its custom service and subscribes to the characteristic.
First issue
Upon connection, the Peripheral starts sending notifications to the Central. Ideally, we'd send 1 notification of 128 payload bytes every 1 ms (~1 Mbps). In practise, we're capping out at ~640 kbps, so we had to limit the data to 1 notification of 240 bytes every 3 ms. I thought 1 Mbps would be realistic considering PSoC 63 supports 2M Phy and BLE DLE. Do you have any tips to increase it or any confirmation that this is indeed the capped bitrate? The only thing I haven't tested yet is forcing a very low Connection Interval (IIRC my PSoCs were ending up on ~22).
Second issue
I had an nRF52840 DK, so I thought I'd try to test Zephyr's portability since I had to lend my second PSoC to a colleague. I set it up as BLE Central with the exact same codebase than the PSoC 63 Central. The code compiled and flashed flawlessly to it, but upon connecting to PSoC 63, Central instantly gets disconnected with error code 0x24 (36d), which seems to be BT_HCI_ERR_LMP_PDU_NOT_ALLOWED (hci_types.h).
After many hours, I realized the problem is on the PSoC BLE Peripheral's side (I mocked the services etc on LightBlue and my nRF could connect to it no problem). Whenever I change CONFIG_BT_PSOC6_BLESS_MAX_RX_PAYLOAD=251 to be something other than the default value (27), I get this instant disconnect behavior. Consequently, I am stuck with 20 bytes payload, which unacceptable for our application.
Thanks for any help and feel free to ask for details, I would be glad to help.
Show Less
Hello,
I am having an issue regarding my 8x8 Matrix and couldn't find anything which helped.
So I know for fact that when I put a magnet on one of my Reeds the circuit gets closed. I have meassured this --> 600ohm
I use the 1N4148 diode to prevent ghosting since i need to be able to do multi presses (chessboard).
I'm using A PSoC6 for my project (this is a requirement for school)
I tested my code beforehand using a 4x4 button matrix which I had laying around this worked like it should (I haven't implemented multi presses yet, so i can check basic functionality). No issues at all.
But now that I changed it to the 8x8 reed matrix it doesn't work anymore (Yes i did change to code to be able to handle the 8x8 matrix)
I have asked my teacher about this, he said it could be a GPIO_Drive issue. I had my drive on PULLUP with my 4x4 buttonmatrix but my teacher said the issue could be this and said i should test it with no Drive. Tested this but also doens't work. I also tried all other options for drives but sadly nothing behaves correctly.
So can anyone tell me what i'm doing wrong?
The letters are strong_drive and numbers are pullups (see image)
Thanks!
Code:
Here I have set up a matrix button who has 5 rows and 5 columns that make up a total of 25 sensors. But I only see 10 Sensor element IDs in CapSense_Configuration.h. I want to save the Rawcount of the 25 sensors in a parameter like "Value", how do I write this code?
I used this code for storage when I had a single button before, but now I only have 0u to 9u instead of 0u to 24u.
uint16 val0 = CapSense_dsRam.snsList.button0[0u].raw[0u];
Show LessHow do I use Jlink (SEGGER) to read and write via SWD? JLink has not found a CYPD6125 signal, nor has the official FLM or xml file corresponding to CYPD6125 been found
smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/USB-EZ-PD-Type-C/CCG6-CYPD6125-40LQXIT/td-p/641815
Show LessBoard: CY8CPROTO-062S2-43439
ModusToolbox : v3.1
Example BSP code: ADC basics
----------------------------------------------------
Error Snippet::
Info : kitprog3: acquiring the device (mode: reset)...
Error: kitprog3: failed to acquire the device
Info : clock speed 2000 kHz
Error: Error connecting DP: cannot read IDR
Error: Error connecting DP: cannot read IDR
Error: Error connecting DP: cannot read IDR
Error: DAP 'psoc6.cpu' initialization failed (check connection, power, transport, DAP is enabled etc.)
Info : psoc6.dap: powering down debug domain...
Error: Error connecting DP: cannot read IDR
Error: Error connecting DP: cannot read IDR
I want to test the PSoC® 6 BLE.
Are PSoC™ Creator, PSoC™ Designer and PSoC™ Programmer free or commercial?Hey guys,
I used Capsense self-cap to made a force sensor (sandwich structure), on electrode pad as the self-cap pad, another one connected to the GND. It works very good, but now I wanna make a 5x5 sensor array, so I set 5 Buttons(0~4) in CSD (self-cap), and a MUX for other 5 GND Pins.
So I used this code:
But the problem is, I can not just use "uint16 Value0 = CapSense_dsRam.snsList.button0[0u].raw[0u];" to save the data now, cause I just have 0u, 1u, 2u, 3u, 4u, but I need read out 25 data.
If I use Mutual-Cap then I can set 5TX and 5RX, then I can get 0u to 24u. But what should I do with Self-Cap?
Show Less