Product Forum Discussions
Browse the Community
USB
Universal Serial Bus (USB) forums have discussions regarding Low-Full & High Speed Peripherals, Superspeed Peripherals, USB Hosts Hubs Transceivers, and USB EZ-PD Type C product solutions for PCs and consumer device topics.
Wireless Connectivity
Power
Sensors
Memories
Memory Discussion Forums discussions regarding NOR Flash, SRAM, nvSRAM and F-RAM - performance and reliability with discrete memory densities ranging from 4K-bit to 2G-bit topics.
Other Technologies
Discussion forum regarding Other Technologies including Power Management and Clocks topics.
Security & Smart Card
Radio Frequency (RF)
Recent discussions
Hi everyone,
I tried to use function pointer recently in PSoC Designer with PSoC1 CY8C29466 and there's something I don't understand.
First, I tried the following code and it works fine:
#include <m8c.h> // part specific constants and macros
#include <stdio.h>
#include "PSoCAPI.h" // PSoC API definitions for all User Modulesvoid func1(BYTE b1)
{
ACB00CR0 = b1; // I just picked this register to check if the function pointer is working in the debugger
}void main(void)
{
M8C_EnableGInt ; // Uncomment this line to enable Global Interruptsvoid (*funcptr)(BYTE);
funcptr = func1;
funcptr(0xfe);
}
Then I add in a PGA module, and when I tried to used the funciton pointer to point to one of PGA's APIs, e.g. PGA_Start(), the compiler (or the linker) reports that "function "_PGA_Start" has wrong type for this function call (error)" and "can't generate code for this expression (error)".
#include <m8c.h> // part specific constants and macros
#include <stdio.h>
#include "PSoCAPI.h" // PSoC API definitions for all User Modulesvoid main(void)
{
M8C_EnableGInt ; // Uncomment this line to enable Global Interruptsvoid (*funcptr)(BYTE);
funcptr = PGA_Start; // I tried other APIs such as PGA_Stop, PGA_SetGain, and none works
funcptr(PGA_HIGHPOWER); // The compiler (or the linker) will complain this line
}
The difference I can find is that the PGA's APIs are generated by the PSoC Desinger and are coded in assembly, but will this cause problems?
Can anyone tell me what went wrong? Thank you.
Show LessHello,
I am executing sample code which is provided into the FX3 SDK on the Denebola RDK. When we connect Denebola RDK with e-Cam software then its work properly but if We connect Denebola RDK with "USB Camera App" on android device ( It's have support of UVC driver ) its not working showing black screen. What is the problem?
On serial port I just found "EnterSuspendMode Status = 0x0, Wakeup reason = 0x8" this logs.
Also I am not able to find "cyu3imagesensor.c" file. Can you please provide this file or location of this file.
Thanks,
Amit
Show LessI would like to connect UART_RX (J1-19) and UART_TX (J1-21) of CYUSB3KIT-003 to another microcomputer.
However, the above signal is already connected to the USB serial conversion IC (CY7C65215).
Will be able to use UART_RX and UART_TX signals by setting the SCB0 configuration of CY7C65215 to Mode5(I2C)
and Drive Modes of GPIO_8 and GPIO_5 to TRISTATE using Cypress USB-Serial Configuration Utility ?
Show LessI am using the 45W CCG3PA with Southchip SC8815 schematic to design a circuit with a USB C PD port and USB A port. The USB A needed the current sense pins tied together to actually work. Nothing in datasheet explains using with one USB A. It's meant for 2. The USB C communicates with programmer, auto-detects, and flashes successfully but does not communicate with SC8815. Is there an issue with design based on the schematic?
Show LessI've changed IFI and IFQ to high gain going into ADC. However, when I load Radar GUI go into Time Domain ADC values, I still see old, low gain values. Is it because Radar GUI is hardcoded? Is it recommended to import data into Matlab and do FFT myself? Show Less
Hello,
I'm trying to get the USB-IF certification for a device based on FX3S (CYUSB3035-BZXC) but I get some fails on the Link Layer Test (see attached report).
Three out of four fails (TD.7.9, TD.7.11, TD.7.26) are related to the "New Timers" currently used by USB-IF... Is not clear if the Legacy Timers are still allowed... I'm waiting for the lab reply... The 4th fail (TD.7.17) I don't know if it is anyway related to the same cause.
Anyway, I don't think I can fix this problems modifying my code. It seem related to the internal functioning of the controller itself... Is the FX3 platform currently USB-IF certifiable?
I'm using SDK 1.3.3. Do you think that an upgrade to SDK 1.3.4 may fix the issues?
Thanks.
Dax
Show LessHi i would lie to rest all the DMA Flag doubts that has been a bother for a while.
- For writing to Slave Fifo ie FPGA to GPIF
A current thread DMA RDY flag shows logic high or logic low (when the Buffer is Full/Not Full) ?
- For reading from Slave Fifo ie GPIF to FPGA
A current thread DMA RDY flag shows logic high or logic low (when the Buffer is Empty/NotEmpty)?
Now regarding partial flags..
- Can we use the partial flag to check the to- be- written GPIF socket( by FPGA) . If it is not asserted we can judge that there must be space to be written ..right?? is it essential that we need a DMA ready flag for starting a transfer..
"DMA_RDY" is actually a signal that is asserted when there is no DMA buffer available to satisfy the request."
Is this a valid conclusion .
utmost curiosity
Denny
Show LessHello,
In TRM,they have given that "Note : In 16-bit mode, the EZ-USB only transfers even-sized packets of data across the FD bus. This should be considered when the EZ-USB interfaces to host software that sends or receives odd sized packets".
What is the status when fx2lp in 8bit slavefifo interface?according into the above statement?
what does mean that even and odd packet referes in the above statement?
regards,
geetha.
Show LessThe information from the datasheet is quite limited regarding this issue:
Illegal Word Operand Access Trap (B): Whenever a word operand read or write
access (including Flash commands!) is attempted to an odd byte address, the
ILLOPA flag in register TFR is set and the CPU enters the illegal word operand
access trap routine.
What may trigger this trap and shouldn't the compiler generate clean code in order this not to happen? And how do I exit the trap function in a decent way, so that my program can continue? Because right now, it just seems to get stuck, even if I have my own defined trap routine.
Thanks in advance,
Daan Show Less
We are two developers.
I'm trying to continue working with the project made by my coworker.
At the beggining I debbug it with no modification and it runs well, but when I begin to make advances the call to main function at Cm3Start.c fails.
/* Invoke static objects constructors */
__libc_init_array();
(void) main();
Show Less