PSoC™ 4 Forum Discussions
Hello everyone! I am trying to flash a hex file in to a custom Cypress 4148 board Using Raspberry Pi Zero WiFi version (that's what I have at the moment) and OpenOCD. But unfortunately, I get the following output when running Config.cfg file .
Open On-Chip Debugger 0.12.0+dev-00290-g2e60e2eca (2023-08-14-10:57)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Warn : Transport "swd" was already selected
Info : BCM2835 GPIO JTAG/SWD bitbang driver
Info : clock speed 1492 kHz
Info : SWD DPIDR 0x0bb11477
Info : [psoc4.cpu] Cortex-M0 r0p0 processor detected
Info : [psoc4.cpu] target has 4 breakpoints, 2 watchpoints
Info : starting gdb server for psoc4.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : SWD DPIDR 0x0bb11477
Error: [psoc4.cpu] clearing lockup after double fault
[psoc4.cpu] halted due to debug-request, current mode: Handler HardFault
xPSR: 0x60000003 pc: 0xfffffffe msp: 0xffffffe0
Error: timed out while waiting for target running
** Unable to reset target **
shutdown command invoked
Inside my Config.cfg file is the following:
source [find interface/raspberrypi-swd.cfg]
transport select swd
source [find target/psoc4.cfg]
program merged_psoc4.hex verify reset exit
The command I used is openocd -f config.cfg
I have tried a different combinations of commands but unfortunately none of them work. I was wondering what caused this and what the solution is.
Thanks in advance!
Show LessAfter purchasing a solar-powered IoT Device Kit S6SAE101A00SA1002, I'm currently attempting to program it by following the instructions provided in the user guide on the website. However, I'm encountering difficulties in the programming process. Can you please provide detailed guidance on the entire procedure, including the required software and the installation process? This would greatly assist me in successfully programming and utilizing the kit.
I'm trying to sort out SFLASH. I'm using a CY8C4247LTI-M475. I'm not sure if it has SFLASH or not. I want to store a small amount of data that doesn't get wiped out when the code is updated. I read 0x0FFF_F200 and get all zeros like something is there. I read 0x0FFF_F300 and I actually get some non-zero values. I call a function that should be writing to SFLASH row 0 and then I read 0x0FFF_F200 again and it is still all zeros. Later I read 0x0FFF_F300 again and it is now all 0s.
Most of the SFLASH references I've seen are about BLE. I'm not sure if it is a BLE specific feature or not.
Am I just doing something wrong, or am I trying to use a feature the chip doesn't have?
Thanks,
Wilton
P.S.:Not much response during the holidays.
The first question that I'd appreciate someone who knows (such as an employee) is whether the CY8C4247LTI-M475 has SFLASH? If it doesn't then there's no point in continuing. If it does, I can share some code to see what I'm doing wrong. But that piece of information appears elusive.
Show Less
Dear Sirs and Madams,
Please tell us about the relationship between the POR and minimum operating voltage.
The datasheet has the following specifications.
Power supply input voltage:
Power on reset :
It is a voltage that is not defined between the minimum operation voltage of 1.81V (1.71V Internally
unregulated supply) and the power-on reset release voltage of 0.5V to 1.5V.
I understand that the sequence of operations at startup is as follows:
1. POR release when Vdd reaches from 0V to 0.5V(1.5V)
2. Start boot process
3. Operation guaranteed when Vdd is 1.81V or higher
Does this mean that this 0.5V(1.5V) to 1.81V operation (mainly the boot process) is not guaranteed?
In other words, does it mean that reset IC is mandatory for PSoC4S Plus?
Regards,
Show LessSetting up your MIS webmail account on an iPhone involves configuring the email settings on the device. The exact steps can vary depending on the email provider and the type of email account you have (e.g., IMAP or POP3). Here is a general guide that should work for most cases:
-
Open Settings: Open the "Settings" app on your iPhone.
-
Scroll down and select "Mail": Scroll down the Settings https://miswebmail.com.au/ menu and look for the "Mail" option. Tap on it.
-
Accounts: Tap on "Accounts" or "Passwords" depending on your iOS version.
-
Add Account: Tap on "Add Account" or "Add Account..." depending on your iOS version.
-
Choose Email Provider: Select the type of email account you have. For most corporate email accounts, you'll likely choose "Microsoft Exchange." If you're not sure, check with your IT department or email provider.
-
Enter Email and Description:
- Enter your MIS webmail email address.
- You may need to add a description for the account (e.g., "Work Email").
-
Configure Settings: You'll need to provide details such as your email address, username, password, and a description. The exact details required may vary, so again, consult with your IT department or email provider if you're not sure.
-
Server Settings: You may be prompted to enter the server settings. For Microsoft Exchange, this typically includes the server address, domain, and username. Again, consult with your IT department for accurate information.
-
Choose Items to Sync: Select the items you want to sync with your iPhone, such as Mail, Contacts, and Calendars.
-
Save: After entering all the required information, tap "Next" or "Save" to finish the setup.
Your MIS webmail account should now be set up on your iPhone, and you can access your emails through the Mail app. If you encounter any issues or have specific settings provided by your IT department or email provider, make sure to follow those instructions.
Show LessHello!
I'm trying to transfer 1600 uint16_t values from the PSOC 4100S Max over SPI (with the PSOC acting as the master) and I would like to use DMA as otherwise the TX buffer is too small to transfer all 1600 values as part of one transaction.
I was able to find and test code that does this with the PSOC 6, however it is not adaptable to the PSOC 4100S Max as the functions seem to have substantially changed (ModusToolBox was complaining about multiple functions having too few/too many input parameters and txDMA_IRQ seems to not be an autogenerated interrupt source by the device configurator with a DMAC channel enabled). I also had some difficultly accessing the descriptors as unlike with the PSOC 6 they're defined as "Ping" and "Pong" with no corresponding externs defined in the autogenerated source.
Any help would be appreciated, thank you!
Show Less如题,前不久买的Miniprog4(因为Miniprog3用坏的多),刚开用还行,但今天突然不成烧录程序到PCB,然后发现用PSOC Creator4.4识别不到烧录器,具体现象是拔插烧录器后,Mode黄灯亮,但是点下载程序,Mode黄灯熄灭,烧录器就收不进去而且烧录器也识别不到了(试了下其他烧录器证明PCB是OK的),然后使用PSOC Programmer 3.29.2,重新插上烧录器,程序可以识别到烧录器,就看看更新固件行不行,点了一下,烧录器就识别不到了,软件显示连接中断,现在就是插拔烧录器后可以识别,但是烧录器一做使用动作就出问题,请问大佬们知道这是啥问题吗?
Show Less
Hi to configure interrupt for ADC [2 channels]?
kindly check the below configuration and give your feed back
/*** SAR ADC P2.6 & P2.7 ***/
Cy_SysInt_Init(&SAR_intr_config, SAR_ISR);
/* Clearing and enabling the GPIO interrupt in NVIC */
NVIC_ClearPendingIRQ(SAR_intr_config.intrSrc);
NVIC_EnableIRQ(SAR_intr_config.intrSrc);
/*** SAR ADC P2.6 & P2.7 ***/
void SAR_ISR()
{
/* Clears the triggered pin interrupt */
Cy_GPIO_ClearInterrupt(GPIO_PRT2, 6);
Cy_GPIO_ClearInterrupt(GPIO_PRT2, 7);
NVIC_ClearPendingIRQ(SAR_intr_config.intrSrc);
}
芯片型号:CY8C4014LQI-421
参考例程:CE210291_CapSense_P4_One_Button
pin脚定义:
需求:
将例程中的采集一个按键,改成采集三个按键。保证每个按键按下都可以采集到键值。
代码修改:
for(;;)循环前初始化时CapSense_CSDSetupWidgetExt调用三次,分别传入三个按键ID:
原:
CapSense_CSDSetupWidgetExt(CapSense_BUTTON0_WDGT_ID, CapSense_BUTTON0_SNS0_ID);
修改为:
CapSense_CSDSetupWidgetExt(CapSense_BUTTON0_WDGT_ID, CapSense_BUTTON0_SNS0_ID);
CapSense_CSDSetupWidgetExt(CapSense_BUTTON1_WDGT_ID, CapSense_BUTTON1_SNS0_ID);
CapSense_CSDSetupWidgetExt(CapSense_BUTTON2_WDGT_ID, CapSense_BUTTON2_SNS0_ID);
for(;;)循环内部,原采集和判定一个按键改成三个按键,CapSense_IsWidgetActive判断按键是否按下:
case PROCESS_DATA:
//CapSense_ProcessAllWidgets();
/* Set next state to SLEEP */
currentState = SENSOR_SCAN;
capsense_value = 0x00;
/* process button widget */
CapSense_ProcessWidget(CapSense_BUTTON0_WDGT_ID); //处理BUTTON0
if (CapSense_IsWidgetActive(CapSense_BUTTON0_WDGT_ID)) //判断BUTTON0
capsense_value|=(0x01<<0);
else
capsense_value&=0xFE;
CapSense_ProcessWidget(CapSense_BUTTON1_WDGT_ID); //处理BUTTON1
if (CapSense_IsWidgetActive(CapSense_BUTTON1_WDGT_ID)) //判断BUTTON1
capsense_value|=(0x01<<1);
else
capsense_value&=0xFD;
CapSense_ProcessWidget(CapSense_BUTTON2_WDGT_ID); //处理BUTTON2
if (CapSense_IsWidgetActive(CapSense_BUTTON2_WDGT_ID)) //判断BUTTON2
capsense_value|=(0x01<<2);
else
capsense_value&=0xFB;
现象:
只能读取到BUTTON0的按键值,无法读取到BUTTON1和BUTTON2的按键值
分析:
如果在初始化时值CapSense_CSDSetupWidgetExt只调用一次,对应的按键值就可以采集到。调用三次,只能采集到第一个按键。
比如
CapSense_CSDSetupWidgetExt(CapSense_BUTTON0_WDGT_ID, CapSense_BUTTON0_SNS0_ID);
//CapSense_CSDSetupWidgetExt(CapSense_BUTTON1_WDGT_ID, CapSense_BUTTON1_SNS0_ID);
//CapSense_CSDSetupWidgetExt(CapSense_BUTTON2_WDGT_ID, CapSense_BUTTON2_SNS0_ID);
这样就可以采集到BUTTON0
//CapSense_CSDSetupWidgetExt(CapSense_BUTTON0_WDGT_ID, CapSense_BUTTON0_SNS0_ID);
CapSense_CSDSetupWidgetExt(CapSense_BUTTON1_WDGT_ID, CapSense_BUTTON1_SNS0_ID);
//CapSense_CSDSetupWidgetExt(CapSense_BUTTON2_WDGT_ID, CapSense_BUTTON2_SNS0_ID);
这样就可以采集到BUTTON1
//CapSense_CSDSetupWidgetExt(CapSense_BUTTON0_WDGT_ID, CapSense_BUTTON0_SNS0_ID);
//CapSense_CSDSetupWidgetExt(CapSense_BUTTON1_WDGT_ID, CapSense_BUTTON1_SNS0_ID);
CapSense_CSDSetupWidgetExt(CapSense_BUTTON2_WDGT_ID, CapSense_BUTTON2_SNS0_ID);
这样就可以采集到BUTTON2
CapSense_CSDSetupWidgetExt(CapSense_BUTTON0_WDGT_ID, CapSense_BUTTON0_SNS0_ID);
CapSense_CSDSetupWidgetExt(CapSense_BUTTON1_WDGT_ID, CapSense_BUTTON1_SNS0_ID);
CapSense_CSDSetupWidgetExt(CapSense_BUTTON2_WDGT_ID, CapSense_BUTTON2_SNS0_ID);
这样就可以采集到BUTTON0,BUTTON1和BUTTON2,无法采集到。
问题:
请问要采集三个按键要如果修改代码,谢谢!
Show Less
Hi,
This is a followup question to our previous question that was answered here: Solved: What version of SDK are we using? - Infineon Developer Community.
We have submitted our medical device to the FDA with all necessary documentation. Our device includes Cypress MCU PSOC4 with BLE (CYBLE-224110). The FDA sent us a request for information (RFI) .
We submitted that information to the FDA, and we got these questions back from the FDA regarding your PSOC4 SDK (which is considered here the OTS):
So this brings me to ask:
1. Could you share any information on the development methodologies of your PSOC4 SDK?
2. What are/were the V&V activities performed for your PSOC4 SDK?
3. If you were to terminate your support for the PSOC4 SDK, how could we assure continued maintenance and support for the PSOC4 SDK?
4. Do you have any ISO certificate, and could you share it with us?
Thanks.
Show Less