PSoC™ 4 Forum Discussions
Set up new board with a fresh psoc4000s, tried to program it with an existing program from psoc creator, and got a failed programming notification. Dug into the problem and it is due to a checksum fail after the "protect" step. Only thing is that I'm still in development and have never set up flash protection... so why am I getting a protected block? have tried multiple erases, clean and build, reprogramming etc...
Set up a second board and everything programs just fine; and as I would expect, it says that it has no protected blocks...
Already checked out https://community.infineon.com/t5/PSoC-5-3-1/Checksum-Failed/td-p/210189 but it's not a perfect fit as my program doesn't modify anything, and my question is more about clearing the protection on a single device
Show Less
Hi,
I wish to use external (quartz) clock for the PSoC4 SCB UART Version 4.0 component. After enabling the "Clock from terminal" and connecting the "Digital input pin" => two error messages.
a. Invalid connection from clock input
b. The component requires a clock from the clock block
Please help.
Viktor
Show LessHow can a new PSoC 4100S Plus design be future-proofed for migration to a PSoC 4100S Max device or any other new PSoC 4 devices that haven't yet been released?
Does Infineon have a schedule for migration of more PSoC 4 devices into ModusToolbox?
Might Infineon consider adding new PSoC 4 devices into PSoC Creator?
PSoC 4100S Plus is ONLY supported in PSoC Creator.
PSoC 4100S Max is ONLY supported in ModusToolbox.
References:
- Do you have PSoC Creator convert to MTB tool ?! <-- Len has provided excellent support for converting Creator to ModusToolbox. Might Infineon embrace the effort and upgrades by creating a Conversion Configurator?
- PSoC Creator support for PSoC 4 MCU: PSoC 4100S Max
- Comparison of features in PSoC™ 4100S devices - KBA232386 @ https://community.infineon.com/t5/Knowledge-Base-Articles/Comparison-of-features-in-PSoC-4100S-devices-KBA232386/ta-p/324044
Greg
Show LessHello,
I'd like to find out how to update the component if there is no downloadable information on my Component Update Tool page in PSoC Creator 4.5.
As is shown in the picture below, the current version of LIN is 6.0 but the newest version I could choose is 5.0 and there is no downloadable information for new version. The same problem happens on component ADC_SAR_SEQ_P4.
Show Less
Hi,
I do have a problem about implementing deep sleep mode on CY8C4125AZI-S433 part numbered microcontroller on my custom design PCB. Here's the steps that I've followed and the goal of this implementation.
1- The PCB is powered with 220V AC mains. My goal is to put the system into deep sleep mode when AC mains is disconnected so that the system must continue to operate where it left off by waking up after the PCB is powered again.
2- During the power down mode, the PCB keeps powered from the electrolytic capacitor (like 1000uF) which is connected to the VDD line of the system. As there won't be any unit which draws current on power down mode except the deep sleep mode current of the microcontroller (like 2.5uA as the datasheet mentions), the voltage coupled on the electrolytic capacitor does not drop down to the voltage that the microcontroller resets itself (1.8V) for a specific time.
3- The system must be capable of detecting whether the system is powered from AC mains or not. So, I've added a circuit (Picture-1 and 2) to the PCB which converts AC mains signal (220V, 50 or 60Hz) to the square wave (I called it as sync signal) which alternates between VDD and 0V with the same frequency of the AC mains and connected this signal to the microcontroller as input.
4 - So after adding this circuit to the PCB, PSoC successfully detected the sync signal when PCB is powered from AC mains and I achieved the first part of my goal.
5- In the second part, I've configured sync signal as high impedance digital input pin and attached a dedicated interrupt component for wake up functionality on Top Design tab. On the software side, I've added just a few lines of codes which puts the system into deep sleep mode when sync signal is not available for like 50ms. Before calling CySysPmDeepSleep(); function, I've stopped all units like timer, PWM, ADC and configured all used GPIOs to the state that there's no current flow on PCB through these pins and configured all unsed GPIOs to high impedance analog state and also selected Debug Select option as GPIO on System tab of the PSoC Creator as the datasheet mentions. But the things didn't go as I expected.
6- The problem is that the voltage drops to the reset voltage of the microcontroller of 1.8V within 3 or 4 seconds as the system enters power down mode when AC mains is disconnected from PCB. My goal is to keep the system on deep sleep mode during between 5 and 10 minutes or more. This is possible because there's no unit to draw any current except the deep sleep mode current of the microcontroller on power down mode so that the voltage on the electrolytic capacitor should not drop to the reset voltage of the microcontroller suddenly.
7- I've previously achieved my goal using another brand microcontroller on the same PCB but I didn't understand why this situation occured on PSoC.
8- In order to be sure whether the reason of this sudden voltage drop caused by PSoC or the units of the circuit on the PCB, I created any empty project file on PSoC Creator and I only configured GPIOs on Top Design tab and called CySysPmDeepSleep(); function on the beginning of the code using a PCB which only have microcontroller and electrolytic capacitor. By the way, the electrolytic capacitor is coupled from MiniProg4 as I work without AC mains just for test.
9- The same situtation occured again and the voltage suddenly dropped to the reset voltage of the microcontroller. After the test, I became sure that the reason of this problem is not caused by the units of the circuit, is caused by PSoC itself.
10- After that, I've focused on GPIO definitions on Top Design tab and I think that found the reason of this problem. The problem is caused by used input pins on my project, not by output pins. Actually there's only one pin that is not configured as high impedance analog for lowest power consumption which is the one used for detecting sync signal.
11- I turned my focus on the settings of the input pin of sync signal and I'm really suprised that the problem is solved by switching input voltage threshold CMOS to CMOS 1.8V of this input pin. By selecting this option, I've achieved my goal and the current consumption is reduced highly but I didn't understand actually what happened on the background by selecting this option and that made me confused.
12- I've switched to the original PCB to test deep sleep mode with that configuration and it worked. The system entered sleep mode when the system disconnected from AC mains and the voltage didn't drop below to the microcontroller reset voltage during 2 or 3 minutes but another problem had occured.
13 - By selecting CMOS 1.8V option, the system sometimes accidently wakes up from sleep mode when AC mains keeps disconnected and I didn't give any meaning all about how this problem is solved and how another problem is triggered.
I couldn't find any meaningful reason of why this problem occured on me and decided to open a topic about that to have your ideas and solutions by attaching the related pictures and the datasheets that I've referred during this work. I'll be really appreciated if you illuminate me about this situation.
Thanks,
Have a nice day.
Show Less
Completely out of my comfort zone, started coding firmware 1 week ago from scratch, building on firmware with BLE we have had for years.
We have a WDT counter0 that mainly resets the system if 3 consecutive interrupts are unresolved.
We have WDT counter1 that interrupts once per second and reads an array of sensors.
This system works relatively well, although it can brown out or simply power down unexpectedly about once per month. It also resets every now and then, which is fine.
I would like to introduce WDT counter 2 (set as interrupt) to put pressure on the system. We are theorizing that our WDT interrupts might be colliding with component (BLE?) interrupts, resulting in an unknown state.
I can set up counter 2 normally, and it triggers at the interval I am expecting. However, it seems that the interrupts are not cleared properly. In fact, the CY_ISR (newFunction) does not even run when the counter reaches it's toggle bit. Is there something I need to enable that is different from WDT0 and 1? I know it cannot clear itself and cannot match number.
I can provide code example, but would need to remove proprietary sections. So I'm making a higher level inquiry first.
Show LessHi
After updating the components of my old project, the WDT part of the code shows an error. What are these parts replaced by?
PSoC Creator 4.4
Global Signal 2.10.
Show Less
Dear All,
I am using CY8C4246AZI-S413 Controller for USB HID-Keypad. It's Working fine with Operating System "Windows".
Whenever I am trying to connect with Linux operating System It is not showing compatibility and any indication also.
Please suggest any other option to make USB HID-Keypad compatible with Linux.
Warm Regards,
Sanket More,
India.
Show Less