PSoC™ 6 Forum Discussions
Hello.
Build for attached project becomes fail.
PSoC Creator version is 4.4.
Can infineon CDC team make build this project?
What is the solution to this build error?
Best Regards.
YuMa
Show LessI am working on IOT app and I am un able to create project using project creator.
Also I go through this conversation but did not find where I have to type that command.
Bellow are which I get when I create project using project creator.
Submodule path 'libraries/standard/corePKCS11/source/dependency/3rdparty/pkcs11': checked out '9304ef6842d08d881ccd1daa8d3a428f3a9671ee'
Processing file "D:/Project_2/AWS_App/AWS_IoT_OTA_Using_MQTT_2/libs/aws-iot-device-sdk-port.mtb"
Processing file "D:/Project_2/AWS_App/AWS_IoT_OTA_Using_MQTT_2/libs/bluetooth-freertos.mtb"
Processing file "D:/Project_2/AWS_App/AWS_IoT_OTA_Using_MQTT_2/libs/btstack.mtb"
Processing file "D:/Project_2/AWS_App/AWS_IoT_OTA_Using_MQTT_2/libs/capsense.mtb"
Processing file "D:/Project_2/AWS_App/AWS_IoT_OTA_Using_MQTT_2/libs/clib-support.mtb"
Processing file "D:/Project_2/AWS_App/AWS_IoT_OTA_Using_MQTT_2/libs/connectivity-utilities.mtb"
Processing file "D:/Project_2/AWS_App/AWS_IoT_OTA_Using_MQTT_2/libs/core-lib.mtb"
Processing file "D:/Project_2/AWS_App/AWS_IoT_OTA_Using_MQTT_2/libs/core-make.mtb"
Processing file "D:/Project_2/AWS_App/AWS_IoT_OTA_Using_MQTT_2/libs/cy-mbedtls-acceleration.mtb"
Processing file "D:/Project_2/AWS_App/AWS_IoT_OTA_Using_MQTT_2/libs/freertos.mtb"
Processing file "D:/Project_2/AWS_App/AWS_IoT_OTA_Using_MQTT_2/libs/http-client.mtb"
Processing file "D:/Project_2/AWS_App/AWS_IoT_OTA_Using_MQTT_2/libs/lwip.mtb"
fatal: remote-curl: fetch attempted without a local repo
ERROR: Unable to checkout "lwip". This is not a valid git repository.
==============================================================================
ERROR: --ABORTING--
: Script : C:/Users/Lenovo/ModusToolbox/tools_2.4/make/getlibs.bash
: Bash path : /usr/bin/bash
: Bash version: 4.4.12(3)-release
: Exit code : 1
: Call stack : trap_exit error perform_git process_mtb extract_data find_mtbs main
fatal: repository '/cygdrive/c/Users/Lenovo/.modustoolbox/cache/git/https___git.savannah.nongnu.org_git_lwip/lwip' does not exist
make: *** [C:/Users/Lenovo/ModusToolbox/tools_2.4/make/getlibs.mk:121: getlibs] Error 1
Project "AWS_IoT_OTA_Using_MQTT_2" failed to create.
Failed to create "AWS_IoT_OTA_Using_MQTT_2" application.
Show LessHello,
I have questions about HAL / PDL driver.
1. I know that PDL is configurable through device configurator.
But let's take the case of using HAL as an example.
In cyhal_pwm_init_adv() function of cyhal_pwm.c, PWM is already set in cy_stc_tcpwm_pwm_config_t pdl_config = {}.
cy_stc_tcpwm_pwm_config_t pdl_config =
{
.pwmMode = (dead_time == 0) ? CY_TCPWM_PWM_MODE_PWM : CY_TCPWM_PWM_MODE_DEADTIME,
.clockPrescaler = CY_TCPWM_PWM_PRESCALER_DIVBY_1,
.pwmAlignment = pdl_alignment,
.deadTimeClocks = dead_time,
.runMode = (continuous) ? CY_TCPWM_PWM_CONTINUOUS : CY_TCPWM_PWM_ONESHOT,
.period0 = 0UL,
.period1 = 0UL,
.enablePeriodSwap = false,
.compare0 = 0UL,
.compare1 = 0UL,
.enableCompareSwap = false,
.interruptSources = CY_TCPWM_INT_NONE,
.invertPWMOut = (invert) ? CY_TCPWM_PWM_INVERT_ENABLE : CY_TCPWM_PWM_INVERT_DISABLE,
.invertPWMOutN = (invert) ? CY_TCPWM_PWM_INVERT_ENABLE : CY_TCPWM_PWM_INVERT_DISABLE,
.killMode = CY_TCPWM_PWM_STOP_ON_KILL,
.swapInputMode = CY_TCPWM_INPUT_RISINGEDGE,
.swapInput = CY_TCPWM_INPUT_0,
.reloadInputMode = CY_TCPWM_INPUT_RISINGEDGE,
.reloadInput = CY_TCPWM_INPUT_0,
.startInputMode = CY_TCPWM_INPUT_RISINGEDGE,
.startInput = CY_TCPWM_INPUT_0,
.killInputMode = CY_TCPWM_INPUT_RISINGEDGE,
.killInput = CY_TCPWM_INPUT_0,
.countInputMode = CY_TCPWM_INPUT_LEVEL,
.countInput = CY_TCPWM_INPUT_1
};
Do I have to edit this manually to change the PWM config?
It seems the PDL is set via the device configurator, but the HAL is not.
Also, cyhal_pwm.c is a file in mtb_shared, so I don't think the user should change it.
2. Many examples of Modus are made up of HAL driver.
Are there examples implemented in PDL for various peripherals?
Best Regards,
YS
I am working in secure boot and I did not understand the difference between "policy_multi_CM0_CM4_swap.json" and "policy_multi_CM0_CM4_smif_swap.json" policies.
Show LessHi,
We are configuring I2C on the CY8CKIT-062S2-43012 EVB as a slave and use Infineon Bridge Control Panel as a host using USB-I2C bridge. We can successfully verify and test the code from "I2C_Slave_using_callback" example code, but when we copy the same code into another example code "Dual_CPU_Empty_app", the code does not work anymore. The issue is that the there is no event get triggered from SCB at all. The clock, NVIC, pin reg setting seem the same.
The new app does include freeRTOS, although commenting out the vTaskStartScheduler (so we don't actually activate the freertos) does not help. The code may still linked with freertos though.
Greatly appreciated for your hints and things to look at!
void i2c_slave_init(void)
{
cy_rslt_t result;
/* Allocate and initialize a I2C resource and auto select a clock */
result = cyhal_i2c_init(&i2c_slave, CYBSP_I2C_SDA,
CYBSP_I2C_SCL, NULL);
if (result == CY_RSLT_SUCCESS)
{
/* Configure the I2C resource to be slave */
result = cyhal_i2c_configure (&i2c_slave, &i2c_slave_cfg);
}
if (result == CY_RSLT_SUCCESS)
{
/* Configure I2C slave write buffer for I2C master to write into */
result = cyhal_i2c_slave_config_read_buff(&i2c_slave, i2c_write_buffer,
SL_WR_BUFFER_SIZE);
}
if (result == CY_RSLT_SUCCESS)
{
/* Configure I2C slave read buffer for I2C master to read from */
result = cyhal_i2c_slave_config_write_buff(&i2c_slave, i2c_read_buffer,
SL_RD_BUFFER_SIZE);
}
/* Handle error if I2C slave configuration failed */
if (result != CY_RSLT_SUCCESS) handle_error();
/* Register I2C slave event callback */
cyhal_i2c_register_callback(&i2c_slave,
(cyhal_i2c_event_callback_t) handle_i2c_slave_events, NULL);
/* Enable events */
cyhal_i2c_enable_event(&i2c_slave, (cyhal_i2c_event_t)
(CYHAL_I2C_SLAVE_WR_CMPLT_EVENT \
| CYHAL_I2C_SLAVE_RD_CMPLT_EVENT \
| CYHAL_I2C_SLAVE_ERR_EVENT \
| CYHAL_I2C_SLAVE_READ_EVENT \
| CYHAL_I2C_SLAVE_WRITE_EVENT\
| CYHAL_I2C_SLAVE_RD_IN_FIFO_EVENT\
| CYHAL_I2C_SLAVE_RD_BUF_EMPTY_EVENT),\
I2C_SLAVE_IRQ_PRIORITY, true);
}
int main(void)
{
cy_rslt_t result;
/* Initialize the device and board peripherals */
result = cybsp_init() ;
if (result != CY_RSLT_SUCCESS)
{
CY_ASSERT(0);
}
/* Initialize the I2C slave */
i2c_slave_init();
/* Enable global interrupts */
__enable_irq();
/* Initialize retarget-io to use the debug UART port */
result = cy_retarget_io_init(CYBSP_DEBUG_UART_TX, CYBSP_DEBUG_UART_RX,
CY_RETARGET_IO_BAUDRATE);
/* retarget-io init failed. Stop program execution */
if (result != CY_RSLT_SUCCESS)
{
CY_ASSERT(0);
}
printf("Hello World from M4 !!!\r\n\n");
//xTaskCreate(task_print_mem, "print mem task", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 4, NULL );
//vTaskStartScheduler();
CY_ASSERT(0);
for (;;)
{
}
}
Hello,
I am trying to display the unique ID of my PSOC 6 device in the terminal but its not working. I have attached the project. Can anyone help please?
Thanks
Show LessHola, estoy iniciando con Modus Toolbox, ya que compre una placa CY8CPROTO-062-4343W PSoC6 y no encontré ejemplos de proyectos que utilicen un display LCD genérico. Estuve usando unas librerías adaptadas para PSoC5LP con PSoC Creator que funcionan muy bien y utilizan el módulo I2C, pero no me sirven para usarlas en ModusToolbox con PSoC6.
Necesito si alguien tiene alguna librería adaptada para ser usada en Modus Toolbox como la que mencioné arriba o algún proyecto desarrollado para Modus Toolbox PSoC6. No encontré en el material que pone a disposición Infineon, por eso pregunto por aquí.
desde ya muy agradecido con la comunidad por la buena predisposición.
Show Less
Hi,
I am trying to use cy8ckit-064s0s2-4343w to drive WS2812b LED strip.
I have found ws2812 library in iot_expert github repo (1) and it works fine.
But my application is performance critical so I would like to use DMA to output data to SPI.
I have found DMA version of that library (2) and also the article about it
The problem is that it does not work.
I remember using same library on PSoC 4 and it worked ok.
To narrow down the problem i have combined non DMA version (link (1)) with dma configuration from link (2).
The result is as follows:
When cyhal_psi_transfer() is used to output the data everything works fine.
When WS_DMATrigger() is used the LEDs does not light up.
The code can be found here .
I have spent several hours and still was not able to find the problem.
I would greatly appreciate some help.
Thanks.
Show LessTCPWM have Period register and Period buff register . How to determine which register is used now,Period register or Period buff register! thanks!
Show Less