PSoC™ Creator & Designer Forum Discussions
Hi,
I am Using PSOC Programmer 3.28.7 with MiniProg4.
when i connect miniprog4 to the system, it is showing 2 Miniprog4 in port selection. And I can't select any of the two.
I tried uninstalling and installing PSOC Programmer
and uninstalled miniprog4 driver in device manager.
still same issue.
Regards,
GA
Show Less
Hi, I'm Dwi Wahyudi
I just realize that my laptop has a lot of windows driver package (while cleaning my win10), but I don't know the function of all those driver.
So, can someone tell me what are those driver and can I uninstalled all of those or should I save just one driver?
btw, I only use PSoC CY8CKIT-044 for my project and now i'm done with the project.
Thanks.
Show Less
A while back I posted some projects using a component I created for the WS2811/12 RGB LED modules. I have added some updates including supporting both the WS2811 and WS2812. Attached is a PSoC Creator workspace that include two projects and the StripLights library. Project “P4_OneRing” controls a single ring of these LED modules. The second project “P4_MultiRings”, allows you to string multiple rings together to make your own very cool string of circular lighted ornaments.
We have a special Black Friday sale coming up this Friday to discount the PSoC 4 Pioneer Kit so you can make your own creation and afford to pick up some of these lights.
Happy Holidays.
Mark Hastings
Show LessI'm trying to implement 2-byte wchar variables, and have added the -fshort-wchar command line option to the compiler command line custom flags. I get a bunch of these types of warnings:
.\CortexM0\ARM_GCC_541\Debug\cymetadata.o uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
This is because the compiler is generating my application code to use 2-byte wchar values, but the built-in ARM_GCC libraries that are included with PSoC Creator are compiled with 4-byte wchar format. Although it reads as a compiler warning, I ran some unit tests and this does cause a real problem.
Does anyone have a tested method for remaking the standard libraries used by PSoC Creator with the correct command line options, or any other suggestions to fix this issue?
Show Less
Hi, Community
How do I grant build options (-fstack-usage) using PSoC Creator?
I learned that there is a compiler option in the KBA description below to check the stack size.
Controlling SRAM Usage in PSoC® Applications - KBA93584
Could you tell me how to add "-fstack-usage" command?
Show LessI fail to create project, it report error "ERROR:Makefile:171: *** Unable to find any of the available CY_TOOLS_PATHS -- C:\Infineon\Tools\ModusToolbox\tools_3.0. On Windows, use forward slashes.. Stop.".
Files attached.
"Enviroment Variable.png" shows the environment variable contains "C:\Infineon\Tools\ModusToolbox\tools_3.0".
"Installation warning message.png" is the warning message during the installation.
"project-creator.txt" contain the whole log message.
Regards
Rabbit
Show LessI had four interrupt pins in a PSOC5 design that I changed to normal input pins with a NAND and interrupt to resolve some pin conflicts. Two of the old interrupt pin names are still reported after a build with "No input on Instance" and Terminal "int"signal" erquires connection when it is visible. A search all does not find any instance of the name.
Show LessI want to use a Kit-059 to control a 16x16 cross-point switch Analog Devices AD75019, using the SPI master component. The AD75019 takes 256 bits of serial data clocked in a CPHA= 0, CPOL=0 format.
I am examining SPIM_Example Project 1.10 to get an understanding of using am SPI as a master. I am also looking at documentation component data sheets Serial Peripheral Interface (SPI) Master 2.50, Direct Memory Access 1.70, ap notes AN52705 and AN84810, and the data sheet for the AD75019.
questions:
1) this section of the example main.c:
/* DMA Configuration for DMA_TX */
#define DMA_TX_BYTES_PER_BURST (1u)
#define DMA_TX_REQUEST_PER_BURST (1u)
#define DMA_TX_SRC_BASE (CYDEV_SRAM_BASE)
#define DMA_TX_DST_BASE (CYDEV_PERIPH_BASE)
The four DMA... are used in the DMA transmit configuration. I take it that 1u means 1 byte, unsigned integer.
Where are CYDEV_SRAM_BASE and CYDEV_PERIPH_BASE defined? These become the high order address bytes for the transmission data. Are the addresses defined by the Creator at build time? Which Spike gets used?
2) In the DMATxConfiguration function, this line:
CyDmaTdSetAddress(txTD, LO16((uint32)txBuffer), LO16((uint32) SPIM_TXDATA_PTR));
sets up the transaction descriptor. I take it that LO16((uint32)txBuffer) is the low 16 bits of the address of the transmit buffer - apparently this construction creates a pointer (or when it gets transferred to the function CyDmaTdSetAddress, it is seen as a pointer. Likewise LO16((uint32) SPIM_TXDATA_PTR) - but where is SPIM_TXDATA_PTR defined?
3) in the main function:
CyDmaChEnable(txChannel, STORE_TD_CFG_ONCMPLT);
while (0u == (SPIM_ReadTxStatus() & SPIM_STS_SPI_DONE))
{
}
Does enabling the DMA channel cause it to transmit? If not, what does?
Where can I find the various codes, like STORE_TD_CFG_ONCMPLT, and what they mean/do?
The while loop continues through each 8 bytes of the buffer, until both SPIM_ReadTxStatus() and SPIM_STS_SPI_DONE are 1.
4) At the beginning of main.c, the data buffers are declared:
/* Data buffers */
uint8 txBuffer [BUFFER_SIZE] = {0x0u, 0x01u, 0x02u, 0x03u, 0x04u, 0x05u, 0x06u, 0x07u};
uint8 rxBuffer[BUFFER_SIZE];
How does the information in the transmit buffer (looks like octal(?) or hex(?) bytes 0 through 7) lead to the expected results per the SPIM example pdf? It is clear that Master RX data: is written directly to the LCD display.
Expected Results
The LCD should display:
Master Rx data:
090A0B0C0D0E0F
5) Since I only want to transmit the data, as the cross-point switch is not an SPI device, but it does take serial data clocked in, in the same format as SPI ( CPHA= 0, CPOL=0 format.). I don't need the MISO input. The component sheet says it needs to be connected, but to what?
Is it okay to ground it, or tie it high? Data lines selection "Bi-directional" looks more like what I need: DATA and CLOCK. Since there is only one (not quite) SPI device, I don't need the Slave Select, and plan to leave it unconnected.
I expect a few more questions, but this should help move me along.
Thank you
Show LessIs there a standalone bootloader host application for download somewhere? Or do I have to tell others to download the whole Creator software if they want to update their firmware?
Show Less