Recent discussions
Hi,
"CapSense Configulator" and "CapSense tuner" have been released for debugging touch sensitivity.
On the other hand, what are the monitoring and tuning tools in ModusToolbox for general-purpose ?
Best regards,
Kazunari Hayashi
Show Less
Hi,
I'm trying to make a very low power firmware for a cyw43907 board based on the dev kit design. I have some issues finding example and implementing the low power techniques.
The few example I found were only for wiced. And the templates in modustoolbox unfortunately do no use powersave.
Are there examples or doc somewhere for cyw43907 and powersave?
Thanks,
Cédric
Show LessHi ~ Receiver,
In the past, we used PSoC Creator to design MCU peripheral. By using PSoC Creator GUI, we can easily initial MCU peripherals.
Now, if we are forced to use MTB to develop PSoC 6 we will meet many difficulties.
For example, in the attached file we can see a TopDesign picture.
It has a I2S block, filp-flop, DMA and inverter blocks, etc.
If I want to use MTB to achieve this TopDesign,,,
How should I start ?! Please kindly guide me.
Thank you so so much.
Show LessI am going through the modustoolbox training (link below), and I am having an issue compiling the completed project for chapter 9 OTA. See the error below. "mbedtls/config.h" is located in "mtb_shared/mbedtls/mbedtls-2.25.0/include/mbedtls". If I create a folder "mbedtls" in the project directory and copy config.h into it, that error goes away, and another error shows up as the compiler looks for another file in that folder. If I copy the entire folder, it has an issue finding a file from another folder in mtb_shared. It seems clear to me there is an issue accessing mtb_shared files, but I can't find where my settings are wrong. Also, the error is generated from other files inside mtb_shared.
I would appreciate any help or ideas in troubleshooting. Thanks!
training: https://github.com/Infineon/training-modustoolbox-level3-bluetooth
Show Less
Hello,
I use the CY8CKIT-062-WiFi-BT Board with modus toolbox. I want to show the time on the TFT-28 display.
For this I use the rtc. Only the rtc and display via the UART interface e.g. with Tera Term is fine.
Only a text output on the TFT display is also in order.
When I initialize the rtc and set GUI_Init() doesn't work anymore. The display does not appear to be initialized. No return value of the GUI_Init() function. I think the rtc and the emWin software are blocking each other. I don't use freeRTOS only 2 functions (main and ftf display).
What can you do to display the rtc information on a TFT display?
Thanks
Show LessHi all,
I have a CY8CKIT-062S4 kit and I'm learning to use the PDL libraries on the CM0+ CPU.
I followed the examples and wrote this code:
int main(void)
{
/* Enable global interrupts */
__enable_irq();
/* Enable CM4. CY_CORTEX_M4_APPL_ADDR must be updated if CM4 memory layout is changed. */
Cy_SysEnableCM4(CY_CORTEX_M4_APPL_ADDR);
if(CY_GPIO_SUCCESS != Cy_GPIO_Pin_Init(P2_7_PORT, P2_7_NUM, &pinConfig))
{
/* Insert error handling */
}
uint32_t pinState = 1UL;
for (;;)
{
// Cy_SysPm_DeepSleep(CY_SYSPM_WAIT_FOR_INTERRUPT);
pinState = 1UL;
Cy_GPIO_Write(P2_7_PORT, P2_7_NUM, pinState);
Cy_SysLib_Delay(1000); // 1000ms
pinState = 0UL;
Cy_GPIO_Write(P2_7_PORT, P2_7_NUM, pinState);
Cy_SysLib_Delay(1000); // 1000ms
}
}
The problem is that the led blinks very fast.
Maybe I have to fix the clock.
Any suggestions?
Update
If I run the same code on the CM4 CPU the LED flashes at the right speed.
Thank you
Show Less
I use eeprom middleware on an PMG1-S3. When putting code and include inside main I just have to define my include like this
#include "cy_em_eeprom.h"
When making an c and a h file to collect my eeprom related methods I have to include like this
#include "..\mtb_shared\emeeprom\release-v2.10.0/cy_em_eeprom.h"
or I have to set include path in file property to ..\mtb_shared\emeeprom\release-v2.10.0/ in the file I do the #include.
main.c does not have include path set in properties. Why is this different ? Did I miss something ?
Show LessHello,
I am converting my project to C++ and I don't want to use exceptions. I added the compiler flag "-fno-exceptions" (which is actually already used by default) and I wanted to verify that I can check for a nullptr instead of having an exception thrown. I implemented the following:
while (true) {
void *p = operator new(100000000ul, std::nothrow);
// int32_t* p = new (std::nothrow) int[100000000ul]; // also tried
if (p == nullptr) {
break;
}
}
Unfortunately `p` never ends up being a nullptr. After the first loop, the application jumps to Cy_SysLib_ProcessingFault while(true){} in cy_syslib.c.
So there is no way for me to manually handle this type of memory allocation error. The same code works fine when I compile with gcc for my computer. I attempted different C++ version flags too.
My setup:
Micro: CY8C6245LQI-S3D02
Tools: ModusToolbox v2.4 using both gcc 10.3.1.81 and 11.2.1
DevEnv: Ubuntu 20.04, command-line build
Any help would be much appreciated!
Show Less