PSoC™ 4 Forum Discussions
我们是汽车项目,需要用到车规级的MCU, 资源需求:64KB Flash, 4路触摸通道,1路串口,另外功耗要低,感应距离要灵敏请帮忙推荐下,谢谢!
I'm clearly doing something wrong with the attached program. Everything seems to work OK except when (I think) iOS changes it's resolvable address. This occurs after the program has been running about half an hour. The program is designed to run on a custom PCB but for this test I've been running it on a Pioneer board with a CYBLE-214015-01 module which uses BT 4.2. I'm communicating with it via BLE with the LightBlue app on an iPad 2 Air with the latest iOS installed. None of Pioneer's switches or indicators are required for the test I'm working on.
What is supposed to happen is that after programming the PSoC 2 BLE and starting the LightBlue app (having "forgotten" the device if it appears in the iOS settings-Bluetooth) the program connects, pairs and bonds with the iPad. This works OK. I can turn off the LightBlue app and restart it and the two devices reconnect. I can cycle power to the Pioneer board and they reconnect as they should. This can be repeated a number of times with everything working well. However, if I let the two devices sit and do nothing to them for half an hour or so then quit the app and restart it or cycle power to the Pioneer board they will no longer connect.
If I change the code on line146 of BLEApplication.c to make the filter policy 'scan any, connect any' (instead of scan any, connect using whitelist) this problem does not occur. My thinking is that the whitelist function is failing because the RPA has changed and the PSoC 4 is not handling it correctly because I've done something wrong in the code.
I'd be really grateful is someone could take a look at this and tell me what's wrong.
Thanks much,
Dennis
Show LessHello,
I've encountered a problem on PSOC 4 that the device doesn't reset on power up, only when I reset it manually (using PSOC programmer for example).
I do have a bootloader function that I'm using in my design, so maybe it has something to do with it.
I'm not quite sure what are the exact power up steps, but AN73617 (PSoC®Designer Boot Process, from Reset to Main) the device should enter reset of first power up.
My indication for a working main loop is getting message over CANBUS (working after manual reset).
Thanks in advance,
Igal
Show LessHello,
I would like to ask for help with Timer Counter setup for the following situation.
I need to measure a duty cycle of a signal (or just measure for how long was a signal low in the past 30 s). The minimum pulse width is 10 us and the signal is logic high by default and logic low when I need to measure it. There is more than one pulse for 30 s period. (Actually I need to process two input signals using the same principle concurrently.)
My initial thoughts were to let the signal trigger (by a falling edge) a start of the timer and stop it with the rising edge. Do this 30 times (store in SW in a circular buffer) and then create an average for the these 30 samples. The timer could be clocked with 1 MHz clock, for example.
Do you have any suggestions or ideas how to setup the Timer Counter component? I lost myself in the component datasheet. Or would do this differently?
Thank you,
David
Show LessHI,
I am using PSOC 4200 (CY8C4247LQI-BL483), where I2C SCL line is stuck low due to the nak bit received. I2C lines are pulled up using 4.7Kohm.
CY8C4247LQI-BL483 |
Is it possible to change from a defined custom profile to the observer or broadcaster role.
Asked differently, can a custom profile have a broadcaster or observer function?
We have a product, using Cypress PSoC that has a Passkey customer settable 6 digit PIN, we have a fixed stack boot loader, and have a successful product at this time.
The customer has asked us to add a physical remote control, so we have designed a PSoC BLE remote control, push button, battery operated. We know we can have the remote act as a central, provide a PIN code, but they do not want the remotes to use up the pairing spaces, and there is no way to enter the customer settable pin into the remote control.
We think we can make the remote control a dynamic broadcaster, and the then turn the device being controlled from a peripheral/server device, into an observer, who will observe the dynamic payload of the remote control, when not connected to central.
Can this be done? Again, we have a custom profile, and we need to be able to dynamically switch between server, and an observer.
I have reviewed the 101 projects, 9-12, so i am concern that we cannot make the device under control a server broadcasting and accepting connection requests, and then switch to observer mode and look to see if one of the remote controls is broadcasting?
Thanks for any help or direction.
Show LessI'm inquiring about PSoC 4200 BLE.
The CY8C4248LQI-BL483 is being used with our wireless IT products. And we plan ship them to South Korea.
Now I would like to confirm whether CY8C4248LQI-BL483 meets Korean RF requirements or not.
According to below link which is RF regulations of Korea, that shows receiver spurious emitting should be less than -54 dBmW (term #12).
http://www.law.go.kr/lsInfoP.do?lsiSeq=196127&efYd=20170726#0000
But on the other hand "PSoC 4200_BLE data sheet" shows receiver spurious emission only less than -47 dBm (Spec ID# SID356).
Also our existing test results were -53.4 dBm (around 4.8GHz). It's failed.
At 1st I would like to know whether some product already passed RF certificate with CY8C4248LQI-BL483?
If there were some, I would appreciate if you could give me some idea to address this issue.
Show LessGyanC_36 posted (Dual-application support when using BLE OTA ) an example project for a Dual Application Bootloader for the device CY8C4247LQI-BL483 56-QFN. I like to run this example project on my CY8CKIT-042-BLE-A PIONEER KIT.
I need for my project at university a working Fixed Stack OTA using BLE , so I hope anyone can help me to run this simple example.
Using the Device Selector, I changed the device for both projects (Bootloader and Bootloadable to CY8C4248LQI-BL583 56-QFN. Also, I changed the device parameters in cm0gcc.ld (Bootloader) and cm0g_1.ld and cm0g_2.ld (Bootloadable) like described in "BLE OTA Fixed Stack Bootloader and Bootloadable, 1.40", to rom LENGTH = 262144, ram LENGTH = 32768 and CY_FLASH_ROW_SIZE = 256.
Then I built the Bootloader project, run the mk.bat file and programmed the bootloader project on my PIONEER KIT. After that, I built the Bootloadable project. With the CySmart 1.3 tool I tried to update the firmware.
The update firmware process for both *.cyacd files ("BLE_OTA_FixedStack_Bootloadable01_1.cyacd" or "BLE_OTA_FixedStack_Bootloadable01_2.cyacd") failed with error: "The row checksum does not match the computed value".
It seems to me, that the whole file is sent successfully and the last step failed but I don't know how to fix this.
Does anyone know, what's going wrong?
I attached both .log-files from CySmart tool and my corrected sample project.
Show Less