In the PSoC6 I2C Master example code
a couple of the functions call need to be updated to match the library.
Additionally, the use of the READ and WRITE buffers was reversed
possibly because the selected buffer names are very confusing.
Please find attached my suggested new code for main.c that I believe to be more correct.
Tested it with CY8CKIT-062-BLE and CY8CKIT-062-WIFI-BT,
Modus ToolBox and VSCode.
Dual-CPU IPC Pipes
Right out of the box, VSCode detects two problems in the code for cm0p:
identifier "NvicMux7_IRQn" is undefined C/C++(20)[Ln60, col 28]
struct "<unnamed>" has no field "cm0pSrc" C/C++(136)[Ln61, col 5]
surprisingly, the compiler does not detect the errors, compiles the code
and runs on the target kit without detectable errors...
I am not well versed using Eclipse, but, it does not seem to be aware of the
problems and it compiles fine too. (same tool chain)
the lines with the issue are:
const cy_stc_sysint_t mcwdt_int_cfg =
.intrsrc=(IRQn_Type) NvicMux7_IRQn, // 7
.cm0psrc=srss_interrupt_mcwdt_0_IRQn, // 19
.intrPriority = 2 //
The problem in the first line can be bypassed by replacing it with:
The second line issue is a bit more convoluted...
After all the #ifdefine lines are resolved, the stucture cy_stc_sysint_t
presented to main.c (app_cm0p) does not have a cm0pSrc field.
it appeared that it was missing the definitions in
#include "cy8c6347bzi_bld53.h" (CY8CKIT-062-BLE)
but, adding it to the #include list made no difference.
Another unrelated problem in IPC code:
the structure definition for ipc_msg_t
lines 104-111 of ipc_communication.h
typedef struct __attribute__((packed, aligned(4)))
uint8_t client_id; <-- is this supposed to be uint32_t ???
} ipc_msg_t ;
Cy_IPC_Pipe_RegisterCallback(...) expects uint32_t
and the documentation says it is an uint32_t.
I'm working on a project with CYCLE-416045-02 and i'm using bluetooth.
My project works great with the bluetooth and in limited discovery mode. I need to put an event on a gpio to start advertisement and this advertisement stop after a timeout delay (40s).
Now i want to improve my project, i have 2 différents power sources ( fixed power supply and battery). When i'm on battery power supply, i want my bluetooth work in limited discovery mode with advertisement timeout. When i'm on fixed power supply, i want that my bluetooth was always discoverable.
The first idea is to restart advertisement after a stop advertisement in fixed power supply mode.
I don't think that it's the better way to do this function.
I saw in the datasheet that in limited discovery mode, it's not possible to not use the timeout and in general mode i can't use the timeout.
So i would like to know if you have advice that can help me to find a way to switch between continuous advertising and advertising with timeout and vice-versa
Thanks for your help,
I am currently working in a product with a PSoC 6 CY8C6xx7 and I need to get it tested for EMC.
I was wondering if there is any ready-to-go test firmware that I could use for that purpose.
I'm trying to bring up the CE213903 bootloader example on a CY8C6247FDI-D32. The only changes I've made are to move the UART to P7 and change the baud rate to 9600.
When I run the bootloader host for APP1, I either get 'The key provided for the packet does not match the key that the bootloader expects.' or 'Packet data invalid: the packet sent to the bootloader does not conform to the required packet format,'
If I leave the baud rate at the default 115200, I get 'The bootloader reported error 'Packet length invalid: the packet's length does not conform to the required packet format'
Ideas or suggestions?Show Less
Using CY8CKIT-062-WiFi-BT (PsoC6 WiFi-BT Pioneer Kit), i'm testing to use CSD Capsense & CSDADC functions at the same time.
CAPSENSE™ Middleware Library 3.0: High-level Functions (infineon.github.io)
With reference to the above, I am testing by switching Capsese and CSDADC.
I checked the mode conversion and CSDADC was read normally.
However, CapSense does not work properly.
I'm try to fix everything, it doesn't work.
Please help if there are any mistakes or areas that need to be corrected.
This is a project created by adding CSDADC and SARADC to the CAPSENSE_Buttons_and_Slider example.
CSDADC: P1_2, P1_3, P1_4
SARADC: P10_0, P10_1, P10_4, P10_5
CAPSENSE: BTN: P8_1, P8_2,
Slider : P8_3~7
thank youShow Less
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 want to use PSoC 6 to enhanced the function. We need to use MTB to develop.
Do you have tools that can convert *.cysch file to MTB library file directly ?!
How to converter *.cysch to MTB ?!
Thank you so much.Show Less
Im working on a device with the CY8C6347BZI-BLD54 psoc 6 CPU. I'm using the SPI peripheral with the HAL driver code to connect to a SPI flash device. I'm seeing an issue where the cyhal_spi_transfer function will get stuck if I run other interrupts while waiting for the transfer to complete.
Any ideas what might be causing this?
I've managed to reproduce this issue with a simpler project running on the CY8CKIT-062-BLE board just running a timer interrupt at the same time as doing a SPI transfer. Attached zipped project, this is the SPI master HAL demo with just main.c modified (https://github.com/Infineon/mtb-example-psoc6-spi-master/)
While working on a project with PSOC 6 (CY8C-0620WIFI-BT Kit), the IC CY8C6274BZI-D54 got too hot and project stopped working when given power through the USB cable of PC. Also, the software PSoC creator could not further detect this device CY8C6274BZI-D54 for uploading code again. Incase if the microcontroller CY8C6274BZI-D54 has got damaged, is it possible to replace the microcontroller CY8C6274BZI-D54 alone or will the board PSoC 6(CY8C-0620WIFI-BT Kit) will not work any further? Incase of replacement of CY8C6274BZI-D54 IC , how to contact Cypress?
Thanks in advance.
Hello.I am using an CY8CKIT-062S2-43012 Pson6 board and the lastest version of Modus Toolbox.
I am having trouble loading a keras model with a custom layer into our application. The ML Configurator returns us an error: "Error returned: Unknown layer: FFT_Image. Please ensure this object is passed to the
custom_objects argument." Even when we don't use a custom layer, we still get the error: "Deploy script returned with error 'list' object has no attribute 'name'"
And finally in the project itself , in the library file "mtb_ml_common.h", we get a linker error: " #error Unsupported data type" We've been looking everywhere in the exemple projects and cannot figure out where COMPONENT_ML_FLOAT32 is defined and how can we define it properly in our project as well. We would really appreciate some help.Show Less