PSoC™ 5, 3 & 1 Forum Discussions
I get this error when trying to upload a hex file to my board
FAILED! Hex File parsing failure. PSoC Programmer does not support current type of hex file
At the moment not sure which hex file I need to upload. How do I tell which is the one I need to upload with the PsOC Programmer?
Show LessDear all
How to program the SAR ADC with full speed of 1 MSPS. I am using CY8CKIT-059 kit. I am getting the error while configuration with 1MSPS of 18MHz colck. Please help.
Show LessHi All,
I made a PSOC project that contains components from PSOC (Mixer, Amp, SAR ADC, DAC, PWM, Shift register and SPI interface). Some output components are also used (INAmp, Buffer and some filter stuff).
I let the PSOC to route freely and then, I tried to change the pins and it works fine.
Now, when I built the project. It builts successfully (Can see attached Pic).
I just wanted to know that, it is enough or, is there any other way of confirming it?
Looking forward to your suggestions.
maknight
Show LessI wanted to re-create the blink example using the Cortex core only, no digital or analog modules. So far this is what I got but I still can't see the LED (port 2 pin2) blinking. What am I missing?
#include <project.h>
#include <cypins.h>
#include <cydevice_trm.h>
#define CYREG_PRT2_PC1 0x40005011u //define pin 2.2
#define CyPins_SetPin(pinPC) ( *(reg8 *)(pinPC) |= CY_PINS_PC_DATAOUT) //set pin
#define CyPins_ClearPin(pinPC) ( *(reg8 *)(pinPC) &= ((uint8)(~CY_PINS_PC_DATAOUT))) //clear pin
int main()
{
while(0)
{
CyPins_SetPin(CYREG_PRT2_PC1);
CyDelay(1000);
CyPins_ClearPin(CYREG_PRT2_PC1);
CyDelay(1000);
}
return(1);
}
I recently had difficulties programming my CY8CKIT-050 using either the on-board DVK05 programmer or a separate MiniProg3 programmer inside a virtual Windows 7 session under Paralles (MacOS 10.9.4, Windows 7 SP1).
Specifically, I could successfully program my device, but subsequent attempts to program would give an "unknown error -100." If I unplugged the programmer and plugged it back in, I could program once again but any further attempts would give the same error.
The problem existed in both Parallels 9 and VMWare Fusion 6, but when I booted into Windows 7 natively (Bootcamp) the problem went away. It seems Cypress uses some non-standard USB tricks in their programmers that confuse the virtualized USB drivers. Although I have not found a workaround for Parallels, there is a workaround for VMWare Fusion. The specific line that I added to my vmx file was:
usb.quirks.device0 = "0x04b4:0xf131 skip-reset, skip-refresh, skip-setconfig"
This resolved the issue immediately, unfortunately I'm now stuck using VMWare instead of Parallels. At least I'm not stuck in native mode, though!
Hope this helps someone else. I struggled for weeks with this issue and even involved FAEs from Cypress on the matter, to no avail.
Regards,
Mike
Hi,
Can I generate a 16 MHz clock on an output GPIO pin on cy8ckit-059 kit?
I am able to generate 24 MHz and integer divided clocks of 24 MHz (for example 12 MHz), but not 16 MHz. Giving a frequency value of 16 MHz still generates a 12 MHz clock.
Regards,
Vishnu
Show LessHave a few questions about PSoC Designer.
I'm just getting started with cypress.
I have a CY3210-PSoCEVal kit.
I'm trying to load a open source program to the chip.
I have installed that to the demo board and am trying to compile and load the open source project to the chip.
I go to tools options compiler and select imagecraft. Problem is after that I go back to the build tab and the Compile button is grayed out.
Also I'm using PSoC designer 5.3 per the open source instructions.
Ive been looking for the step by step guild to compiling and loading to the chip but haven't found it. Can any give me step by step instructions or point me to a video or instructions so I can make this happen?
Thanks so much!
Show LessI was reading some of the examples and thought I could make some quick progress by running a quick test but I seemed to have failed at step one.
I added an EZI2C Slave module to my project and then copied the following code into my main.c:
/* Slave address of the EZI2C */
#define EZI2C_SLAVE_ADDR (0x08u)
#define BUFFER_SIZE (0x04u)
#define BUFFER_RW_AREA_SIZE (0x02u)/* Denotes the offset inside the EZI2C buffer */
#define SLAVE_ADDR_SIZE (0x01u)/* EZI2C buffer */
uint8 ezi2cBuffer[BUFFER_SIZE];/* I2C buffer with the data read from EZI2C */
uint8 i2cBufferRead[BUFFER_SIZE];/* I2C buffer with the data to be written to EZI2C */
uint8 i2cBufferWrite[SLAVE_ADDR_SIZE + BUFFER_SIZE];int main()
{...
/* Start EZI2C */
EZI2C_Start();
/* Enable global interrupts */
CyGlobalIntEnable;
/* Initialize EZI2C buffer's read only data */
ezi2cBuffer[BUFFER_RW_AREA_SIZE ] = 0xAAu;
ezi2cBuffer[BUFFER_RW_AREA_SIZE + 1u] = 0xBBu;EZI2C_SetBuffer1(BUFFER_SIZE, BUFFER_RW_AREA_SIZE, (void *) ezi2cBuffer);
I thought this would be enough to see the 5LP on the I2C bus and even read the initial data but the 5LP doesn't show up on the bus. I have 2 other devices on the board that do show up and I can read from them so the I2C bus seems to be working.
Is there something that I'm missing here?
Thanks,
George
Show LessI’m working on PSoC 5 kit. I want to sample my signal at a frequency of 360Hz with a resolution of 12bits. If I’m using delta-sigma ADC with a resolution of 12bits I can acquire a minimum of 4000 samples per second. Is there any alternative to reduce the number of samples?
Show LessHi freinds;
I want to running adxl345 by psoc5 but i cant runing in i2c or spi peripheral.older topic is not useful for me.
Anyone have any example code for interfacing a 5LP to use correct programing for relationship between master and slave in i2c or spi , or tested psoc creator file for adxl345?
Roshandel
Show Less