PSoC™ 4 Forum Discussions
Hi! How temperature and humidity sensor can be enabled on energy harvesting motherboard S6SAE101A00SA1002, if the process in Tera Term just stops on "UART Bootloader starting. It will take 10s." So, the device can't be turned into command mode. Any ideas how to fix it?
Show LessHello! I am trying to implement an electric brake for a bldc motor. I'm using the BLDC motor kit (037 EV) as a prototype. The idea is control the brake intensity and not instantaneously stop the motor. Any tips on how implement it?
Show LessHi Sir,
请问下在使用CY8C4248LQI-BL583进行PCB设计时,触摸区域露铜效果好还是盖一层绿油效果好?
谢谢。
Hi Sir,
When using CY8C4248QI-BL583 for PCB design, is it better to expose copper in the touch area or cover it with green oil?
thank you
Show Lesshttp://www.cypress.com/documentation/application-notes/an92239-proximity-sensing-capsense discusses an Advanced Low Pass filter, ALP and this filter was suggested to me by a Cypress FAE a few weeks ago. I tried to insert this into my project and realized this ALP library uses the older API. I need to use the newer CapSense v5.0 and the ALP library is provided as a library only so I don't get source code (and thus I can't fix the 17 references to the old API that the linker detects in the library).
@Cypress or anyone else, is there a version of the ALP library that has been updated to the new CapSense API?
Or maybe another question is, is there some other library that is similar to the ALP thus making ALP obsolete, ie why has it not been updated? That kind of filtering and thresholding function is crucial to good performance in proximity sensors I would think. My application has the same needs, filter out noise to get a good SNR and then threshold the signal to get a response.
Thank you in advance!
Bryan Hunt
Show LessWe are using Upgradable OTA Stack mode with 3 projects (Launcher, BLE Stack, BLE application) on the CYBLE222014.
1. When we build BLE Stack the image size is always around 128 kB. For debugging purposes I had to add
Uart component and then the image size was bigger than 128kB:
Flash used: 199237 of 262144 bytes (76,0%). Bootloader: 132352 bytes. Application: 66629 bytes.
Metadata: 256 bytes. SRAM used: 16828 of 32768 bytes (51,4%). Stack: 1536 bytes. Heap: 9472 bytes.
Strangely also FW update was working which is confusing me as from the Upgradable OTA documentation the
256 kB Flash is split into 2 parts so that the BLE stack should be less or equal than 128kB. Am I correct?
And if yes why does the PSoC Creator 4.2 not give any warning? Would there be enough space for later
BLE stack updates (like going to new BLE standard version)?
2. As I see Bonding information is stored in the section "Checksum exclude" which is deleted each time a
FW OTA upgrade is performed.
In the files "ota_mandatory.c/ota_optional.c" method "AfterImageUpdate()" I have disabled the clearing of
the bonding information. And this is working fine for the BLE app, but saldy not for the BLE bootloader.
I am still investigating why for the BLE bootloader this is not working.
I assume this approach is ok as section "Checksum exclude" is in our control. Also from the documentation
its stated that this section is not overwritten when we perform OTA FW upgrade.
Why this approach is not working on the BLE bootloader? I have checked the Laucher and its clearing only the
metadata section. Also the Loader in the BLE stack does not seems to do anything with this section.
Just to mention that I am using CySmart for all this testing. Could the CySmart be involved in this?
And another idea or question. For the moment we have separata BLE profiles and bonding information. Could
I at first bonding with the BLE app copy the bonding information to the BLE stack section "Checksum exclude"?
Can the BLE App access the BLE Stack section "Checksum exclude" or event better, can BLE App and BLE Stack
use only one, the same section "Checksum exclude"?
3. When performing the FW OTA update using the CySmart v1.3 on the Android mobile phone and using the option
"Application and Stack Upgrade (Combined Files)" we have some problems
to perform OTA FW update when the BLE FW image is build using the ARM GCC 5.4-2016-q2-update and
Compiler->Optimization->Optimization Level set to Size or High. CySmart always responds with error:
"Firmware update cancelled Error: CYRET_ERR_ROW"
HI,
I have a done a simply PSOC 4 project for CY8C4025LQI-S411 chip to communicate by I2C with one STM32F4.
The STM32F4 is the master and CY8C4025LQI-S411 the slave.
I have used I2C bloc and set the adresse, the clock speed and the slave mode.
I just send a write request from STM32 to CY8C4025LQI-S411 but in debug I never enter in the generated I2C interrupt which manage all ACk ,NACK and status.
This is the frame that I send and like you can see we didn't have ACK.
This frame arrive until the sda and scl pin that I used which are P0[5] sda and P0[4] scl
I didn't understand why I never enter in "CY_ISR(XX_I2C_ISR)" could you explain me why ?
Thank you in advance.
Show LessHi,
I'm working with BLE222014 and a miniprog3.
I would like to debug a simple program by printing out the value read from ADC to the Miniprog3 as in the same way you can do it with the terminal in Arduino. Is this possible? Sorry if my question is too basic but I'm new wit PSOC and couldn't find an answer online.
Thanks
Show LessHello every one!
It's some days I'm trying to exit Psoc4 (CYBLE-022001-00 module) DEEP SLEEP using a GPIO logic signal (I've tried setting rising edge, falling, derivate): no way to trigger "CY_ISR(GPIO_ISR) Irq function" !
By the use of a scope I see the device enters DEEP SLEEP, exits at Advertising period, but no way to see it exiting (isr_1) when P3.7 GPIO moves.
Some releases ago I also saw Psoc4 current rising from DEEP SLEEP (to about 10mA) whenever GPIO pin was moving. Now (I really don't know what I've done) even current does not rise when GPIO moves!
Could it be this pin does make CPU exiting DEEP SLEEP? Sincerily I was not able to see a document explaining what module pins can do this...
Here attached "TopDesign.cysch" graphics, and two GPIO settings
I enable GPIO pin by:
Pin_1_SetInterruptMode(Pin_1_INTR_ALL, Pin_1_INTR_BOTH); // redundant
isr_1_StartEx(GPIO_ISR);
isr_1_Enable(); // perhaps redundant
Isr function (never triggered):
CY_ISR(GPIO_ISR)
{
Pin_1_ClearInterrupt();
}
Thanks for any help!
Luigi
Show LessIn my application, I have 1 psoc 4200L and 3 SPI slaves (PSOC 4100 S plus)
I want be able to update all the devices on the field.
So far I was thinking use this :
Master 4200L has USB bootloader
I can update code using USB pc Host
First, I load application 1 : "Slaves update"
then I load application 2 : normal app.
the "slaves update" Master application doing this :
it have SPI interface
and a reset line connect to all three slave device. (to save space in the board)
the pseudo code will be something like this:
reset all device
launch bootloading operation to slave 1
reset all device
launch bootloading operation to slave 2
reset all device
launch bootloading operation to slave 3
after the "slave update process", user will have to launch application 2 in the master.
If I have enough space in my flash, I could have a two bootloadables into my master, the first one will be "slaves update" and the second one "noraml app"
Am I correct, ? do I miss something ?
Show LessHello,
I am developing a wristband based on the CYBLE-022001-00 module and currently, I am displaying only date and time. but I am facing problems related to consumption. I am getting only 4 hours backup on 160mAh battery which is very less and not acceptable. So I have added deep sleep but the problem is that it shows the lag in watch date time for displaying DateTime I have used the RTC component and I am executing RTC_update() after every 1 second. As it is wristband it has to be a compact so I cannot add RTC circuit externally.
Also, I tried to calculate deep sleep time and add those seconds manually to RTC but it is not that accurate. Their remains a huge lag.
What is the solution to this problem.? If I am not giving any sleep then it gives back of only 4 hours and if I add sleep then there is lags in DateTime.
Thanks in advance
Regards,
Neeraj Dhekale
Show Less