PSoC™ 5, 3 & 1 Forum Discussions
I2C_MasterReadBuf(); does not shoot error, when the slave addressed specified in API was not present on the bus.
the i2c status returned by the api is '0'.
Show LessHi - we're developing on the -059 stick DK, with the MCU CY8C5888.
We're trying to swizzle the bits on GPIO port P3, relative to the data bits on GraphLCDIntf component, working in 8-bit 8080A interface mode. Note that this needs bidirectional IO, with OE pins per port pin.
We get the strange error: p3[2] this pin does not support SIO
AFAIK we're not doing anything to indicate that we need SIO on this pin.
Any help would be greatly appreciated!
Thanks,
Larry
Show LessI'm using a USBUART component in my project and I'm wondering if there's an interrupt I can get a callback from that can tell me the configuration changed. Or do I really have to continuously poll USBUART_IsConfigurationChanged()?
Show LessHi there, I am reading voltage from the potensiometer and feed it to adc SAR (12 bit res) and adc Delsig (20 bit res).
- When i compere the value to the multi meter i see that there is deviation of 0.2V (im using FLUKE 287), i am not sure if i used the API's correctly, or if i made other mistake.
#include "project.h"
unsigned a=0; // a is a global int
unsigned b=0; // a is a global int
int main(void)
{
CyGlobalIntEnable; /* Enable global interrupts. */
LCD_Start();
ADC_SAR_Start();
ADC_DS_Start();
ADC_DS_StartConvert();
ADC_SAR_StartConvert();
LCD_Position(0u, 0u);
LCD_PrintString("V SAR:");
LCD_Position(1u, 0u);
LCD_PrintString("V DS:");
for(;;)
{
LCD_Position(0u, 13u);
LCD_PrintString("mV");
LCD_Position(1u, 13u);
LCD_PrintString("mV");
if(ADC_SAR_IsEndConversion(ADC_SAR_RETURN_STATUS)) // wait for the conversion to end
{
a = ADC_SAR_CountsTo_mVolts(ADC_SAR_GetResult16());
LCD_Position(0u, 8u);
LCD_PrintNumber(a);
}
if(ADC_DS_IsEndConversion(ADC_DS_RETURN_STATUS)) // wait for the conversion to end
{
b = ADC_DS_CountsTo_mVolts(ADC_DS_GetResult32());
LCD_Position(1u, 6u);
LCD_PrintNumber(b);
}
}
}
thank you,
Michael
Show LessHi,
only get info that the flash total size is 256KB and the row/block size is 256Byte,
what's the size for array ?
the write unit is in row ?
thanks.
Show LessHi everybody . I am using psoc5lp in my project and using gsm(quectel M95) in my design board.Now my question is a bout update firmware of psoc5 sing GSM on network.How i can do it?
Is there anybody to give me solution?
I dont know how can i start to do this.
thanks for attention...
Show LessFollowing my request for support with problems re-programming a PSoC 5 device (CY8C5888) from within the application (see Re-program from within application) I have discovered that what I had marked as the correct answer (the introduction of more delay before starting the bootloader program) does not fix the problem.
As mentioned in my previous discussion my bootloader is based closely on the Bootloader Host utility in PSoc Creator.
If I run my program in Debug mode then programming is successful. However running it in Release mode programming fails.
I have compared the USB transactions for the PSoC Creator bootloader, my bootloader in Debug mode and my bootloader in Release mode. I have filtered out the Endpoint0 transactions to show only the Endpoint 1 and 2 data transfers.
All three start with:
OUT transaction 6 1 ACK FS 64 bytes (01 38 00 00 C7 FF 17 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00)
IN transaction 6 2 ACK FS 64 bytes (01 00 08 00 69 10 16 2E 00 3C 01 01 FC FE 17 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00)
which I understand to be the command to enter the bootloader.
This is followed by:
OUT transaction 6 1 ACK FS 64 bytes (01 33 01 00 00 CB FF 17 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00)
OUT transaction 6 1 ACK FS 64 bytes (01 33 01 00 00 CB FF 17 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00)
which is not present in the PSoC creator version. I understand this to be the command to get info about the app status which according to comments in the header file is only supported in a multi-app bootloader - this despite my program calling Bootloader_Utils.CyBtldr_Program() with appID = 1
Both PSoc Creator and my debug program continue with:
OUT transaction 6 1 ACK FS 64 bytes (01 32 01 00 00 CC FF 17 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00)
IN transaction 6 2 ACK FS 64 bytes (01 00 04 00 2C 00 FF 00 D0 FE 17 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00) (Get number of Flash Rows in target device)
The both then continue to write data to the device.
However, in Release mode of my program the Get Info command is immediately followed with:
OUT transaction 6 1 ACK FS 64 bytes (01 3B 00 00 C4 FF 17 17 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00) - Exit Bootloader, with no response. No further USB transactions take place.
Suspecting the problem may be due to program optimisation I have set the compilation mode of the Bootloader_Utils.dll to no optimisation, but this makes no difference.
Can anyone shed ny light on what the problem is, and provide a solution
Show Less