PSoC™ Creator & Designer Forum Discussions
I am currently just trying to write a simple SPI to transmit string from master to slave.
I would like to use SPIM_PutArray() to transmit data.
I know this PutArray function will put contents in the string into transmit buffer. I guess after PutArray, I can use SPIM_GetTxBufferSize() to read the tx buffer size. However, in debug mode, this buffer size is shown as 1 which should supposed to be 10. Are there any thing I miss here?
uint8 Tx_data[20] = {'a','b','c','d','e','f','g','h','i','j'};
SPIM_PutArray(Tx_data,10); //send data[] from master to slave
Tx_buffersize = SPIM_GetTxBufferSize();
Regards,
Simon
Show LessI have one question about spi master Read access
I try to read 256 bytes of data from flash
all data come out of flash correctly
but spi madule does not read all the data
here is my code
SPIM_Flash_Write(0x06); //Write Enable
CyDelay(1000);
SPIM_Flash_Write(0x03); //Read data byte
SPIM_Flash_Write(0x05); //add 00 Add_Rd_Hi
SPIM_Flash_Write(0x01); //sectR Add_Rd_Lo
SPIM_Flash_Write(0x00);
for(j=0; j<240; j++){ //240
SPIM_Flash_Write(0x00); //to generat read clk
// SPIM_Flash_ReadArraybl(dbg_array_flashdata,240); did not work
dbg_array_flashdata
For me, PSoC Creator 4.2 frequently crashes silently while doing mundane things like scrolling a source window.
There is no error message, it just disappears.
However, the Windows event log has some information (pasted below) that might be useful for the Cypress developers but I can't find a bug database or issue tracker.
Does anyone know where to log this?
--
Faulting application name: psoc_creator.exe, version: 0.0.0.0, time stamp: 0x5a85e2fd
Faulting module name: ucrtbase.dll, version: 10.0.17763.404, time stamp: 0x93e4fbe5
Exception code: 0xc0000409
Fault offset: 0x000a51eb
Faulting process ID: 0x31d0
Faulting application start time: 0x01d524ee02909094
Faulting application path: C:\Program Files (x86)\Cypress\PSoC Creator\4.2\PSoC Creator\bin\psoc_creator.exe
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
Report ID: 92d0a492-2f66-464f-8bf8-fc3017c73c40
Faulting package full name:
Faulting package-relative application ID:
Environment:
PSoC Creator 4.2 (4.2.0.641)
Culture: English (United Kingdom)
OS Version: Microsoft Windows NT 10.0.17763.0
CLR Version: 4.0.30319.42000
--
Show LessI am trying to read RxBufferSize
SPIM_PutArray(Tx_data,tx_byte_count); //put first 10 elements from data[] into Tx Buffer
while((SPIM_ReadTxStatus() & SPIM_STS_TX_FIFO_EMPTY) != SPIM_STS_TX_FIFO_EMPTY ); //check if the transmit from master is completed
Rx_buffersize = SPIS_GetRxBufferSize(); //#element in Rx buffer
However the Rx_buffersize is 0 after I compile it\
Regards,
Simon
Show LessI've been doing development using a PSoC 6 Prototyping Kit with its integrated KitProg3 in bulk mode. Today, the KitProg3 stopped being recognized. The COM port is still visible in the device manager. I can connect a different Prototyping Kit to the same computer and it's recognized, and I can connect this Prototyping Kit to a different computer and that's recognized also.
I can also switch this KitProg3 to HID mode, and it appears in PSoC Programmer. But if I switch it back to bulk mode, it disappears.
What's going on here?
Show Less
What's the difference between these 2 routine?
1. int a = 0;
a = PWM_ReadStatusRegister();
while((a & PWM_STATUS_CMP1) == 0);
2. while((PWM_ReadStatusRegister() & PWM_STATUS_CMP1) == 0);
the first one will stuck in while loop while the second one can pass while loop.
Show LessI have bought a CY8CPROTO-063-BLE prototyping kit. I had PSoC Creator installed and I've upgraded it to V4.2 and the PDL to 3.1.0. When I try to create as new project and select the 'Target Kit' option, all I see are the CY8CKIT-059, CY8CKIT-049-42xx and CY8CKIT-050LP 3.0 options.
If I try to create a project based on the 'Target Device', I can select the PSoC6 family but there is no CYBLE-416045-02 device which is the one on the kit.
What am I missing to be able to create my own project to run on this kit?
Susan
Show LessI have the latest PSoC Creator 4.2 installed on two computers, e.g. PC1 with Windows 10 and PC2 with Windows 7. I have a project, based on CYBLE-222005-00 and I can successfully compile it on the two PCs. PSoC Creator does offers me to update some project components (e.g. cy_boot from v5.70 to v5.80) on PC1 but does not do that on PC2. If I update the project on PC1, I cannot compile it anymore on PC2, unless I roll back the components to their previous versions. The versions of the updated on PC1 components appear as unknown when the project is open on PC2. What is the reason for that? How can I update the components on PC2 to their latest versions?
I am aware of this post - https://community.cypress.com/message/184685, but it does not help me.
Show LessI Under Software package imports, select software packages
(Middleware, RTOSes, etc.) to include in your build.
when I build the project , I get error message
Bitstream Generation...
Bitstream Verification...
Static timing analysis...
API Generation...
Dependency Generation...
Cleanup...
arm-none-eabi-gcc.exe -mcpu=cortex-m0plus -mthumb -I. -IGenerated_Source\PSoC6 -IGenerated_Source\PSoC6\pdl\./ -IGenerated_Source\PSoC6\pdl\cmsis/include/ -IGenerated_Source\PSoC6\pdl\devices/psoc6/ip/ -IGenerated_Source\PSoC6\pdl\devices/psoc6/psoc62/include/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/ -IGenerated_Source\PSoC6\pdl\rtos/FreeRTOS/9.0.0/Source/include/ -IGenerated_Source\PSoC6\pdl\rtos/FreeRTOS/9.0.0/Source/portable/GCC/CM4F/ -IGenerated_Source\PSoC6\pdl\utilities/ -Wa,-alh=.\CortexM0p\ARM_GCC_541\Debug/main_cm0p.lst -g -D DEBUG -D CY_CORE_ID=0 -D CY_PSOC_CREATOR_USED=1 -D CY8C6247BZI_D54 -Wall -ffunction-sections -ffat-lto-objects -Og -c main_cm0p.c -o .\CortexM0p\ARM_GCC_541\Debug\main_cm0p.o
arm-none-eabi-gcc.exe -mcpu=cortex-m0plus -mthumb -I. -IGenerated_Source\PSoC6 -IGenerated_Source\PSoC6\pdl\./ -IGenerated_Source\PSoC6\pdl\cmsis/include/ -IGenerated_Source\PSoC6\pdl\devices/psoc6/ip/ -IGenerated_Source\PSoC6\pdl\devices/psoc6/psoc62/include/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/ -IGenerated_Source\PSoC6\pdl\rtos/FreeRTOS/9.0.0/Source/include/ -IGenerated_Source\PSoC6\pdl\rtos/FreeRTOS/9.0.0/Source/portable/GCC/CM4F/ -IGenerated_Source\PSoC6\pdl\utilities/ -Wa,-alh=.\CortexM0p\ARM_GCC_541\Debug/system_psoc62_cm0plus.lst -g -D DEBUG -D CY_CORE_ID=0 -D CY_PSOC_CREATOR_USED=1 -D CY8C6247BZI_D54 -Wall -ffunction-sections -ffat-lto-objects -Og -c system_psoc62_cm0plus.c -o .\CortexM0p\ARM_GCC_541\Debug\system_psoc62_cm0plus.o
arm-none-eabi-gcc.exe -mcpu=cortex-m0plus -mthumb -I. -IGenerated_Source\PSoC6 -IGenerated_Source\PSoC6\pdl\./ -IGenerated_Source\PSoC6\pdl\cmsis/include/ -IGenerated_Source\PSoC6\pdl\devices/psoc6/ip/ -IGenerated_Source\PSoC6\pdl\devices/psoc6/psoc62/include/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/ -IGenerated_Source\PSoC6\pdl\rtos/FreeRTOS/9.0.0/Source/include/ -IGenerated_Source\PSoC6\pdl\rtos/FreeRTOS/9.0.0/Source/portable/GCC/CM4F/ -IGenerated_Source\PSoC6\pdl\utilities/ -Wa,-alh=.\CortexM0p\ARM_GCC_541\Debug/cy_ipc_config.lst -g -D DEBUG -D CY_CORE_ID=0 -D CY_PSOC_CREATOR_USED=1 -D CY8C6247BZI_D54 -Wall -ffunction-sections -ffat-lto-objects -Og -c cy_ipc_config.c -o .\CortexM0p\ARM_GCC_541\Debug\cy_ipc_config.o
arm-none-eabi-gcc.exe -mcpu=cortex-m0plus -mthumb -I. -IGenerated_Source\PSoC6 -IGenerated_Source\PSoC6\pdl\./ -IGenerated_Source\PSoC6\pdl\cmsis/include/ -IGenerated_Source\PSoC6\pdl\devices/psoc6/ip/ -IGenerated_Source\PSoC6\pdl\devices/psoc6/psoc62/include/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/ -IGenerated_Source\PSoC6\pdl\rtos/FreeRTOS/9.0.0/Source/include/ -IGenerated_Source\PSoC6\pdl\rtos/FreeRTOS/9.0.0/Source/portable/GCC/CM4F/ -IGenerated_Source\PSoC6\pdl\utilities/ -Wa,-alh=.\CortexM0p\ARM_GCC_541\Debug/bootload_user.lst -g -D DEBUG -D CY_CORE_ID=0 -D CY_PSOC_CREATOR_USED=1 -D CY8C6247BZI_D54 -Wall -ffunction-sections -ffat-lto-objects -Og -c bootload_user.c -o .\CortexM0p\ARM_GCC_541\Debug\bootload_user.o
arm-none-eabi-gcc.exe -mcpu=cortex-m0plus -mthumb -I. -IGenerated_Source\PSoC6 -IGenerated_Source\PSoC6\pdl\./ -IGenerated_Source\PSoC6\pdl\cmsis/include/ -IGenerated_Source\PSoC6\pdl\devices/psoc6/ip/ -IGenerated_Source\PSoC6\pdl\devices/psoc6/psoc62/include/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/ -IGenerated_Source\PSoC6\pdl\rtos/FreeRTOS/9.0.0/Source/include/ -IGenerated_Source\PSoC6\pdl\rtos/FreeRTOS/9.0.0/Source/portable/GCC/CM4F/ -IGenerated_Source\PSoC6\pdl\utilities/ -Wa,-alh=.\CortexM0p\ARM_GCC_541\Debug/stdio_user.lst -g -D DEBUG -D CY_CORE_ID=0 -D CY_PSOC_CREATOR_USED=1 -D CY8C6247BZI_D54 -Wall -ffunction-sections -ffat-lto-objects -Og -c stdio_user.c -o .\CortexM0p\ARM_GCC_541\Debug\stdio_user.o
arm-none-eabi-gcc.exe -mcpu=cortex-m0plus -mthumb -I. -IGenerated_Source\PSoC6 -IGenerated_Source\PSoC6\pdl\./ -IGenerated_Source\PSoC6\pdl\cmsis/include/ -IGenerated_Source\PSoC6\pdl\devices/psoc6/ip/ -IGenerated_Source\PSoC6\pdl\devices/psoc6/psoc62/include/ -IGenerated_Source\PSoC6\pdl\drivers/peripheral/ -IGenerated_Source\PSoC6\pdl\rtos/FreeRTOS/9.0.0/Source/include/ -IGenerated_Source\PSoC6\pdl\rtos/FreeRTOS/9.0.0/Source/portable/GCC/CM4F/ -IGenerated_Source\PSoC6\pdl\utilities/ -Wa,-alh=.\CortexM0p\ARM_GCC_541\Debug/transport_i2c.lst -g -D DEBUG -D CY_CORE_ID=0 -D CY_PSOC_CREATOR_USED=1 -D CY8C6247BZI_D54 -Wall -ffunction-sections -ffat-lto-objects -Og -c transport_i2c.c -o .\CortexM0p\ARM_GCC_541\Debug\transport_i2c.o
transport_i2c.c:27:21: fatal error: I2C.h: No such file or directory
compilation terminated.
The command 'arm-none-eabi-gcc.exe' failed with exit code '1'.
--------------- Build Failed: 06/06/2019 13:09:46 ---------------
How can I imports Software package in PSOC4.2
Show LessHello all,
I just started to use Psoc Creator and I have a question for the PWM block.
On the left side of the block there is a clock which you will need to set a value. While if you double click the PWM label, you will also need to set the period for PWM. What are the relationships between the clock and PWM period? As I know, you will need these two value to figure out the real-time period.
Thank you
Show Less