Microcontrollers Forum Discussions
Browse the Community
PSoC™ 6
Discussion forum regarding PSoC™ 6 - 32-bit Arm Microcontroller (MCU) Forum, discusses the 40-nm technology - best combination of ultra-low-power consumption, flexibility, security and high-performance topics.
PSoC™ 4
PSoC™ 4 - Arm®-based Forum, discusses the low-power Cortex®-M0 and Cortex®-M0+ cores, CapSense®, and Bluetooth® Low Energy
PSoC™ 5, 3 & 1
The PSoC™ 5LP, PSoC 2 and PSoC 1 Forum discusses - 24-bit Digital Filter Block (DFB), 24 UDBs, DMA controller and integrating AFE, digital logic with user interface ICs with an Arm Cortex-M3 CPU solutions.
CAPSENSE™ & MagSense
The Sensing Technology Forum discusses CAPSENSE™ - capacitive-sensing and MagSense inductive-sensing for consumer, industrial, automotive, and Internet of Things (IoT) applications.
XMC™
AURIX™
In this forum you can post your questions, comments and feedback about the 32-bit AURIX™ TriCore™ Microcontroller. The AURIX™ offers the highest scalability in performance, memory & peripherals across application. It is a safe and secure companion chip, meeting both the ISO functional safety standards and EVITA full security standards. Here you can also find the links to the latest board pages, SW and Tools GitHub, trainings, documents and FAQs
TRAVEO™ T2G
Discussion forum regarding 32-bit TRAVEO™ T2G Microcontroller - based on ARM® for automotive body electronics applications; cutting-edge performance, safety, and security features topics.
MOTIX™ MCU
The MOTIX™ MCU forum is designed for you to post your questions, comments and feedback about the famous Embedded Power ICs at anytime. Ask your technical questions or explore existing content!
Legacy microcontrollers
Featured Discussions
Hi
I am building a BLE remote controller. It should respond to user entry and send a command via BLE to the receiver, both are PSOc6.
What is the best practice to reduce power consumption ?
I read the PSoC design documents for low power, but there is still some confusion. The options are to put in deep sleep either CM0+ and/or CM4 until a user entry is detected using GPIO ISR, then it wakes up to resume the connection and send the BLE packet.
What is the best practice ?
Thanks
Show Less
Hello. I have an IRQ for my serial device that looks similar this:
CY_ISR(uart_isr) {
if (h_UART_CHECK_INTR_RX_MASKED(h_UART_INTR_RX_NOT_EMPTY))
{
uint32_t data = h_UART_UartGetByte();
uint8_t byte = data & 0xFF;
// Ignore any errors.
if ((data & 0xFFFFFF00) != 0) {
return;
}
queue_data(&queue, byte);
h_UART_ClearRxInterruptSource(h_UART_INTR_RX_NOT_EMPTY);
}
}
But I get an issue where I will occasionally get an underflow error. Which is to say on the `((data & 0xFFFFFF00) != 0` will be true. It is not a framing or parity error, but the underflow error. But I don't understand how that could happen since I am specifically checking for the FIFO not being empty. Alright, so I made an alternative.
CY_ISR(uart_isr) {
if (h_UART_CHECK_INTR_RX_MASKED(h_UART_INTR_RX_NOT_EMPTY))
{
for (uint32_t count = h_UART_SpiUartGetRxBufferSize; count > 0; count--) {
uint32_t data = h_UART_UartGetByte();
uint8_t byte = data & 0xFF;
// Skip errors
if ((data & 0xFFFFFF00) != 0) {
continue;
}
queue_data(&queue, byte);
}
h_UART_ClearRxInterruptSource(h_UART_INTR_RX_NOT_EMPTY);
}
}
And this ends up being even worse somehow. Count will be a positive number, but then it will skip each byte received.
Basically what I'm asking if, how can it be possible for
h_UART_CHECK_INTR_RX_MASKED(h_UART_INTR_RX_NOT_EMPTY)
to be true, but then there be an underflow error in the byte read? I did a test and every error it received was an underflow. If I inspect the values that get received upon this underflow, some are actual data sent (aka not an underflow) and some are just junk.
This has been a thorn in my side for months but so far my solution has been "about one in fifty messages fail for some reason," but that is getting old.
Show LessI'm trying to understand the USB setup. I have a board that has a USB connector connected to the DP and DM pins on the PSOC5. I copied the code from the USBFS example and it runs, but hangs when trying to check the configuration. That appears to be because the Windows 10 computer does not recognize the USB device. It shows up in device manager under "Universal Serial Bus controllers", as "Unknown USB device (Device Descriptor Request Failed)". I am not sure if this is a hardware or software issue. The various documents seem to indicate that I have to find and install a special Windows device driver for the USBFS. I followed the instructions to install it but when I selected the .inf file, I got a message that a compatible file was not found. (That was when trying to install the driver from the unknown USB device entry in device manager.)
In general, why should I need a special device driver? I want to produce a product that creates a com port for anyone who installs it into windows. Why won't the Ftdi drivers work? Is there any path to making them work?
But, from reading, I am not at all sure that this is a driver problem.
Help please.
Thanks Russ
Show LessAs metioned in "AURIX TC3xx Safety Manual v2.0.pdf - 6.38 SM[HW]:CLOCK:CFG_AS_AP", Registers of Clock System is protected by Master Tag based safety machenism. But I can't find related ACCEN0/1 register in "Infineon-AURIX_TC3xx_Part1-UserManual-v02_00-EN.pdf - 10 Clocking System".
Show LessI am trying to configure an Infineon Aurix TC334 Lite kit QSPI as master. So far, I managed to configure the necessary pins, change the polarity to work with Gyro 6 Click Gyroscope (bit order - MSB, sampling edge - riging). I using an SPI sniffler and as far as i can see data is being transmitted but i receive nothing on MISO. Do you have any idea?
I've attached a snip with the SPI MOSI/MISO and the code as well.
Show Less
Hello dear infineon frends,
I currently have a problem with the Tricore from Infineon. The controller is currently being used in series production. Some controllers do not start after a reset. When I connect to the debugger/JTAG and execute the debug software reset, the application starts normally. If I do a hardware reset, the controller hangs.
I have compared working controller with the faulty controller. Working controller starts after "Idle mode" → "Normal mode". Faulty controller starts after "Idle mode" → "Sleep mode". Can you perhaps give me a tip on what I should look for? What is the reason for this problem?
Many thanks in advance
Greetings
Alexander
Dear Mr\Mrs,
I tried to create a project starting of Modustoolbox for IAR embedded. Compiling is failing with this issue:
"Error[Li005]: no definition for "__iar_Initlocks" [referenced from C:\Users\emanuelebelpanno\mtw\Empty_PSoC4_App\Debug\Obj\TOOLCHAIN_IAR_13573725619442129044.dir\cy_clib_support_iar.o]"
I've tried to look for this function and it isn't present in the project. How Cam I solve this issue?
I'm using Windows 10, IAR embedded ARM 9.50.2.
Kind Regards,
EB
Show LessHello Infineon Community,
We are unable to identify the MAC-ID of Infineon Aurix Tc397xx having transceiver ID as RTL8211F with connected RJ45 cable controller to the Canoe for my project activities.
Please help in this regard how to connect the MAC-ID of the specific chi set to Canoe
Thanks in advance
Show LessHello, I would like to know what are TSN standards does the Aurix TC399 microcontroller supports?
-
TraveoII
UART buadrate Setting
by chandan1995 Jun 19, 2023