PSoC™ 5, 3 & 1 Forum Discussions
I would like to know how to determine when a software client (like teraterm in windows or screen in linux/macintosh) connects to the PSOC5 USB configured as a USBUart device using the standard Cypress provided USB Drivers in windows and the generic drivers in Linux/Macintosh.
The following example code:
/* Host can send double SET_INTERFACE request. */
if (0u != USBUART_IsConfigurationChanged())
{
/* Initialize IN endpoints when device is configured. */
if (0u != USBUART_GetConfiguration())
{
/* Enumeration is done, enable OUT endpoint to receive data
* from host. */
USBUART_CDC_Init();
}
}
if(0 != USBUART_GetConfiguration()){
/* Check for input data from host. */
if (0u != USBUART_DataIsReady()){
......
}
Only lets you know when the USB is enumerated and the endpoints are established. This is ages before the Software program connects (in CPU time).
I have tried reading the DataSheet for the USBFS/USBUart module, and searched the automatically generated code, but I have not been able to determine what interrupts/signals/data are given to the PSOC when a software program connects to the USB port.
I would like to generate a sign-on message through the USB Serial port so the connecting program (or user) knows the device is alive and ready.
Can someone help?
Thank You!
Show LessDear Sirs and Madams,
Is it possible to confirm for the status of the "wakeup_out" signal described on Figure 19-11 PICU Block Diagram of page 158 in PSoC5LP Architecture TRM?
I checked the PSoC5LP register TRM, but could not find the register description related to "wakeup_out".
Regards,
Show LessHi,
I installed PsoC Creator 4.4 on a new machine (see installation details below). When rebuilding an existing (and error free) PSoc3 project (previously we used Psoc Creator 4.2), I get the compiler error for instrins.h (this file does not even seem to be part of my project at all).
ERROR: C:\Program Files (x86)\Cypress\PSoC Creator\4.4\PSoC Creator\import\keil\pk51\9.51\C51\INC\intrins.h:19: missing ';' before 'extern'
When hoovering over INTRINS.H I get the message:
What causes this and how to prevent this error?
Clean and rebuild does not help...
Thansk for your advice
Kris
Installation environment:
PSoC Creator 4.4 (4.4.0.80)
Culture: Dutch (Netherlands)
OS Version: Microsoft Windows NT 10.0.19042.0
CLR Version: 4.0.30319.42000
Installed CyInstaller Products:
Peripheral Driver Library 3.1.3
PSoC Programmer 3.29.0
PSoC Creator 4.4
Loaded Plugins:
Name: Customizer Loader
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Loads component customizers.
Name: Addin Discovery
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Discovers PSoC Creator addins (kits, language packs, etc)
Name: Device Catalog
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Device Catalog Plugin
Name: Documentation
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Adds the topics available in the documentation.
Name: Start Page
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Adds a start page to the framework.
Name: Output Window Plugin
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Adds the output window
Name: SCC Manager
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: The Source Code Control Manager is the central class used for SCC actions within PSoC Creator.
Name: Symbol, Schematic and SchMacro Factory
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: The Symbol and Schematic Factory is used to load, cache, and retrieve symbols and schematics.
Name: Project Manager Plugin
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Adds project management related functionality.
Name: GDE Plugin
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Loads the Symbol and Schematic editors
Name: Language Plugin
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Supports user files in multiple languages
Name: Workspace Factory
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: The Workspace Factory is used to retrieve instances of PSoC Creator workspaces.
Name: Project Factory
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: The Project Factory is used to retrieve instances of PSoC Creator projects.
Name: Toolchain Manager
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: PSoC Creator Toolchain Manager
Name: ARM GCC Generic
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: ARM GNU Generic
Name: ARM MDK Generic
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: ARM MDK Generic
Name: ARM IAR Generic
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: ARM IAR Generic
Name: DP8051 Keil Generic
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: DP8051 Keil Generic
Name: Device Selector
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Adds a dialog that allows the user to select a device.
Name: File Editor Factory Plugin
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Add file editors to the framework.
Name: Transport Framework
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Provides a generic device communication framework for use by other plugins.
Name: Debugger Core
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: The Core Debugger provides an architecture independent framework for the common debug features.
Name: PSoC Debugger
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Provides debugging support for the different PSoC families through a GDB back end.
Name: FM Debugger
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Provides debugging support for FM device families
Name: Device IO Transport
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Provides device IO support for Cypress devices though PSoC Programmer APIs.
Name: Serial Transport
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Provides basic serial device support for the rest of the tool.
Name: Bootloader Host
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Provides a host tool to perform bootloading operations.
Name: Background Elaborator
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: PSoC Creator Background Elaborator.
Name: TypeCache Factory
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: The TypeCache Factory is used to retrieve instances of TypeCaches.
Name: PSoC Fitter
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: PSoC Fitter Plugin
Name: FM Fitter
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: FM Fitter Plugin
Name: DWR Plugin
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Registers resource editors with devices.
Name: DMA Wizard
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Enables quick and correct development of applications that use DMA.
Name: Tuner Plugin
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: Manages custom component tuner executables
Name: Notice Window
Version: 4.4.0.80
Company: Cypress Semiconductor
Description: The Notice Window displays notices (status messages / errors with managed lifetimes).
Show LessI am using PSOC 5LP -059 kit as a high resolution A/D acquisition System ( 20 bits A/D converter). But finally I will send all this information using wifi so I propose to use CY8CPROTO-062-4343W kit as wifi function. Some questions are raised:
- How to connect both things : I2C, UART...Any example, application note.
- I should mix two development platforms: PSOC Creator (PSOC 5LP) and Modus toolbox (PSOC 6 and wifi). Any recommendation in advance, or example/app notes?.
- Could all this be done easier?. For example any wifi module (just wifi) to be connected to PSOC 5LP -059 kit ( I saw examples for kit -050, but not for -059).
Many thanks in advance...
Show LessHi,
I am programming the MCU of a transceiver using MiniProg3. The transceiver is connected to a Multilane testboard (ML4027-DCO-FTDI Board). The procedure that I am following is:
- FW programming of MCU (with MiniProg3)
- Run multiple automated tests on the transceiver
Everything was working properly with the MCU programming. However, after months of working properly the MCU programming started to fail most of the time.
For example. I run the MCU programming script a couple of times and it is successful. But suddenly I get the MCU programming failing:
If I keep trying it will continue to fail with the following error:
The only way to get the programming working again is to disconnect and reconnect the programmer USB cable from/to the PC. After the USB reconnection, the MCU programing is successful again, but it only works one or two times before starting the same failures again.
The test station PC OS is Windows 10.
The test board is working properly.
The settings from PSoC Programmer are:
Programmer: MiniProg3
Programming mode: Reset
Auto detection: OFF
Protocol: SWD
Voltage: 3.3V
Connector: 5p
Clock Speed: 3MHz
Device: CY8C5888FNI-LP214
Can anyone provide an insight on how to solve this problem?
Thanks in advance.
Show LessPSOC Newbie trying to use the PWM as a 1 shot pulse under software control on the CY8CKIT-059. It works once in a while! Have tried putting in sync blocks with no success, among many other things to get this to work. Couldn't find any working examples for PWM in this configuration. Red scope trace is trigger, blue scope trace is PWM output. Project is attached.
Show Less
I'm trying to read data coming into a shift register using DMA.
What pointer do I need to use as my DMA source to read whatever is currently in the shift register directly?
I can access the data that's been shifted in using ShiftReg_ReadRegValue() so I know the data has arrived correctly.
Thanks in advance
Dan
Show LessHello,
I have been working on CY8CKIT-050_PSoC 5LP DVK Kit it has CY8C5868AXI-LP035 on it. I have been programming it using PSOC creator 3.3 using on board USB programming. today it has stopped detecting the device and when I press port acquire button in select debug target it gives an error: There was an error running port acquire: Can not acquire SWD device!
now its neither programming nor debugging.
What should I do to fix it. I have tried reinstalling the software and changing the cable but none of them works. Kindly help me ASAP.
Regards
Show Less