All Forums
Browse the Community
USB
Universal Serial Bus (USB) forums have discussions regarding Low-Full & High Speed Peripherals, Superspeed Peripherals, USB Hosts Hubs Transceivers, and USB EZ-PD Type C product solutions for PCs and consumer device topics.
Wireless Connectivity
Power
Sensors
Memories
Memory Discussion Forums discussions regarding NOR Flash, SRAM, nvSRAM and F-RAM - performance and reliability with discrete memory densities ranging from 4K-bit to 2G-bit topics.
Other Technologies
Discussion forum regarding Other Technologies including Power Management and Clocks topics.
Security & Smart Card
Radio Frequency (RF)
Software
Software including ModusToolbox, PSoC Creator, WICED Studios and Wi-Fi Bluetooth for Linux .
Applications
Battery Management ICs
Infineon's TLE9012DQU is a multi channel battery monitoring and balancing IC for various lithium-ion battery applications, with integral functions like voltage and temperature measurement, cell balancing, and isolated communication with the main battery controller, including self-diagnosis features. The TLE9015DQU iso UART Transceiver IC is used in battery systems for enabling the communication between the main microcontroller and multiple TLE9012DQU units in a daisy-chain configuration. This forum welcomes discussions, queries, and insights on battery management systems and devices.
Featured Discussions
Hi guys:
I am developing with FX3.I am using UART DMA mode for data transfer.Now I want to store the data received by the UART in my own buffer.I queried through the API guide that the CyU3PDmaChannelSetupRecvBuffer API might be able to fulfill my needs.But this function always return ERROR message.I try to make some change in my code,but its error message will also change.
Frequent mistakes:
-CY_U3P_ERROR_NULL_POINTER
or
-CY_U3P_ERROR_BAD_ARGUMENT
or
-CY_U3P_ERROR_ALREADY_STARTED
Here is my source code:
CyU3PDmaChannel glUartRXChHandle;
CyU3PDmaBuffer_t* glRxBuffer;
uint8_t glRXDataBuffer[16];
void ReceivedDataCallBack(
CyU3PDmaChannel *chHandle, /* Handle to the DMA channel. */
CyU3PDmaCbType_t type, /* Callback type. */
CyU3PDmaCBInput_t *input)
{
CyU3PReturnStatus_t status;
glRxBuffer->buffer = glRXDataBuffer;
glRxBuffer->count = 16;
glRxBuffer->size = 16;
glRxBuffer->status = NULL;
if(type == CY_U3P_DMA_CB_PROD_EVENT)
{
//status = CyU3PDmaChannelGetBuffer(&glUartRXChHandle, glRxBuffer, 0);
status = CyU3PDmaChannelSetupRecvBuffer(&glUartRXChHandle, glRxBuffer);
if (status == CY_U3P_SUCCESS)
{
testBuffer[0] = 0x01;
SendData(glRxBuffer->buffer, 16);
//SendData(testBuffer, 16);
}
else
{
DPRINT("RXData ERROR : %d",status);
}
}
CyU3PDmaChannelDiscardBuffer(&glUartRXChHandle);
}
CyFxUartLpApplnInit (void)
{
CyU3PUartConfig_t uartConfig;
CyU3PDmaChannelConfig_t dmaConfig;
CyU3PReturnStatus_t apiRetStatus = CY_U3P_SUCCESS;
glTxBuffer = (CyU3PDmaBuffer_t*)CyU3PDmaBufferAlloc (16);
glRxBuffer = (CyU3PDmaBuffer_t*)CyU3PDmaBufferAlloc (16);
CyU3PMemSet(glRXDataBuffer,1,16);
/* Initialize the UART module */
apiRetStatus = CyU3PUartInit ();
if (apiRetStatus != CY_U3P_SUCCESS)
{
/* Error handling */
CyFxAppErrorHandler(apiRetStatus);
}
/* Configure the UART
Baudrate = 115200, One stop bit, No parity, Hardware flow control enabled.
*/
CyU3PMemSet ((uint8_t *)&uartConfig, 0, sizeof(uartConfig));
uartConfig.baudRate = CY_U3P_UART_BAUDRATE_115200;
uartConfig.stopBit = CY_U3P_UART_ONE_STOP_BIT;
uartConfig.parity = CY_U3P_UART_NO_PARITY;
uartConfig.flowCtrl = CyFalse;
uartConfig.txEnable = CyTrue;
uartConfig.rxEnable = CyTrue;
uartConfig.isDma = CyTrue; /* DMA mode */
/* Set the UART configuration */
apiRetStatus = CyU3PUartSetConfig (&uartConfig, NULL);
if (apiRetStatus != CY_U3P_SUCCESS )
{
/* Error handling */
CyFxAppErrorHandler(apiRetStatus);
}
/* Create a DMA Manual channel between UART producer socket
and UART consumer socket */
CyU3PMemSet ((uint8_t *)&dmaConfig, 0, sizeof(dmaConfig));
dmaConfig.size = CY_FX_UART_DMA_BUF_SIZE;
dmaConfig.count = 1;
dmaConfig.prodSckId = CY_U3P_LPP_SOCKET_UART_PROD;
dmaConfig.consSckId = CY_U3P_CPU_SOCKET_CONS;
dmaConfig.dmaMode = CY_U3P_DMA_MODE_BYTE;
dmaConfig.notification = CY_U3P_DMA_CB_PROD_EVENT;
dmaConfig.cb = ReceivedDataCallBack;
dmaConfig.prodHeader = 0;
dmaConfig.prodFooter = 0;
dmaConfig.consHeader = 0;
dmaConfig.prodAvailCount = 0;
/* Create the channel */
apiRetStatus = CyU3PDmaChannelCreate (&glUartRXChHandle,
CY_U3P_DMA_TYPE_MANUAL_IN, &dmaConfig);
if (apiRetStatus != CY_U3P_SUCCESS)
{
/* Error handling */
CyFxAppErrorHandler(apiRetStatus);
}
dmaConfig.size = CY_FX_UART_DMA_BUF_SIZE;
dmaConfig.count = 1;
dmaConfig.prodSckId = CY_U3P_CPU_SOCKET_PROD;
dmaConfig.consSckId = CY_U3P_LPP_SOCKET_UART_CONS;
dmaConfig.dmaMode = CY_U3P_DMA_MODE_BYTE;
dmaConfig.notification = 0;
dmaConfig.cb = NULL;
dmaConfig.prodHeader = 0;
dmaConfig.prodFooter = 0;
dmaConfig.consHeader = 0;
dmaConfig.prodAvailCount = 0;
/* Create the channel */
apiRetStatus = CyU3PDmaChannelCreate (&glUartTXChHandle,
CY_U3P_DMA_TYPE_MANUAL_OUT, &dmaConfig);
if (apiRetStatus != CY_U3P_SUCCESS)
{
/* Error handling */
CyFxAppErrorHandler(apiRetStatus);
}
/* Set UART Tx and Rx transfer Size to infinite */
apiRetStatus = CyU3PUartTxSetBlockXfer(0xFFFFFFFF);
if (apiRetStatus != CY_U3P_SUCCESS)
{
/* Error handling */
CyFxAppErrorHandler(apiRetStatus);
}
apiRetStatus = CyU3PUartRxSetBlockXfer(0xFFFFFFFF);
if (apiRetStatus != CY_U3P_SUCCESS)
{
/* Error handling */
CyFxAppErrorHandler(apiRetStatus);
}
apiRetStatus = CyU3PDmaChannelSetXfer (&glUartRXChHandle, 0);
if (apiRetStatus != CY_U3P_SUCCESS)
{
/* Error handling */
CyFxAppErrorHandler(apiRetStatus);
}
/* Set DMA Channel transfer size */
apiRetStatus = CyU3PDmaChannelSetXfer (&glUartTXChHandle, 0);
if (apiRetStatus != CY_U3P_SUCCESS)
{
/* Error handling */
CyFxAppErrorHandler(apiRetStatus);
}
}
Please give me some help! Thank you !
Show LessWe are doing one solution based on Wi-Fi and BT combo module. While surfing the internet we are not getting datasheet of Cypress CYW43012/BCM43012 datasheet. Does it contain network stack on it?
Show LessHi guys:
I use FX3 to implement UVC protocol and video transmission in SS mode of USB3.0..
I have used DMAMutilChannal for video data transmission,use register mode for serial data transmission.But now serial data transmission seems to be apart from some problems.So I want to use serial DMA mode for data transfer.
I would like to ask FX3 to support the use of two different types of DMA channels?In other words, can I use DMAMutilChanel for video transmission and DMA mode for serial data transmission?If there is support, is there a example to refer to?
Best regards,
Luca L
Show LessHi Guys,
I am trying to build binary for CYBL10563-56LQX1 processor with came with came with CY8CKIT-042-BLE PIONEER KIT.
I managed to generate the a make file from the PSoC Creator and use it to build the application under Ubuntu Linux.
But the hex file created by the objcopy does not work. I mean the PSoC Programmer does not load.
The command I used to generate the hex file is as follows:
arm-none-eabi-objcopy -j .text -j .data -O ihex "$1" output/debug/bin.hex
I have compared the binary produced by objcopy and cyelftool.exe with a hex editor and found that the format is completely different.
Clearly the linux command is not doing the job.
Anyone knows how I can generate the correct hex file for the KIT? Or may be load the objcopy hex file?
Your help will be much appreciated.
Thanks in advance.
Show LessHi there,
We have modified the circuit of OVP and OCP from EVK of CCG4. How do I start to modify code happen? Should I modify source code directly or use EZ-PD utility first.
Actually, we have more customized circuit from CCG4 EVK.
Modification
1. The EC host boot loader function without the HCI pin. We wanna update from I2C directly.
2. The OVP and OCP has been use some GPIO as notified pin.
3. Sink or Source path control.
We would like to modify to as we want.
Where should we start? Go to source all the way or still need EZ-PD configuration ?
Jason
Show LessHi,
Looking into how to use linked mailboxes with Full CAN communication I find that the documentation is not very clear and the answers to the questions on the topic are a bit vague.
Could someone please provide a code example on how to use Full CAN linked mailboxes? It would be awesome if the example could include the following cases:
- Using the linked mailboxes as a buffer, that is, checking the linked mailboxes from time to time to retrieve messages even if the buffer is not full (not having to wait for an interrupt in the last linked mailbox to retrieve the messages that have arrived). Is there a way to know, be it by interruption or any other method, how many messages have arrived?
- Using the linked mailboxes as a FIFO buffer. Does this have to be done manually?
Hi,
I have a fresh install of the Wiced Smart SDK version 2.2.2 but I am unable to launch the IDE after the install and get a Framework Event error: Is this related to eclipse version bundled with the SDK being too old and not work with the latest version of java installed on my machine., Anyhow how do i fix it.
!SESSION 2018-08-28 23:50:45.237 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=10.0.2
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.cpp.product -keyring /Users/akshitdayal/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.cpp.product -keyring /Users/akshitdayal/.eclipse_keyring -showlocation
!ENTRY org.eclipse.equinox.simpleconfigurator 4 0 2018-08-28 23:50:50.670
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle "org.eclipse.equinox.simpleconfigurator_1.0.301.v20120914-163612 [234]" could not be resolved. Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: CDC-1.1/Foundation-1.1,J2SE-1.4
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1332)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1316)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
!ENTRY org.eclipse.osgi 4 0 2018-08-28 23:50:50.679
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.equinox.simpleconfigurator_1.0.301.v20120914-163612.jar was not resolved.
!ENTRY org.eclipse.osgi 2 0 2018-08-28 23:50:50.696
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2018-08-28 23:50:50.696
!MESSAGE Bundle reference:file:plugins/org.apache.xmlrpc_3.0.0.v20100427-1100.jar was not resolved.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.696
!MESSAGE Missing imported package javax.xml.namespace_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.696
!MESSAGE Missing imported package org.apache.ws.commons.serialize_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.696
!MESSAGE Missing imported package org.apache.ws.commons.util_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.697
!MESSAGE Missing imported package javax.xml.bind_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.697
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.697
!MESSAGE Missing imported package javax.xml.parsers_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.697
!MESSAGE Missing imported package org.apache.commons.logging_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.697
!MESSAGE Missing imported package org.xml.sax_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.697
!MESSAGE Missing imported package org.xml.sax.helpers_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.697
!MESSAGE Missing imported package org.apache.commons.httpclient.params_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.697
!MESSAGE Missing imported package org.apache.commons.httpclient_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.697
!MESSAGE Missing imported package org.apache.commons.httpclient.auth_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.697
!MESSAGE Missing imported package org.apache.commons.httpclient.methods_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.697
!MESSAGE Missing imported package org.w3c.dom_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2018-08-28 23:50:50.698
!MESSAGE Bundle reference:file:plugins/com.broadcom.wiced.doc_1.2.0/ was not resolved.
!SUBENTRY 2 com.broadcom.wiced.doc 2 0 2018-08-28 23:50:50.698
!MESSAGE Missing required bundle org.eclipse.core.runtime.compatibility_0.0.0.
!SUBENTRY 2 com.broadcom.wiced.doc 2 0 2018-08-28 23:50:50.698
!MESSAGE Missing required bundle org.eclipse.core.runtime_2.1.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2018-08-28 23:50:50.698
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.equinox.simpleconfigurator_1.0.301.v20120914-163612.jar was not resolved.
!SUBENTRY 2 org.eclipse.equinox.simpleconfigurator 2 0 2018-08-28 23:50:50.698
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.1))(&(osgi.ee=JavaSE)(version=1.4)))".
!ENTRY org.eclipse.osgi 2 0 2018-08-28 23:50:50.702
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2018-08-28 23:50:50.702
!MESSAGE Bundle org.apache.xmlrpc_3.0.0.v20100427-1100 [17] was not resolved.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.702
!MESSAGE Missing imported package javax.xml.bind_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.703
!MESSAGE Missing imported package javax.xml.namespace_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.703
!MESSAGE Missing imported package javax.xml.parsers_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.703
!MESSAGE Missing imported package org.apache.commons.httpclient_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.703
!MESSAGE Missing imported package org.apache.commons.httpclient.auth_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.703
!MESSAGE Missing imported package org.apache.commons.httpclient.methods_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.703
!MESSAGE Missing imported package org.apache.commons.httpclient.params_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.703
!MESSAGE Missing imported package org.apache.commons.logging_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.703
!MESSAGE Missing imported package org.apache.ws.commons.serialize_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.703
!MESSAGE Missing imported package org.apache.ws.commons.util_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.703
!MESSAGE Missing imported package org.w3c.dom_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.703
!MESSAGE Missing imported package org.xml.sax_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.703
!MESSAGE Missing imported package org.xml.sax.helpers_0.0.0.
!SUBENTRY 2 org.apache.xmlrpc 2 0 2018-08-28 23:50:50.703
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2018-08-28 23:50:50.704
!MESSAGE Bundle com.broadcom.wiced.doc_1.2.0 [233] was not resolved.
!SUBENTRY 2 com.broadcom.wiced.doc 2 0 2018-08-28 23:50:50.704
!MESSAGE Missing required bundle org.eclipse.core.runtime_2.1.0.
!SUBENTRY 2 com.broadcom.wiced.doc 2 0 2018-08-28 23:50:50.704
!MESSAGE Missing required bundle org.eclipse.core.runtime.compatibility_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2018-08-28 23:50:50.704
!MESSAGE Bundle org.eclipse.equinox.simpleconfigurator_1.0.301.v20120914-163612 [234] was not resolved.
!SUBENTRY 2 org.eclipse.equinox.simpleconfigurator 2 0 2018-08-28 23:50:50.704
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.1))(&(osgi.ee=JavaSE)(version=1.4)))".
!ENTRY org.eclipse.osgi 4 0 2018-08-28 23:50:50.708
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
Show LessHi.
Can I
get Address pinmap information for CY7C1643KV18(144Mbit 8Mx18 400MHz Latency 2.0)
I don't know pinmap information as from your datasheet(CY7C1643KV18)
please, help me ^^*
Show LessCould somebody give me a help.
I want to set the timeout of BulkInEndPt, but it seems that it doesn't work normally.
For example, I set timeout to 5ms, m_pCyUSBDevice->BulkInEndPt->TimeOut = 5;
If XferData returns and fails, it takes about 55ms. I think It should be 5ms or just a little more than 5ms. Am I wrong?
And if XferData returns and succeeds, if will takes much more than 5ms sometimes. I think it should be timeout.
What's more, I repeat reading data from USB device, and I am sure USB device have data, but it will stop reading data for more than 30ms sometimes. I find it by wireshark.
Thanks!
Show Less-
TraveoII
UART buadrate Setting
by chandan1995 Jun 19, 2023