PSoC™ 4 Forum Discussions
can I pass the component created in the component CatLog in psoc 4 as parameter to functions?
I am successfully using an unconfigured SCB, using firmware to toggle between SPI and I2C modes. Now I would like to add DMA control.
Background: I am using a PSoC4-BLE module. There are very few GPIO pins, so the I2C and SPI buses share the same GPIO pins. To change SCB modes, I use the component APIs, SCB_SpiInit() and SCB_I2CInit(). Whenever I change SCB modes, also I adjust the High-speed IO Matrix (HSIOM) to connect the right GPIO pins to the appropriate SCB inputs and outputs. It's a bit rough, but it works.
Now I would like to implement two DMA channels to control TX and RX functions while using SPI mode. This is easy with an SPI component, using CE224339 as a model. However, in the TopDesign, when I change the SCB mode from "SPI" to "Unconfigured", the SCB output terminals that connect to the DMA channels disappear.
I've been searching the component datasheets, CEs, and AppNotes. I can't find how to attach the DMA input triggers to an unconfigured SCB while it is being used in SPI mode.
Surely there is a way to do this. Perhaps there are internal connections somewhere in the HSIOM? Any advice would be appreciated.
--zim
[Edit:
I've just looked in the Architecture TRM, and found that the DMA trigger sources can be selected by setting the right value in PERI_TR_GROUP_TR_OUT_CTLx[5:0]. This should allow me to connect the SCB source to the DMA trigger during run-time. To allow the project to compile without a trigger, I can uncheck "Enable trigger input" in the DMA.
But I still have a few questions:
Besides connecting the trigger via the PERI register, there are some SCB settings needed by the DMA functions. I think I need to use the SCB APIs to configure the FIFO interrupts? For example:
- SCB_TxSetFifoLevel( uint32 level );
- SCB_Set_TxInterruptMode(SCB_INTR_TX_FIFO_LEVEL);
- SCB_Set_RxInterruptMode(SCB_INTR_RX_FIFO_NOT_EMPTY);
- SCB_EnableInt();
I hope this solution is functionally equivalent to the code example, but will allow me to use the Unconfigured SCB. Is anything else required? Is there an easier way to do this?
/Edit ]
Show LessHello,
I'm having a build error in my PSoC 4.2 program and whenever I try to build the program it gives me this error:
1) elf section '.text' is not within region 'rom'
2) elf section '.eh_frame' will not fir in region 'rom'
3) Build error: region 'rom' overflowed by 2896 bytes
4) Build error: The command 'arm-none-eabi-gcc.exe' failed with exit code '1'.
The first 3 lines of error says that it's located in the file 'cm0gcc.ld'
Also, for reference, the type of PSoC that's being used is the PSoc4-40 QFN: CY8C4245LQI-483 QFN40
Show LessHii,
I am using Kinetic-KM64 Microcontroller as a master & CY8C4245 AXI-483 as a Slave. I am using Cap sense Keypad in Slave side.
Problem_1- During I2C communication whenever I press any Button, I send low to high Pulse (Interrupt) to the Master, so my Master get Interrupt on pin & Master understand that Slave wants to communicate me. Then Master sends Address frame, but the problem is I don't get the acknowledgement from the slave CY8C4245 AXI-483.
Please check attached Logic Analyzers I2C communication Waveform.
Problem_2-My slave address is 0XC8 but I am not able to assign slave address 0xC8.I get error that I2C address must be between 0x08 &0x78.other address is now allowed by I2C specification.
Address is shifting so I used 0x64 address then I get 0xC8 (1100 100 x) binary address in I2C configuration window. Is it correct configuration?
Please check attached Images of I2C configuration & Code.
Regards
AJ
Show LessDear Sirs and Madams,
I understood that when using ECO on PSoC4S Plus, We need to call the API inside main.c of PSoC Creator.
I refer to PSoC Creator sample code CE221247 – PSoC 4100S Using ECO PLL Low Level APIs, and I understand that it uses APIs to switch.
I heard that from PSoC Creator 4.4, it is not necessary to write API in main.c, and by setting the GUI of the clock of Design Wide Resource(DWR), will it switch to ECO in the boot process?
If the above is correct, is the corresponding Boot component version V6.0 or later?
For example,
Does it work IMO at startup and automatically switch to ECO in the boot process just by setting the GUI from the clock of DWR in PSoC Creator as follows without the description to switch the clock in main.c ? Is this true?
We recognize that the above clock GUI settings alone will not switch, and we believe that the following API must be written in main.c.
CySysClkWriteHfcklDirect(CY_SYS_CLK_HFCLK_ECO);
CySysFlashSetWaitCycles(24);
Because the "CySysClkWriteHfcklDirect" API is not found to call in generate source of the project.
/* System Reference Guide V6.10 URL */
Regards,
Show LessHi,
i would like to display the results of a division as a float using sprintf and display it using the UART communication component.
My code is give below.
float ft,db;
UART_UartPutString(buffer);
I don't get any value at all on my terminal program.
Just
value=
I am unable to understand how to display float values using sprintf.
I am using PSOC Creator 3.2
thanks
a
Show LessHi, Community,
Can we use a ceramic resonator be used instead of a crystal for ECO of PsoC4 series ?
I am asking the question in relation to this post.
What ECO is recommended for PSoC 4100Smax?
When searching for a crystal oscillator as an ECO for an automotive product, we find a crystal oscillator with a high ESR.
I have difficulty finding a crystal oscillator for automotive applications that is applicable to the PSoC4 series.
I would like to know if ceramic resonators can be used instead a crystal.
Best Regards,
Chihiro Tatebayashi
Show LessHello...
I am Using EZI2C communication for Capsense Tuning but I get a Read operation failed! check the I2C Bus connection error.
I am using Miniprog3 for EZI2C communication.
I did all configuration as per user manual. Please check my attached Hardware connection & My project file.
I am Using Custom PCB Board. I tried connection with pullup & without pullup resister, but I get the same error frequently.
Please check above connection with Miniprog3.
Please help ....
Regards
Aj
Show Less
I have several miniprog3 programmers that have been blown up in a customer's test fixture. I think I can repair these but I need to know the part numbers for tvs1, tvs2 and tvs3. Is it possible to get these or a parts list or a schematic for the miniprog3?
Show LessHello...
I am Using EZI2C communication for Capsense Tuning but I get a Read operation failed! check the I2C Bus connection error.
I am using Miniprog3 for EZI2C communication. Does a pull-up resistor require the data & clock line?
Please Check My Attached connection between Miniprog 3 & Microcontroller.
SDAT(Data)
SCLK(CLK)
XRES(Reset)
2. I Configured EZI2C & Capsense Configuration as per the Manual.
Regards
AJ
Show Less