PSoC™ 6 Forum Discussions
Hi Infineon Community,
I'm experiencing a connection issue with the CY8PROTO-063-BLE when using the AIROC Bluetooth Connect App. On one smartphone, I can successfully connect, view services and characteristics, and use them without any problems. However, with another, newer phone, despite the device being visible, I'm unable to establish a connection. It attempts to connect but fails to do so. The same issue occurs when trying to connect with an iPad. What could be causing this problem that prevents the connection from being established? Both iPhones are running the latest iOS version.
Regards,
Luis Flores
Show LessHi Friend,
I am using ModusToolbox v3.0. When I use emUSB-Device_Mass_Storage_File_System to create file system on my SD card, I tested software and always report "SD card cannot be detected". Does anyone has same problem, please advice. Thanks
Victor
Show LessI'm trying to get TRNG working in the CE221295 example:
https://github.com/Infineon/PSoC-6-MCU-System-Level-Designs/tree/master/CE221295%20-%20PSoC%206%20MCU%20Cryptography%20TRNG
but it's looking for cy_crypto_config.h which doesn't exist anywhere.
Show Less
Hello guys,
I will try to make this post clear as is my first one in the community, also if I did something wrong let me know (I chose PSoC 6 because I'm working with that).
I would like to use a Timer TCPWM from the Hardware part of my PSoC 6 to count the number of milliseconds it takes to execute any line of code, being a simple "wait(2000)" function for example (I know is different the name for PSoC Creator, I'll show you later) or a function itself that do many things and returns to the main() code after, this with the purpose of measuring how much a function takes to execute.
I will copy paste my code, if you need the project tell me but I need to separate it because I created many projects in the same workspace (so I'm not sure if the Create Workspace Bundle... will include all of them). But to give more information: I'm working with the Infineon-CY8CPROTO-063-BLE_PSoC_6 board (the manual itself is Infineon-CY8CPROTO-063-BLE_PSoC_6_BLE_Prototyping_Board_Guide-UserManual-v01_00-EN in Infineon's website), when creating a new project I select PSoC 6 >> CYBLE-416045-02 and I leave by default the next steps, the thing is that I added the TCPWM in the schematics, as shown in the screenshot I'm leaving attached, and UART to show results in RealTerm... But the seconds I get are non-sense, I changed in different ways the frequency, the period of the TCPWM and still nothing, I achieved to get the right seconds for wait(1000) or wait(2000) 3000, etc. it showed me 1, 2, 3, etc. but for hundreds showed me random values. I think it was with 1MHz and 1000 of period but I tried many things that I cannot recall it now. I know that the frequency out = f in/(period+1) (counting clock) but tbh I'm not sure how is that helping me, I read the datasheet from TCPWM but it says most of its components and stuff, not much information about how to use it as a timer or even the equation I had to get it from somewhere else here in the posts.
The code I'm using in M4 only (ignore the 2 includes in the middle I wanted to try the StartTick function but I got to know is something from PSoC 4 only). Also the unsigned int32 that I'm using is according to the function of capture (GetCounter), that's the type of variable it returns, but in the sprintf I'm using %u instead of %lu because it dropped me a warning or some kind of error:
#include "project.h"
#include "cy_systick.h"
#include "cy_syslib.h"
#include "stdio.h"
int main(void)
{
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
//wait(100);
//CySysTickStart();
Uart_Printf_Start();
char String[128];
TimerCounter_Start();
TimerCounter_TriggerStart();
CyDelay(6500);
TimerCounter_TriggerStop();
uint32_t result = TimerCounter_GetCounter();
sprintf(String,"\nThe time is: %u",result);
Uart_Printf_PutString(String);
}
I hope it is clear what I want to achieve, and with my code you can be able to help me. I'm using the Start and Stop triggers because it is an easier/faster way that using interrupts. And the GetCounter is showing results, the only thing is that my timer is not set up properly to show the milliseconds, I have no clue how to do that.
Thanks in advance!
Gio
Show Less
I wish to initialize and use a S25FL512SAGMFI010 flash IC into XIP mode, being used by QSPI on a CY8C6145 MCU, using the PDL.
My understanding of how to do this is this code in main:
cy_stc_sysint_t smifIntConfig =
{
#if (CY_CPU_CORTEX_M0P)
NvicMux7_IRQn,
SMIF_INTERRUPT,
#else
SMIF_INTERRUPT, // SMIF interrupt number (non M0 core)
#endif
SMIF_PRIORITY
};
(void) Cy_SysInt_Init(&smifIntConfig, SMIF_Interrupt_User);
__enable_irq();
#if (__CORTEX_M == 0)
NVIC_EnableIRQ(NvicMux7_IRQn);
#else
NVIC_EnableIRQ(SMIF_INTERRUPT);
#endif
/* SMIF initialization */
volatile cy_en_smif_status_t stat;
stat = Cy_SMIF_Init(SMIF0, &smif_0_config, TIMEOUT_1_S, &smifText);
//Cy_SMIF_Enable(SMIF0, &smifText);
Cy_SMIF_MemInit(SMIF0, &smifBlockConfig, &smifText);
//set xip mode
Cy_SMIF_SetMode(SMIF0, CY_SMIF_MEMORY);
Cy_SMIF_Enable(SMIF0, (cy_stc_smif_context_t *)&smifText);
With the interrupt function defined exactly as described in the PDL documentation, and smifText is globally defined.
But with this initialization code, I am not successfully able to read data using code like this:
uint8_t *smif = (uint8_t*)0x18000000;
volatile uint8_t temp;
smif[1000] = 0xAA;
temp = smif[1000];
It always reads 0xFF.
As a note, all of the QSPI pins are outputting for both read and write, though I have not analyzed what data is there. Additionally, here is my schematic:
What am I missing in this initialization process? My device configuration and QSPI configuration files are in the attached ZIP. Any advice or help would be highly appreciated. Thank you.
Show Less客先ではPSoC6のオンボードライタについて調査しています。
PSoC6のオンボードライタにSEGGER社のJ-LinkとFlasherがあるという認識です。
https://www.segger.com/supported-devices/search/CYB06
下記リンクによるとサポートはSEGGER社ではなくInfineon社が行うとの記載がありましたので、
コミュニティにてオンボードライタの質問を行っています。
https://wiki.segger.com/Infineon_PSoC6
お手数ですが、下記の質問についてご回答いただければと存じます。
※客先で評価しているデバイス型番は” CYB0644ABZI-S2D44”でプロビジョニングできるオンボードライタの調査をしています。
=======================================
①J-Link、またはFlasher使用した書き込みに際し、専用のソフトウェアが必要になるのか?
②J-Link、またはFlasherはプロビジョニングにも対応しているのか?
※プロビジョニングはCMSIS-DAPモードで実行する認識です。
※最新版のJ-LINKではCIMSIS-DAPをサポートしているようですがFlasherが対応しているかが不明であることを考えると
J-LINKでのみプロビジョニングと書き込みの両方ができる可能性があるという認識です。
=======================================
どうか宜しくお願いします。
Show Less
Greetings!
I am using Psoc63-ble.
I am trying to use HAL to output 4 pwm's, but I cannot synchronize the 4 pwm's.
How can I get the 4 pwm's to synchronize and output?
Show LessI have a custom board that has the CY8C6136BZI-F14 and a TI CC3135 WiFi chip. I have created a custom BSP for the board. Per the information in the BSP assistant documentation I based this custom BSP on the CY8CPROTO-062-4343W.
I am new to using these MCUs so I also purchased a CY8CPROTO-062-4343W so that I could use the examples to learn how to use the ModusToolbox, build applications, program the MCU and debug. To get an understanding of how the WiFi works I used the WiFi TCP Client example and was able to program the eval board and run this application. I then examined the library configuration to determine which libraries were included for this application.
I took that information back to my application for the custom board with the intent of configuring WiFi for the board. The TI part on the custom board is connected via the SPI bus and so I had selected that option when setting up the custom BSP. However, when I pulled up the library manager for the custom board application I found that the options for the WiFi-related libraries do not exist under Core, Middleware and Utilities and the WiFi menu is not present. I have searched through the documentation and the community to try to find information on enabling WiFi support in a custom BSP but have come up empty.
I have tried working this through starting with copying the wifi-core-freertos-lwip-mbedtls.mtb file into the deps directory for the custom board application and, while I can see WiFi-related components being built, that did not change the library manager menu configuration. It's clear that there are a lot of details around this including dependencies in the existing code (such as the wifi_nvram_image.h file) that make it seem like modifications are necessary, not just for the custom BSP, but also for the mtb_shared area.
Can anyone provide either a path to a step-by-step document for enabling WiFi in a custom BSP or provide some insight into how this is supposed to be done? Also, why would the library manager menu content not be consistent from one application to another?
Thanks for your help.
Show Less
I made two simple clothing film that I placed parallel to each other on a table and connected using CSX mode. I got a good signal with touch But when I place the two overlapping, my rawdata goes to 0 (of course with the exciting film in between, there is no shorting). Why does it go to 0. Theoretically there is a distance between the two, so there is cm Cm is related to the size of the gap, right?
smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/PSoC-6/CSX-gets-a-RAWDATA-of-0/td-p/642465
Show Less