PSoC™ 5, 3 & 1 Forum Discussions
In my project, the programming succeeds only 1 time.
I get an error (102 - Failed to erase the flash) when I try to re-programming.
The device (CY8C3245PVI134) no longer programmed in any project.
I can not erase the Flash using a programmer (File -> ERasing All Flash).
What could be the cause, and is it possible to recover the chip?
I'm still getting familiar with PSoC 5LP. Hopefully this is a simple question that can be answered with a link to some document I should have read.
The project has a DMA transfer to an SPI Master component. This is a series of 8 bit writes on TX FIFO not full. The transfer normally works fine.
The problem starts when a Quadrature Decoder component is added. I also noticed the same problem with SPI slave, but will refer to the Quadrature decoder for this example. After the Quadrature Decoder is added, the DMA transfer bytes appear to be out of order. This is a result of adding the component, with no manual C code changes.
For example, a byte buffer with consecutive 0 through 15 was set up as the source. The following transfers were observed:
Good sequence:
0,1,2,3,4,5,6
Sequence after adding Quadrature Decoder component:
0,5,7,9,4,6,8
I don't know how these components could interact. Any ideas on where to start investigating will be appreciated.
Show LessDear All,
CY8CKIT-050 PSoC® 5LP Development Kit is based on CY8C5868---(67 MHz). Is there any other development kit which is based on CY8C5888---(80MHz)? (except CY8CKIT-059).
#include <project.h>
#include <ADXL345.h>
#include "math.h"
int main()
{
int st_speed=30; // m/s
int x_axis = 10; // in meter
float g = 9.807; // in m/s^2
void ADXL_Init();
CyGlobalIntEnable; /* Enable global interrupts. */
I2C_ADXL_Start();
calc_Angle_x = (1/2*asin(x_axis*g/st_speed*st_speed))*((180.0)/3.14);
for(;;)
{
why does calc_Angle_x return nan(0x8000000000000) and what nan means?
It supposed to return 3.129462438 degree
Show LessDoes Cypress, or anyone, offer a prototyping board (either breadboard or solder eyes) into which the PSoC eval boards can be plugged? It would be very convenient to be able to do some testing and programming on a Pioneer board, or just with the MiniProg, and then plug a module into a prototyping base for easy, full access to all pins and integration with the rest of the project under development.
Or am I just missing something here?
I mean, the capsense and LED devices on the Pioneer board are good to try for initial learning, but they take up a lot of the GPIO pins, and I don't see an easy way to disconnect them. Having jumpers to disable these items and just being able to prototype through the Arduino headers would be great, too.
Show LessHi,
I am using PSoC Designer 5.4 SP1 on windows 10 and I amgetting an error dialog "ilibw.exe has stopped working" when I try to generate/build the project.
The output tab shows the following information:
Starting MAKE...
creating project.mk
lib/adcinc_1.asm
lib/adcinc_1int.asm
lib/lcd_1.asm
lib/pga_1.asm
lib/psocconfig.asm
lib/psocconfigtbl.asm
make: *** [lib/libPSoc.a] Error 255
PDProject1 - 1 error(s) 0 warning(s) 02:57:29
You can find the project file attached to this thread. Can you please provide a solution?
hi every one i have a problem whit a memory eeprom , I have done work this memory : http://www.atmel.com/images/atmel-8535-seeprom-at25320b-640b-datasheet.pdf
agree to the application note : http://www.cypress.com/documentation/application-notes/an51234-getting-started-spi-psoc-1
the problem is that now I want to run this one and I can not write because apparently I can read
http://www.atmel.com/images/atmel-8832-seeprom-at25m02-datasheet.pdf
I do not know why
I am new to Cypress, trying to get a UDB I2C master to work. I have successfully fetched the device ID from my test I2c slave device, an ADXL345 accelerometer. However I have two problems:
1) Most of the time, the address that the I2C master puts on the bus right after the start bit is to address 1. With enough resets of the debugger, the I2C master will occasionally get the correct 0x53 address on the bus. When that happens, the slave responds correctly and data makes it into my buffer, and all return values are zero.
2) Even if the address was correct in #1, the final stop bit of the 2nd cycle (the I2C read) will hang on this line in the I2C_MasterSendStop function: while(I2C_WAIT_STOP_COMPLETE(I2C_CSR_REG)). I don't see the STOP bit on the scope either. If I put in a breakpoint before the function and then single step, I see the STOP condition on the scope and it completes.
For #1, what do I need to do to get the I2C Master ready to go to work on the correct address all of the time?
For #2, do I need to check a flag before I call on the I2C_MasterSendStop function?
Complete project attached. Code snippet from main follows:
Show Less
#include <project.h>
uint8 buffer[10];
uint8 results[20];
void ReadRegs(void)
{
uint8 i=0;
results[i++] = I2C_MasterClearStatus(); // This was added but didn't help
results[i++] = I2C_MasterSendStart( 0x53, 0 ); // start write
results[i++] = I2C_MasterWriteByte( 0x0 ); // Register 0
//results[i++] = I2C_MasterSendStop(); // Commented out, switched to Restart but didn't matter
results[i++] = I2C_MasterSendRestart( 0x53, 1 ); // Turnaround for next cycle
buffer[0] = I2C_MasterReadByte( 1 ); // Read 1 byte
results[i++] = I2C_MasterSendStop(); // stop - This never completes at full speed
while (1)
;
}
int main()
{
CyGlobalIntEnable; /* Enable global interrupts. */
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
I2C_Start();
ReadRegs();
}
Hello, I'm curious if there exists an I2C F-RAM component for the PSoC5 LP similar to the one for the PSoC4? I am using a Cypress FM24256 unit. If not I can always develop a driver from scratch using a I2C master component; however, it would be nice if that were already done .
With that in mind how much of the existing code on the psoc4 component is re-usable for the psoc5lp?
Thanks,
Show Less