PSoC™ 5, 3 & 1 Forum Discussions
text.format{('custom.tabs.no.results')}
I'm using a PSoC 5LP to control a PCA functional test fixture (a.k.a. bed-of-nails). An operator can open the lid of the tester at any time during the test. I've found that if the lid is opened at exactly the right time it will cause the I2C component to error out in several different ways and I can't recover. Sometimes it ends up at CyHalt or at one of the blocking statements (i.e. the 'while' loops) in the I2C auto-generated code.
I'm sure this is pretty basic knowledge but I could not find the answer: I need to modify a driver and I don't have enough flexibility with the small code sections that are user modifiable, so is there an easy way of shutting off code generation so that I can modify the driver code?
thanks
Doug
Show LessI have a Psoc5lp kit. I want to know how I can use the function of swv.
Greetings,
I keep on losing my ISR code wirtten inside CY_ISR(intoncmp_Interrupt) function in intoncmp.c file. After writing and saving it remains there but when i upload the code or open the file some other time , code vanishes automaticaly.
How can i resolve this issue?
Thanks
Show LessI have a PSoC5LP project (a scientific instrument measuring pH and temperature) that uses the U8Glib library to drive a oled screen. It uses newlib-nano (with the floating point formatting option. It uses snprintf liberally to format text to be used on the OLED. It also uses strcmp a few times to parse some of the commands coming from USB or BLE. The code seems to run fine most of the time and interfaces via UART with PRoC to do the USB stuff. So it is making liberal use of the heap memory, I suppose.
From time to time there seems to be a memory issue that is unpredictable- the pH and temperature values (both floats) stop reading correctly. The instrument continues to run with all of the interrupts acting properly as well as the communications via USB and UART/BLE. But the pH and temp values are no longer there. I have attached pictures of the display. Interestingly, there is not a consistent amount of time that leads to this issue- sometimes it runs fine for days, other times it fails within hours. I have both the stack and the heap set at 0x2000 (8kB) which should be plenty. I am baffled as to why this happens and why it is so unpredictable. My assumption is that it's a memory management issue.
Unfortunately this is a commercial project and I can't share the code. But has anyone had these kinds of issues and maybe have some insight? Could it be something to do with newlib nano? I have plenty of space in SRAM to not use the nano version. It is so sporadic that I don't even know how to debug the thing.
Thanks guys!
Jason
Show LessHello Everyone,
I have two signals, signal_a and signal_b, coming into my PSoC chip.
Now, I want to compare their phase and adjust the signal_b phase accordingly.
Does anybody have an idea? or any example project?
Looking forward for your reply
Awais
Show LessHello Everyone,
I tried to generate a sine wave using counter and DAC. But I am not getting the output. Can you please have a look on my program and help me out about the problem (s) in it?
Looking forward to your reply.
Best Regards
Awais
Show LessI need to implement the USBUART functionality for a project of mine and since I've never used it before I decided to try the USB_UART example project provided with psoc creator. I'm not sure what the program is supposed to be doing but I can not figure out step 4:
4. Install drivers for the device manually. In Windows 7, open "Device Manager", find the "USBUART" device in the "Other devices" branch of the tree. Open the context menu and select "Update Driver Software". Browse to USBUART_1_cdc.inf file from the project generated sources directory as a driver.
There is no branch labeled "Other devices" when psoc is plugged in so I am not sure where to update the drivers. I've also read about these drivers here http://www.cypress.com/?app=forum&id=2232&rID=89607 but I don't quite understand it. Where can I get those drivers and what does he mean when he says "the device is bound to CypressUsbAndBus.inf file"? Any help will be appreciated
Thanks!
Show LessHello everyone,
I have a square root, tonometric and many other functions in my program. They make my program slower. I heard about CORDIC functions, but I don't know how I can implement it. Can anybody assist or help me in it?
I would be very thankful to you.
Regards
Awais
Show Less