PSoC™ 5, 3 & 1 Forum Discussions
Hi !
Hope all are doing good !!
Please help me in opening the PSoC3 Eagle file..While opening the file it is showing an error
Have a Nice Day !!
Show LessHi,
I'm using CY8CKIT-059 separated in its two parts (i) Kitprog and (ii) Target device, booth connected by 5 wires with the Program / Debug Header J 7 J3 . Programming and debugging worked fine for a cupple of days, but suddenly an (hardware ?) error occurs. The Kitprog is no longer listed in the Select debug target window of PSoC Creator. It is also not listed in Programmer V 3.24 and also not in Windows device manager .
Connect USB cable with SW3 button pressed results in green LED 3 blinking, but there is no USB- Serial entry in the Bootloader Host. Is there is reliable procedure to restore factory settings *.hex file in the Kitprog under these circumstances ?
A second Kitprog module works well as programmer and degugger for the same separate target device board and is also visible as KitProg in Windows device manager.
Thanks
Show LessPlease teach me how to transmit data to external 16 bit D/AC (AD5696, Analog Devices) by using I2C master in PSoC 5LP. I programmed C firmware refer to Sample Code "DelSig_I2CM" in PSoC creator, not only D/AC didn't work , but also SDA and SCL signal have been seen using oscilloscope.
-------------------------------------------------------------------------------------------
/* Parameters used:
* I2C Master
* Implementation Fixed function
* Data rate 400kbps
* SDA SCL pin config Open drain, drives low
* Pull-up resistors 1.8kΩ each
*
* Delta Sigma ADC
* Resolution 12 bits
* Conversion Rate 1000000 SPS
* Input mode Single ended
*/
#include <project.h>
#define I2C_SLAVE_ADDRESS (12u)
#define WR_BUFFER_SIZE (2u)
uint8 X_IN = 0u;
uint8 temp = 0u;
uint8 sample_segment[WR_BUFFER_SIZE];
uint16 result[3] = {0u};
int main(void)
{
ADC_SAR_IN_Start();
ADC_SAR_IN_StartConvert();
I2CM_Start();
CyGlobalIntEnable;
for(;;)
{
ADC_SAR_IN_IsEndConversion(ADC_SAR_IN_WAIT_FOR_RESULT);
result[X_IN] = ADC_SAR_IN_GetResult16();
sample_segment[0] = result[X_IN] >> 8u & 0x00FFu;
sample_segment[1] = result[X_IN] & 0x00FFu;
do
{
temp = I2CM_MasterWriteBuf(I2C_SLAVE_ADDRESS, (uint8 *)sample_segment, WR_BUFFER_SIZE, I2CM_MODE_COMPLETE_XFER);
}
while(temp != I2CM_MSTR_NO_ERROR);
while(I2CM_MasterStatus() & I2CM_MSTAT_XFER_INP);
temp = I2CM_MasterClearStatus();
}
}
Hi,
I am currently developing a system in which a PSoC5 talks to a PC through EtherCAT, using the ET1200 EtherCAT ASIC.
Talking to the EtherCAT chip is fairly complex, and I don't want to put this functionality into the bootloader. I would prefer to only have this functionality in the firmware. Therefore, in order to bootload new firmware, I am considering the following process:
- The host sends the new firmware over EtherCAT, 8 bytes at a time (that's all the available space we have in our packet).
- The currently running FW writes the new firmware into the unused FLASH.
- Once all the new FW is written, it verifies it, and then resets into bootloader mode.
- The bootloader then copies the new FW from FLASH into the correct position, overwriting the old firmware.
- The bootloader resets to the new firmware.
As far as I can tell, none of the use cases in the document Bootloader_v1_50.pdf are appropriate to my particular process.
To implement the copying process, I have selected "Custom Interface" in the configuration of the Bootloader Component. My implementation of the custom interface has the CyBtldrCommRead() function read the new FW from FLASH, 256 bytes at a time, and give it to the Bootloader Component. Essentially, by code is acting like a Bootloader Host, controlling the Bootloader Component.
Does this sound like a sensible way to do this?
Is there a function in the Bootloader component to simply copy the firmware from the unused FLASH into the correct location? I notice that there is a "Copier" available, but only to the Launcher-Combination use case.
Many thanks
Hugo
Show LessI have a project that needs a specific logic. The standard user modules can't do what I want.
I need to build a custom user module from scrath, but there's no knowledge material about this. Could someone help regarding this subject?
Thanks.
Show LessHi. I have the ppcli working as I expect it to. Calling it via a dos batch file and using the runfile command. My questions is... How do I get the final programming result exported out of the ppcli shell into the dos world so I can determine if it was successful in it's attempt to program the device? I have looked through the "psoc_programmer_cli.pdf" and did not find anything that looked like it would perform this function. Any help would be appreciated.
Show LessWe have a PSoC5 MCU with USBUART (CDC) enabled.
Tested that PSoC can talk to PC and vice versa. We have a process on the PC that listens on its USB port and can receive everything the PSoC sends. Problem is, the PSoC doesn't always get data from the PC. We had to send multiple times and one of those times, it would get it.
In our main.c, we start and init USBUART. The code basically has 2 functions: poll for data from PC and do something else. In the PC polling function, we have
if (0u != USBUART_DataIsReady()){
// process data
}
I assume when the PC sends the data, the USBUART_DataIsReady() API should return true, but in this case, not all the time.
Show LessHello community,
I am trying to store my measured data to a sd card. I am using PSoC 5lp. For the storage purposes I checked the emfile example project. It is working, but there they do it this way:
.....
FS_Write(pFile, "0123456789", 10u)
So they write 0123456789 into a file. It is working, but how do I manage to store variables. I want to store measured data and currently I have no idea how to do it.
Thanks in advance for helpful comments.
Alex
Show LessHi,
I recently discovered PSOC after playing with arduino for the past 6 months or so. I'm JUST a hobbiest and have NO formal training in anything like this. I have some basic questions if someone can help me. I want to debounce 5 buttons and have each button do it's own thing. They are N.O. buttons connected to ground. I made 2 pictures to see which is the correct way to do it. I couldn't figure out if I could use 1 debounce routine for all 5 buttons or had to have 5 separate ones. I was also unsure of what Hz or MHz etc to set the clock and reading a datasheet is still mostly Greek to me. 😞 Which way should i do it based on these pictures?
Show Less