PSoC™ 4 Forum Discussions
I need to add a good amount of code but the BLE stack is occupying almost 69% of flash and SRAM use is nearing 98%. For SRAM, I found http://www.cypress.com/blog/psoc-creator-news-and-information/controlling-sram-usage-psoc-applications. But I am still looking for BLE flash reduction. Does any way exists? Thanks in advance.
I just discovered that Cypress has a Thermistor Calculator Component that I would like to use.
How do I add this to my Component Catalog so I can add it to my project?
I'm assuming it's allowed with BLE PRoC, since it's a software component, but maybe not since I can't get it as a component in the catalog.
I have a more theoretical question regarding CapSense (implemented using a PSoC4 BLE device):
My application uses CapSense generic sensors to measure the change of a liquid level within a cup (from the outside). The signal is quite weak, but after tuning a decent signal can be observed when the cup is filled. BUT: the raw count value constantly decreases, kind of drifts down significantly. Can you give me a hint why this drifting occurs ? I am perfectly OK with it to happen, but need to know why.
Please note the attached screenshot from the tuner GUI, I added black lines to make the decline visible. The sensor electrodes are made from flexible PCB, following the CapSense guidelines.
Thank you for your help!Show Less
I am a newbie, working on PSoC 4 to communicate a sensor via SPI.
After reading and trying a lot of documents and example, I still cannot make one SPI example work. Without LCD, how could I test an SPI example?
To read register of my sensor, I need to select and deselect; write one byte address to MOSI, get one dumb byte from MISO, and the write one byte 0x00 to MOSI, the get my data back.
I set a GPIO as chip select pin, and connect MOSI to 3, MISO to 3, SCK to 0; and wrote the corresponding firmware, however cannot get nothing.
Could anyone help me and have a look?
Thank you very much!Show Less
for my thesis I do need a clean definition of PSoC devices, apart from company slang. Which I could not really find in the web.
Is it correct to roughly define PSoCs as a combination of a (more or less standard) microcontroller with attached FPGA (digital blocks) and FPAA (analog blocks), and sometimes further peripherals (BLE), integrated in one package and functional unit?
I am trying to work out the power saving methodology for a HID device.
The power saving application note states that its possible to enter a low power mode while still maintaining the connection. It does not explain how to do this.
Ideally, the device would want to have an active mode, slow poll mode, idle mode and stop mode.
The HID Mouse RDK example does have these states so seems to be an ideal model. The first problem with this example is there are no comments at all in the main code body, so its quite difficult to work out whats going on.
In all states except stop, the CPU sleep is the same ie:
if(CyBle_GetBleSsState() == CYBLE_BLESS_STATE_ECO_ON ||
CyBle_GetBleSsState() == CYBLE_BLESS_STATE_DEEPSLEEP)
But this is (I think) waking the CPU every 10ms connection interval so there does not appear to be much difference between all the 3 states.
The questions I have are:
Is there another BLE mode which can be used which maintains the connection but consumes less power (a longer connection interval)?
Does the CPU have to be woken periodically when the connection is maintained (assuming no user task pending)?
In the code before CySysPmDeepSleep(); there is a CyGlobalIntDisable. How is the CPU even waking at all if interrupts are disabled. It definitely does though. Does this mean the BLE is waking it at the connection interval even if interrupts are disabled?
I am getting approx 4 mA of current in all modes but that might be because I am only using a standard multimeter, maybe this is reading peaks only.
How can print float valves and also square and square root functions.is there any library to get those functions to work.Show Less
I am developing, a new SW, i have been trying to put my PSOC into DEEPSLEEP during more than 2sec and it is imposible, why?¿ becouse the only way to do this, is with the WDT, i have tried to use Timers, but it is imposible, because you only can set the timer clock to HFCLK, and when you put PSOC into DEEPSLEEP this clock is shutdown.
And my question, are there any other way to do this? i want to SLEEP (DEEPSLEEP) my PSOC during 1 hour more or less....
Thanks for all