PSoC™ 4 Forum Discussions
Using the example project, BLE_Bonding, day15 from 100 projects in 100 days, I want to add a function that prints out the counts of the whitelist, resolving list and bonded list. To do this I have included the function "CyBle_GapGetDevicesFromWhiteList()". This gives an error because the parameters are supposed to be defined in the function. However, CyBle_GapGetDevicesFromWhiteList does not show up in the project when I build or generate the application.
What do I have to do to get it included in the program?
Thanks,
Dennis
Show LessDear Cypress Developer Community:
thanks so much for Motoo Tanaka's reply for our last inquiry on the differences between PDL3.1.1 & PDL3.1.2 . It really helped us a lot.
why we inquiried on the differences between PDL3.1.1 & PDL3.1.2 is that,
we're aiming to step into a vendor pool at our enduser customer side for a washer touch panel project which has been applied with ITO touch sending film and a Psoc4 MCU by the name of CY8C4126AXI-S433.
we met some obstacles on sensor tuning. but after doing several tests, we decided to try disabling the IDAC auto-calibration function and doing manually setting on mudulator IDAC & Gain IDAC, so that we can make our touch sensing film(a FPCB sheet actually) have good sensitivity.
we'd like to invite Cypress Community experts to review on our project in attached file and give us sincere suggestions and advices.
pls see attached file for our detailed tech-support demands from Cypress Community.
Show LessHi,
I couldn't find any info about input "CMOS 1.8V" threshold for Psoc4200M documents.
Input voltage high or low threshold levels are not specified. I couldn't see any example for this threshold.
I will use the CY8C4245AZI-M433 and supply it 3.8V VDD.
There will be other 1.8V level ICs on the board, I need level translator for Psoc outputs to convert 1.8V,
but for the other 1.8V signals;
Can I use Psoc inputs with "CMOS 1.8V" threshold selection without any level translator?
Regards,
Mete
Show Lessuint8 writeRegister8(uint8 i2c_address, uint8 reg, uint8 data){
if(!I2C_MasterSendStart(i2c_address,0)){
I2C_MasterWriteByte(reg);
I2C_MasterWriteByte(data);
return I2C_MasterSendStop();
}else{
I2C_MasterSendStop();
return 1;
}
}else{
return 99u; //placeholder
}
}
with the loop in my main code being:
for(uint8 i=0; i<BUF_LENGTH; i++){
status = writeRegister8(i2c_address, PWM_REGISTER+i,gamma32[brightness]);
}
I want to replace the loop+function call with I2C_MasterWriteBuf function. However, I2C_MasterWriteBuf does not have a register field. I have tried all sorts of combinations of writing register address first as a byte, restarting the bus, stopping and starting again, writing the buffer directly after setting the register address... Nothing works in terms of that the slave device never gets the right values.
Basic question is: How do I use
I2C_MasterWriteBuf
in an intended way when I need to set a register to write to first?
Show LessHi, I have been programming the CY8CKIT-042 successfully and have had no problems. I am now looking to produce some prototype boards but cannot work out what I should connect in order to programme a CY8C4245PVI-482 - I am getting myself totally confused.
Questions:
- What is the minimum that I need to program the CY8C4245PVI-482 seamlessly (plug in and it works without programming the programmer)? I take it that I can't do this from the CY8CKIT-042?
- Do I need to buy a MiniProg4 (for programming and debugging)?
- If I use a 10-pin connector, which pins of a new CY8C4245PVI-482 should be connected to what? How do I identify those pins on other PSoCs and packages?
- Am I better off using a different connector? If so, which pins of a new CY8C4245PVI-482 should I connect to what?
Thank you!
Mike
Show Lesswhen using Psoc Creator, it always comes out an alert notice to recommend updating the component from Peripheral Driver Library 3.1.1 to Peripheral Driver Library 3.1.2 , what's the difference between 3.1.1 & 3.1.2? which one is better to analyze the touch signal?
Show LessWDT Timer 1 is not triggering so I'm unable to wake up the Cypress from the deepsleep. Below is the code of WDT Timer implementation and activation of deepsleep.
WDT Timer initialization in main.c
void SetupWDT(uint16 timerPeriod)
{
/* Use only timer 1 and do not cascade timers */
CySysWdtWriteCascade(CY_SYS_WDT_CASCADE_NONE);
/* Setup WDT1 for the specified period "timerPeriod". */
CySysWdtWriteMode(CY_SYS_WDT_COUNTER1,CY_SYS_WDT_MODE_INT); /* Cause interrupt on match */
CySysWdtWriteMatch(CY_SYS_WDT_COUNTER1,timerPeriod); /* Set timer period */
CySysWdtWriteClearOnMatch(CY_SYS_WDT_COUNTER1, 1u); /* Reset counter on match */
CySysWdtEnable(CY_SYS_WDT_COUNTER1_MASK); /* Enable WDT1 */
/* Lock WDT registers */
CySysWdtLock();
/* Setup the interrupt handler for the WDTs and enable it */
CyIntSetVector(WDT_IRQN, WDT_Isr_Handler);
CyIntEnable(WDT_IRQN);
}
Deepsleep activation
if(CYBLE_STATE_DISCONNECTED == CyBle_GetState() || CYBLE_STATE_ADVERTISING == CyBle_GetState())
{
/* Local variable to store the status of BLESS Hardware block */
CYBLE_LP_MODE_T sleepMode;
CYBLE_BLESS_STATE_T blessState;
// CyGlobalIntDisable; // disable all interrutpts
/* Put BLE sub system in DeepSleep mode when it is idle */
sleepMode = CyBle_EnterLPM(CYBLE_BLESS_DEEPSLEEP);
blessState = CyBle_GetBleSsState();
if(sleepMode == CYBLE_BLESS_DEEPSLEEP)
{
/* If the ECO has started or the BLESS can go to Deep Sleep, then place CPU
* to Deep Sleep */
if(blessState == CYBLE_BLESS_STATE_ECO_ON || blessState == CYBLE_BLESS_STATE_DEEPSLEEP)
{
CySysPmDeepSleep();
}
}
/* Re-enable global interrupt mask after wakeup */
CyGlobalIntEnable;
}
Can anyone tell me what I'm doing wrong?
Thank you in advance,
Milan.
Show LessHi
I have bought the BLE Cap sense and try to add the touch panel in the existing switch panel,
the overlay of the touch panel is a combination of metal and plastic, I need to increase the sensitivity with a range of 1cm.
If it increases to 1 cm the metal also behaving as a touch.
Kindly suggest how to control this.
I want to set the sensing level about 1 cm above from the touchpad.
Regards
imroze
Show LessHello all,
Does anyone have already used the lab below for implementing an Over-The-Air Firmware Upgrade:
http://www.cypress.com/file/345006/download
?
I found it very useful for adding the Over-The-Air (OTA) firmware upgrade functionality to my application (which has already a BLE component) However I am missing the "archive Lab 1 - OTA-required-files.zip" (page 16) containing additional files to the application project. I could not find it on cypress Website.
Many thanks in advance for any help regarding my problem!
Marlène
Show LessHi,
For inductive sensing applications, the 4700S is quite limited as we only have two SCB's and no USB.
So we might need to add a PSoC 4L to act as the "main cpu".
Are there any "bridge implementations" available from Cypress?
i.e. application framework + protocol (i2c or uart) between the two psoc's.
(assume there is something running in the ev-kit that talks via the kitprog to the windows tuning tool)
Let me know what exist to avoid the need to construct something from scratch.
i.e. like buying an inductive sense IC from chip-vendor x with a documented I2C protocol
best David
Show Less