PSoC™ 4 Forum Discussions
Hello,
Is it possible to have a multiple of pin-out configurations under a single PSoC Creator project?
I want to be able to build same project, but with different pin assignment configurations. Changing pin assignments manually every time is very tedious and having a multiple copies of the same project with different pin assignments sounds like big redundancy. So I wonder if it is possible to save different ping assignment configuration in separate files and load the desired file before a particular build. Does PSoC Creator have anything like this?
Thanks!
Nikolay
Show LessHi there,
I spent the last 2 weeks trying to figure out why sometimes my solution seems crashing.
I have followed as much as possible all the recommendation from Cypress...
My main loop looks like:
for(;;){
// process the BLE events in the stack
CyBle_ProcessEvents();
/***********************************************************************
* Put BLE sub system in DeepSleep mode when it is idle
***********************************************************************/
ManageBlePower();
/***********************************************************************
* Run your application specific code here
***********************************************************************/
// if(applicationPower == ACTIVE)
{
RunApplication();
}
/***********************************************************************
* Process application power modes
***********************************************************************/
ManageApplicationPower();
/***********************************************************************
* Manage system power mode based on application and BLE power modes
***********************************************************************/
ManageSystemPower();
}
the systems has 2 interrupts :
interrupts # 1 => WDT (every 250 msec)
Interrupt #2 => external pin (Pin 1.1)
What I notice is that sometimes after I have pressed the button the system seems to crash.
Most of the time I see an LED going off (e.g. Green LED is gets on) and then the systems don't respond anymore.
with the oscilloscope I have noticed (in my last test this evening) that when it crashes the 24 MHz is ON for ever, draining all the battery.
Can someone have a look at the code please and tell me what I'm doing wrong please?
Thank you,
Francesco
Show LessHello,
I have seen several threads about MTU in android. Some claiming that the max MTU for android is 23 or so, others claiming it goes up to 512.
I have had some difficulty myself getting to the bottom of this. In fact, I am able to increase MTU considerably close to 512, however the reason for it is unclear.
In my android studio project, I have tried to negotiate the MTU in several locations throughout, with no success in changing MTU and increasing overall data transmision.
However, I find when insert negotiateMTU function into the OnConnectionStateChanged function, as soon as the device connects, I am able to change the MTU and get higher MTU and data transmission.
However, When I try to reduce the MTU, for example if I do not want so much data, I am not able to lower or change.
I should say, negotiateMTU funciton is not doing anything more than mBluetoothGatt.requestMtu(mtuVal); in java.
I would appreciate anyone's insight into this for changing MTU rate of the device. Not sure even if the problem is Psoc Creator Firmware or if this is Android.
Attached are PSOC Creator Firmware and Android Java Class which handles BLE services (search (OnConnectionStateChanged for example)
Show LessHi,
I am looking at using the CYALKIT for a project, standard firmware has demo mode and timer mode. Within my application I want the user to be able to use a switch to change between demo mode and timer mode. Can I change the firmware to use the charge from the 0.1F cap when in demo mode and charge that cap during timer mode?
Thanks
Luke
Show LessI am thinking of using the CYBLE-012012-10 as a simple serial interface between a 5v micro based controller and Android / iOS phones. Is this part suitable for new designs? Is there a more suitable part?
Show LessI am working on a project which requires encrypting data sent and received on UART - atleast AES128, though AES256 is preferred. Is there any open source library to support encryption on the PSoC4?
The BLE component in the PSoC Creater has CyBle_AesCcmEncrypt and CyBle_AesCcmDecrypt. But these seem to have limitation for max size of data and, the decryption doesn't seem to work for the data encrypted on the PC using OpenSSL AES-CCM 128. Is there any example project that I can use as a reference?
Message was edited by: Luis Montoya
Show LessI found the discussion "
PSoC4 and PSoC4 BLE IMO accuracy With API-called calibration
" but it is locked.
It pointed to http://www.cypress.com/documentation/code-examples/ce97601-improving-accuracy-psoc-4-internal-main-oscillator
but that documentation says it is obsolete.
Is there a way to calibrate the IMO to get better than +/-2% precision
or
is there a way to know the exact frequency of the IMO even if it is within the +/-2% range so that FW can compensate for it by changing counter values?
Thanks,
Ofer
Show LessI've been told by a Cypress application engineer that the PSOC 4700 can be used to measure the DC current flowing through a wire. I have read all available information about inductive sensing with the PSOC 4700 but nowhere does it explain how to do current sensing. Can someone explain to me how I can use the psoc4700 to measure a current through a wire and/or send me an application note explaining how to do it? Thank you.
Show LessIt gives the wrong result. Using PSoC 4, one of the EVM units. Anyone else see it?
Hello, I am trying to use P6.0/P6.1/P6.2/P6.4 as a SPI slave. But I find I can't select the scb[3].spi_select in Creator.
Can anyone help to check this? Thanks a lot.
Show Less