PSoC™ 5, 3 & 1 Forum Discussions
Hi all,
I'm looking for some memory optimization.
at one stage I build my project and it shows my memory mapping as
Program Size: data=22.0 xdata=3506 const=5803 code=16419
ERROR: L107: ADDRESS SPACE OVERFLOW CONST ?CO?MAIN 0000BEH
ERROR: L120: CONTENT BELONGS TO ERRONEOUS SEGMENT ?CO?MAIN
Now if I remove few lines from my code it reduces 18 BYTES as
Program Size: data=22.0 xdata=3506 const=5803 code=16401
Flash used: 22204 of 32768 bytes (67.8 %).
SRAM used: 3506 of 4096 bytes (85.6 %).
It means no change in memory other than code memory so why the error is overflow from const memory.
and if we consider about code memory then yet 10546 BYTES are free to use.
Is there any relation with no. of components used in topdesign and the flash memory we can use.
Hi there,
I have built an envelope extraction processor with PSOC 5LP. Overall it is working, but the rectification is not a full rectification, and the envelope is usable but not very neat.
The design was a rectifier followed by a low pass filter, as shown in the attachment.
The rectifier was based on an old technical note. Found it in EE times archive. Both on-board voltages were set to 5V. The comparator was comparing the input signal to VDD/2 (reference signal) which yield either a positve or a negative unity gain depending on the level of input signal as compared to that of the reference. A mixer they multiply the output of comparator to the input signal, so the negative waveforms are automatically assigned a gain of -1, and flip to the positive side.
The reference of VDD/2 was made up of a op-amp based follower.
The low-pass filter was a rather simple design based on an interanl op-amp.
The main.c only include start instructions for the components involved.
The output waveform of the rectifier was as if the negative side was not flipping over as the nice chart shown in the technical note. Rather, the negatives were still negatives, only the amplitude was a lot smaller. I would post the shape as soon as my oscilliscope is functioning again.
My questions are:
1. Is the old rectifier design supposed to work on PSOC 5LP? Is there anything altogether wrong with the way I am doing it?
2. The note said the output of comparator would be -1 if the input is lower than the reference. May it be zero instead? Is there a parameter of the comp block for this?
3. Are there alternative ways of getting the envelope with PSOC 5LP?
Thanks!
Show LessHi there,
I have built an envelope extraction processor with PSOC 5LP. Overall it is working, but the rectification is not a full rectification, and the envelope is usable but not very neat.
The design was a rectifier followed by a low pass filter, as shown in the attachment.
The rectifier was based on an old technical note. Found it in EE times archive. Both on-board voltages were set to 5V. The comparator was comparing the input signal to VDD/2 (reference signal) which yield either a positve or a negative unity gain depending on the level of input signal as compared to that of the reference. A mixer they multiply the output of comparator to the input signal, so the negative waveforms are automatically assigned a gain of -1, and flip to the positive side.
The reference of VDD/2 was made up of a op-amp based follower.
The low-pass filter was a rather simple design based on an interanl op-amp.
The main.c only include start instructions for the components involved.
The output waveform of the rectifier was as if the negative side was not flipping over as the nice chart shown in the technical note. Rather, the negatives were still negatives, only the amplitude was a lot smaller. I would post the shape as soon as my oscilliscope is functioning again.
My questions are:
1. Is the old rectifier design supposed to work on PSOC 5LP? Is there anything altogether wrong with the way I am doing it?
2. The note said the output of comparator would be -1 if the input is lower than the reference. May it be zero instead? Is there a parameter of the comp block for this?
3. Are there alternative ways of getting the envelope with PSOC 5LP?
Thanks!
Show LessHello everyone!
I am trying to use the MiniProg3 to program my PSoC3, CY8C3245PVI-134. I have the programmer settings set to 5-pin SWD programming at 3.3V, Auto-Dectection on, and Power cycle mode with a clock speed of 1.6MHz. My programmer software is the most recent version. I have had nothing but problems.
First off, when told to program the chip, the Auto-detect doesn't work so I have to manually set the device chip. Even after this, it never powers up the device, fails, and most times disconnects from the computer, causing the programmer software to occasionally crash. I've even tried programming through the Creator IDE, same thing happens.
My next try was to attempt the Reset programming mode and having the device externally powered, I have a little more success with that. Occasionally the Auto-detect works, and it will erase the device and attempt to program the flash, but everytime it is followed by this Failure message:
FAILED! SWD respond packet contains Failed status!
Anyone have any idea what is going on? I've tried contacting Tech Support via both email and phone and they are just too slow to respond. I'm going to try to program with the JTAG next.
Ah, one more thing. I went back to a PSoC 1 device that I know can be programmed with a MiniProg1, when attempting to program it with the MiniProg3, which claims to be able to do so, I get the same disconnection or just failure to program problems, thinking it just might be a bad programmer I bought another one, but all my problems persist. Please help!
Show LessDose anybody have the detail cases that sending data from components to sram?Now i want to send the 100 datas from DFB output register to sram.But i wonder how to set the destination(L16).I think i can use the fuction malloc(),just like
int* dst;
dst=(int*)malloc(100);
then, the destination(L16) is LO16((uint32)dst),isn't it?
but how can i send the datas to the static sram.
Maybe just transform the address like int* dst =0x20008000, is right?
Show Less#1
How can I program the CY8C58AXI-LP035 TQFP100 on my own board design. When I check the PSoC5 DK (see annexed file) I cannot found the source for the signal TDI at the FX2LP Programmer (see related Box).
#2
How can I effective programm two or more CY8C58AXI-LP035 devices at the same board?
Answer to klaus.busse@googlemail.com would help too.
Show LessHello
I want to transmit an audio sign from a PSOC to another. I think i do all assignment related to the datsheets, but on the first Psoc output, i don't find the result expected
Hello, I am trying to make a low power impedance meter by using 5LP chip.
Since my system's energy source is solar cell, I have to reduce the energy consumption as much as I can.
So I decided to use sleep mode.
My system should be in sleep mode until an external push button is pushed, then do some things(measuring impedance), and finally sleeps again.
I've searched many documents, but I could find that I have to use CyPmSleep() API.
Any help will be greatly appreciated.
Thanks.
Show LessHello all,
I am looking for imaging sensors or camera packages that work with the PSoC 5. Ideally i want 3-4 cameras, they can be 1-2MP. Does Cyprus sell these? Im not aware of the bandwidth requirements of this application or if the PSoC 5 will handle 3-4 different channels. Can these cameras use the UART or SPI interfaces?
Thanks for any response!
Brett
Show Less