PSoC™ 6 Forum Discussions
text.format{('custom.tabs.no.results')}
Hi there,
After downloading Cryptography_AES_Demostration example codes from Github, I have tried all AES ECB mode, CBC mode, and CFB mode, all of them works fine.
However, I got some trouble in calling Cy_Crypto_Core_Aes_Ctr. Specifically speaking, I have no idea how to provide the parameters of this API function.
Do you have any example codes to show me how to encrypt/decrypt by AES CTR mode?
Hardware : CY8KIT-062-BLE
ModusToolbox version: 2.4.0
Thanks,
Show Less
Hello,
I'm using the CY8C6136 and I have a question about PDL and HAL.
Q1. Can PDL and HAL drivers be used together for one peripheral?
PDL is convenient to initially set up, but for some functions the HAL API is useful.
Q2. I want to use PDL and HAL together for RTC like below.
To use the HAL API, I first used cyhal_rtc_t rtc_obj;.
Is there any problem with using this way?
cyhal_rtc_t rtc_obj;
static int in_rtc_init(void)
{
cy_en_rtc_status_t status;
cy_rslt_t result;
// init
status = Cy_RTC_Init(&RTC_config);
if(status != CY_RTC_SUCCESS)
{
CY_ASSERT(0);
return -1;
}
// time set from flash
if(RTC_TimeStampConfig() == -1)
if(status != CY_RTC_SUCCESS)
{
CY_ASSERT(0);
return -1;
}
// callback function registration
cyhal_rtc_register_callback(&rtc_obj, rtc_event_callback, NULL); // void *callback_arg);
// wake-up every 1sec.
result = cyhal_rtc_set_alarm_by_seconds(&rtc_obj, 1);
rtcAlarmVal = 1; // per 1sec
if (CY_RSLT_SUCCESS != result)
{
CY_ASSERT(0);
return -1;
}
return 0;
}
Q3. Can other components (e.g. PWM, ADC, etc.) use PDL and HAL together in this way?
Best Regards,
YS
I can't find the "CY8C6244AZI-S4D9" at the "Select device" window in PSoC Creator 4.4
Can I have any method to use "CY8C6244AZI-S4D9" with PSoC Creator 4.4?
Show Less
Hi all,
It is been a long time I have played with PSoC Creator, I would like to use Capsenses using the Tuner UART or I2C. I am using a CY8CPROTO-063-BLE board.
I started a project using the example Capsense_tuner for PSoC63
Then change the device selection for CYBLE-416045-02:
I tried to build, got the error:
cannot find cy_device_headers.h
I then install the latest version of PSoC™ 6 Peripheral Driver Library (PDL) for PSoC™ Creator and change the build setting
Now I have the error : error: 'cy_stc_syspm_callback_params_t
Don't know what to do, any help would be appreciated.
HAl
Show Less
Hello,
I have a custom board designed around the CY8C6144LQI-S4F92 and a kitprog development board. I've snapped off the programming side of the board and I'm trying to use it to program my board through SWD.
I've already followed the steps to make my own custom BSP, used the device configurator and ran make getlibs. I've looked at the documentation and I can't find info on how to set up the programming interface in ModusToolbox. It doesn't seem like PSOC Programmer has support for the CY8C6144LQI-S4F92 so I can't upload the hex file that way.
Does anyone know the proper way to do this?
Best,
Sam Shersher
Show LessHi,
I am using ModusToolbox to run the Low-power_CAPSENSE_FreeRTOS example on CY8CPROTO-062-4343W.
It seems to be work fine when using the debugger from ModusToolbox (i.e. the User LED blinks as part of the task).
But if a stop the debugger and reboot the board the application does not seem to run (i.e. the LED does not blink).
Does anyone has suggestion to address this issue?
Show Less
Hello,
I have created a project of 5 LEDs and 2 switches. I defined them as 2 dictionaries. One dictionary includes 5 LEDs and another one includes 2 switches. However, there is a problem that the switches are not working(and I am not too sure about the LEDs if you can let me know if there are any problems please). I have attached the project. Can anyone help please?
Thank you
Show LessHello,
I use the CYBLE-416045-02 with Modus Toolbox.
I use the device configurator to configure the FLL so that CLK_FAST and CLK_SLOW have 50MHz. I call the generated function init_cycfg_all(); and then I start creating my tasks for freeRTOS. Even with configMINIMAL_STACK_SIZE (128) I get a stack overflow error at the first task.
Before I used the device configurator, I tested everything without the FLL configuration and it worked with a stack size of 1024 for the first task. Therefore, it is clearly the auto-generated code.
How can I solve this?
Greetings
Dear
I use Modus offline version to build https://github.com/infineon/training-modustoolbox-level3-wifi/project/key_ch04b_05_httpbin, it shows " fatal error: core_pkcs11.h, thansport_interface.h ,no such file or directory".
I check mtb_share/aws-iot-device-sdk-embedded-C/ or/aws-iot-device-sdk-port/ concent, no the error *.h file, so Could you update them when release the Modus offline version?
Show LessHi,
I was using Cy_GPIO_Inv() to make an LED blink on P8.2. It didn't work. I found cyhal_gpio_write() which worked. Then I noticed that in the help for Cy_GPIO_Inv() says this:
This function should be used only for software driven pins. It does not have any effect on peripheral driven pins.
Being new to PSoC6 makes me wonder what is the difference between a "software driven pin" and a "peripheral driven pin"? Aren't all pins driven by software/firmware?
Thanks
Show Less