PSoC™ 4 Forum Discussions
I have the PSoC4 4100S MAX pioneer kit. I am able to flash new sample touch applications to it. However, when I flash a new app, the IDE Console window advises that the KitProg firmware is out of date, and to use the fw-loader tool to update it. In the fw-loader folder, I see a batch file called fw-loader.bat. Launching this brings up a command line type interface that doesn't seem related to updating FW. In the bin folder within the fw-loader folder, I see a fw-loader.exe. Launching this gives me a GUI where I appear to be able to load a new FW, but I don't know where to get the updated FW version ( 2.50.1383 according to the IDE). Can anyone point me to the FW location or tell me what I'm doing wrong?
Show LessHello
I always getting in the IntDefaultHandler if I activate the Timer Interrupt. But if i comment out the function "ModuleSetStatus(MODULE_STAT_COMM_ERROR); " in the Timer ISR it will work again.
I can not find my error in the code, can somebody help me please.
/******** Timer ISR************/
CY_ISR(timer_1_handler)
{
/*Timeout for Communication
Reset all Values to Default
*/
ModuleSetStatus(MODULE_STAT_COMM_ERROR);
Timer_1_WriteCounter(0);
/* Clear the terminal count interrupt */
TIMER_1_ISR_ClearPending();
Timer_1_ClearInterrupt(Timer_1_INTR_MASK_TC);
}
/************* After Line "uint8_t state = slave->fsmState" the programm goes to IntDefaultHandler ***********/
void ModuleSlaveFSM(ModuleSlave *slave){
static uint8_t status;
uint8_t state = slave->fsmState;
switch(slave->fsmState){
case SLAVE_IDLE:
I2C_Slave_1_I2CFwBlockReset();
I2C_Slave_1_Start();
slave->fsmState = SLAVE_START;
break;
case SLAVE_START:
break;
case SLAVE_STOP:
break;
case SLAVE_ERROR:
break;
}
}
Show Less
I've got a PSoC 4 project that reserves one row of flash for an emulated EEPROM. The project contains a launcher, a stack, and the app, if that matters. The final hex file that is produced, however, has zeroes in the EEPROM area, so I can't program the flash without nuking those contents.
The cyelftool command supports --ee_row_size and --ee_array command line options, which I would imagine reserve space for the EEPROM, and punch the necessary hole in the hex file, but the build isn't using them. What am I doing wrong? I don't see any setting, either in the Bootloadable or EEPROM options or in the build options, that would affect this. Just to be on the safe side, I used the exact names for things specified in the Em_EEPROM_V2_20 datasheet (i.e., EM_EEPROM_START_ADDRESS and .my_emulated_eeprom). The layout in the map file looks correct, but it's not leaving the opening in the hex file.
Show LessHi,
I'm using 4100S MAX PRONEER KIT. I am facing a problem related to access external SPI Flash memory by using HAL API. I've attached my main.c as well.
1. When read the flash's ID,
----
uint8_t receive_data[10];
"cyhal_spi_transfer(&mSPI, transmit_read_id, 1u, receive_data, 4u, 0xFF)"
----
Sending the read id command (0x9F), I got the correct return value, 0xc2, 0x20, 0x16 as below waveform.
But when I print receive_data array, I noticed that the return value 0xc2, 0x20, 0x16 were in array of receive_data[1][2][3], why the value 0xc2, 0x20, 0x16 NOT in the receive_data[0][1][2]?
Any help will be much appreciated. Thanks a lot in advance.
Show LessHi,
I currently use CY8CKIT-041S-MAX board. would like use PWM HAL sample.
But I got a set duty error.
I've attached main.c and log below
****************** HAL: PWM square wave *****************
=====================================================
FAIL: API cyhal_pwm_set_duty_cycle failed with error code
Error Code: 0x04021200
=====================================================
I didn't found the issue on PSOC61.
Please help me with that.
Thank you!
BRs
Show Less
I am using a PSoC 4100S Max device.
I would like to upgrade over UART using the Bootloader, similar to using PSoC Creator.
Do you have a DFU example project for PSoC 4100S Max using ModusToolbox?
I posted this question previously, but unfortunately was faced with a pressing health issue and was not able to check for any replies... cannot find the initial inquiry, so please forgive me... I am trying again.
I have a project where I successfully place our system into Hibernation, expecting to be able to wake it up by applying a voltage on one of the GPIO pins. Try as I may, I have not been able to make the wake-up functional.
I placed the ISR component in the Top Level Design and connected it to the intended pin. I followed the code examples available from the File pull-down menu... The SW generated header and code files for the ISR are present and seem correct.
Are there pin selection or configuration restrictions that I am not aware of? Is there anything else that I may not understand or be aware of?
If not, would someone be kind enough to paste an example of a working GPIO wake-up from Hibernation that might be different or more inclusive than the examples available from the menu... I would be most grateful!
Forgive me, but I cannot copy and post the project code I am using... too large, spread out, confidential, etc.
Show LessHello....
I am Using CY8C4245AXI-483 as a Master For I2C & SPI Communication I get below error during compilation,
FFB and IO placement failed: Failed to find a valid placement for \SPIM:SCB\.
When I Configure I2C & SPI separately there is no error but when I configure I2C & SPI at a time I get above error.
Please check attached configuration image for your reference.
Thanks & Regards
AJ
Show LessHi, Community,
We would like to know how to implement the capsense sensor gang in software.
AN90114 - PSoC™ 4000 Family Low-Power System Design Techniques appears to be obsolete.
Is there a reference document somewhere?
Best Regards,
Chihiro Tatebayashi / NEXTY
Show Less