PSoC™ 6 Forum Discussions
We would like to know Elnec for programming PSoC6.
1. What is fastest writer parts number of Elnec?
2. What is adapter parts number for BGA124 pin?
BR,
Uehara
Show LessI'm having trouble dynamically reconfiguring UART pins to GPIO and back. Currently, I'm using a UART peripheral with TX 9[1] and RX 9[0] on the CYBLE-416045-02 and have tried the following:
Set to GPIO, and set TX pin to low
uint32 reg;
reg = CY_GET_REG32(CYREG_HSIOM_PRT9_PORT_SEL0);
CY_SET_REG32(CYREG_HSIOM_PRT9_PORT_SEL0 ,CY_GET_REG32(CYREG_HSIOM_PRT9_PORT_SEL0) & 0xFFFFFF0F);
Cy_GPIO_SetDrivemode(TX_PIN_0_PORT, TX_PIN_0_NUM, CY_GPIO_DM_STRONG);
Cy_GPIO_Write(TX_PIN_0_PORT, TX_PIN_0_NUM, 0);
Then later set back to UART pins
CY_SET_REG32(CYREG_HSIOM_PRT9_PORT_SEL0, reg);
Show LessHi,
Let me be frank. This might sound crazy but this is what it is. I have bought PSOC6 - Wifi - BT kit. My intention in buying this is to know about PSOC6 as well as to learn embedded programming.
I had been exploring from a week or so on this. Just got used to the PSOC creator and the device. But when I wanted to further start working on it. I am not getting what to do. I don't know what to do next.
Can anyone suggest some applications which can be done with PSOC6 with out any external hardware involved ( Apart from the kit contents ). Again note that I wanted to do more coding and know more about the device.
Thanks In Advance.
Show LessI am using the CY8C6247-D52 and I was wondering if I can change the function of P6.6/6.7 or USBDP/USBDM to regular GPIO at runtime. It is configured normally for SWD and USB but in certain modes I want to use the pins as GPIO.
Show LessI have been studying the BLE OTA DFU example in CE216767. It shows a lot of what I need to do, but is not directly suitable to copy-and-paste into my project.
To start with, the CE216767 example locates the bootloader in the CM4 core and the downloaded main application in the CM0+ core. I will need my main application to run in the CM4 core. (And it seems like this would be the more common real-world configuration rather than the reverse used in CE216767.)
The obvious first step was to go into the configuration for the BLE components in App0 and App1 and just swap the CPU core used in each one. This, unfortunately, resulted in a truck load of compile time errors.
So, does anyone know of any example DFU code that puts the main app in CM4 and the bootloader in CM0+? Or where there is any guidance as to how to make this happen?
Thanks,
Ed H.
Show LessCan VDDUSB be set for 3.3V and VDDA be set for 1.8V for a PSOC6 device (CY8C62x7)? Does the requirement VDDA must be the highest voltage present on the device still hold true for the VDDUSB rail? Do all PSOC6 devices require ports 9 and 10 to be tied to the VDDA rail?
Show LessHello. I am getting started with a project using the PSoC 6 board. I would like to learn more about two functions of the SMIF block
First, how do I use the block in execute in place/XIP/memory mode? I saw in the documentation a few short lines for setting up that mode, but doing that still won't allow me to write to the RAM.
Second, how do I use the built in cryptography functionality of this block? I see that when using the SMIF Configuration tool that it adds the "CY_SMIF_FLAG_CRYPTO_EN" to the memory configuration, but alone doesn't seem to be enough.
For background, I have booted up the CE220823 SMIF_Memory_Write_and_Read_Operation sample project, but it doesn't use the cryptography and it uses the "normal" mode rather than the XIP mode.
Any assistance would be greatly appreciated.
Show LessHello All,
I'm trying to use the CSDADC middleware to measure the voltage at VDDA. The initialization function Cy_CSADC_Init always causes a fault. The fault occurs in the function Cy_CSD_GetVrefTrim, which is called by Cy_CSDADC_Init. The fault occurs when it tries to read SFLASH_CSD0_ADC_VREF0_TRIM, which is stored in supervisory flash.
Since the code is Cypress supplied, one would assume that it has been tested. So, I'm wondering if there's anything I need to do to enable reading of supervisory flash. Any ideas?
Paul
Show LessHi,
I'm planning to use PSoC 6 (CY8C6247BZI-D54) in one of my designs. In normal operation mode, I planning to use pin 6.4, 6.5, 6.6, and 6.7 for SPI communication with LCD. However, I do need these pins for flashing the PSoC obviously. I'd like to know if there's any special considerations from hardware schematics stand point. Do I need any external pull up/ pull down resistors on the JTAG lines? Or no I can simply connect the 4 pins from PSoC to JTAG connector and LCD without any intermediate components? (Just a side note, I'm only planning to use JTAG for flashing purposes.)
Thanks,
Show LessHello ,
I am testing the BLE DFU firmware update feature with CySmart 1.3 and CySmart mobile. Both of them fail to transfer my .cyacd2 file. ( You can find it enclosed)
CySmart log is as follows :
[13:56:56:811] : 'Establish Connection' request sent
[13:56:56:811] : BD Address Type: PUBLIC_ADDRESS
[13:56:56:811] : BD Address: 78:77:E8:50:A0:00:00:00
[13:56:56:813] : 'Command Status' event received
[13:56:56:813] : Status: BLE_STATUS_OK
[13:57:04:483] : 'Establish Connection Response' event received
[13:57:04:483] : 'Enhanced connection complete' event received
[13:57:04:483] : Status: 0x00
[13:57:04:483] : Role: 0x00
[13:57:04:483] : BD Address Type: PUBLIC_ADDRESS
[13:57:04:483] : BD Address: 78:77:E8:50:A0:00:00:00
[13:57:04:483] : Local resolvable address: 00:00:00:00:00:00:00:00
[13:57:04:483] : Peer resolvable address: 00:00:00:00:00:00:00:00
[13:57:04:483] : Connection Interval: 15.00 ms
[13:57:04:483] : Slave Latency: 0
[13:57:04:483] : Supervision Timeout: 200 ms
[13:57:04:483] : 'Command Complete' event received
[13:57:04:483] : Status: BLE_STATUS_OK
[13:57:04:484] : 'Exchange GATT MTU Size' request sent
[13:57:04:484] : MTU: 0x0200
[13:57:04:486] : 'Command Status' event received
[13:57:04:486] : Status: BLE_STATUS_OK
[13:57:04:514] : 'Exchange GATT MTU Size Response' event received
[13:57:04:514] : MTU: 0x0200
[13:57:04:514] : 'Command Complete' event received
[13:57:04:514] : Status: BLE_STATUS_OK
[13:57:04:515] : 'Initiate Pairing' request sent
[13:57:04:515] : 'Command Status' event received
[13:57:04:515] : Status: BLE_STATUS_OK
[13:57:04:530] : 'Data length changed notification' event received
[13:57:04:530] : Connection maximum Tx octet: 251
[13:57:04:530] : Connection maximum Tx time: 2120 µs
[13:57:04:530] : Connection maximum Rx octet: 251
[13:57:04:530] : Connection maximum Rx time: 2120 µs
[13:57:04:544] : 'Negotiated pairing parameters' event received
[13:57:04:544] : State: Pairing negotiated
[13:57:04:544] : Security Level: 0x01
[13:57:04:544] : Encryption Key Size: 16
[13:57:04:544] : Bonding: 0x00
[13:57:04:544] : Pairing properties: NONE
[13:57:04:681] : 'Negotiated pairing parameters' event received
[13:57:04:681] : State: Pairing completed
[13:57:04:681] : Security Level: 0x01
[13:57:04:681] : Encryption Key Size: 16
[13:57:04:681] : Bonding: 0x00
[13:57:04:681] : Pairing properties: NONE
[13:57:04:681] : 'Command Complete' event received
[13:57:04:681] : Status: BLE_STATUS_OK
[13:57:04:681] : 'Misc Event Notification' received
[13:57:04:681] : Event Code: 0x0029 (GAP_ENCRYPT_CHANGE)
[13:57:04:681] : Event Data: Encryption ON
[13:57:04:681] : Event Data: [01]
[13:57:04:696] : 'Discover Primary Services by UUID' request sent
[13:57:04:696] : UUID: 00060000F8CE11E4ABF40002A5D5C51B
[13:57:04:696] : 'Command Status' event received
[13:57:04:696] : Status: BLE_STATUS_OK
[13:57:04:712] : 'Discover Primary Services by UUID Result Progress' event received
[13:57:04:712] : Primary Service 1:
[13:57:04:712] : -------------------------
[13:57:04:712] : Start Handle: 0x0010
[13:57:04:712] : End Handle: 0x0013
[13:57:04:743] : 'GATT Error Notification' event received
[13:57:04:743] : Error Code: BLE_GATT_ERR_ATTRIBUTE_NOT_FOUND
[13:57:04:743] : 'Discover All Characteristics' request sent
[13:57:04:743] : Start Handle: 0x0010
[13:57:04:743] : End Handle: 0x0013
[13:57:04:743] : 'Command Status' event received
[13:57:04:743] : Status: BLE_STATUS_OK
[13:57:04:781] : 'Discover All Characteristics Result Progress' event received
[13:57:04:781] : Characteristic 1:
[13:57:04:781] : --------------------------
[13:57:04:781] : Attribute Handle: 0x0011
[13:57:04:781] : Characteristic Value Handle: 0x0012
[13:57:04:781] : UUID: 00060001F8CE11E4ABF40002A5D5C51B
[13:57:04:781] : Properties: 0x1C
[13:57:04:813] : 'GATT Error Notification' event received
[13:57:04:813] : Error Code: BLE_GATT_ERR_ATTRIBUTE_NOT_FOUND
[13:57:04:813] : 'Discover All Characteristic Descriptors' request sent
[13:57:04:813] : Start Handle: 0x0013
[13:57:04:813] : End Handle: 0x0013
[13:57:04:813] : 'Command Status' event received
[13:57:04:813] : Status: BLE_STATUS_OK
[13:57:04:844] : 'Discover All Characteristic Descriptors Result Progress' event received
[13:57:04:844] : Characteristic Descriptor 1:
[13:57:04:844] : -------------------------------------
[13:57:04:844] : Attribute Handle: 0x0013
[13:57:04:844] : UUID: 0x2902
[13:57:04:844] : 'Command Complete' event received
[13:57:04:844] : Status: BLE_STATUS_OK
[13:57:04:844] : 'Write Characteristic Descriptor' request sent
[13:57:04:844] : Attribute Handle: 0x0013
[13:57:04:844] : Value: [01:00]
[13:57:04:844] : 'Command Status' event received
[13:57:04:844] : Status: BLE_STATUS_OK
[13:57:04:859] : 'Command Complete' event received
[13:57:04:859] : Status: BLE_STATUS_OK
[13:57:04:875] : 'Read Characteristic Descriptor' request sent
[13:57:04:875] : Attribute Handle: 0x0013
[13:57:04:875] : 'Command Status' event received
[13:57:04:875] : Status: BLE_STATUS_OK
[13:57:04:898] : 'Read Characteristic Descriptor Response' event received
[13:57:04:898] : Value: [01:00]
[13:57:04:898] : 'Command Complete' event received
[13:57:04:898] : Status: BLE_STATUS_OK
[13:57:04:898] : 'Write Characteristic Value Without Response' request sent
[13:57:04:898] : Attribute Handle: 0x0012
[13:57:04:898] : Value: [01:38:06:00:04:03:02:01:00:00:B7:FF:17]
[13:57:04:898] : 'Command Status' event received
[13:57:04:898] : Status: BLE_STATUS_OK
[13:57:04:898] : 'Command Complete' event received
[13:57:04:898] : Status: BLE_STATUS_OK
[13:57:09:898] : 'Terminate Connection' request sent
[13:57:09:900] : 'Command Status' event received
[13:57:09:900] : Status: BLE_STATUS_OK
[13:57:09:915] : 'Connection Terminated Notification' event received
[13:57:09:915] : Reason: CONNECTION_TERMINATED_BY_LOCAL_HOST
[13:57:09:915] : 'Connection Terminated Notification' event received
[13:57:09:915] : Reason: CONNECTION_TERMINATED_BY_LOCAL_HOST
I do not know why but suddenly CySmart sends out a "Terminate Connection" request.
The host and target has same security and connection parameters.
Any idea about what the reason could be?
Regards,
Show Less