Hi guys,
I'm making a matrix-based wireless MIDI keyboard for a uni project and the final hurdle seems to be an error PSoC Creator 4.4 gives when I try to build my project. It's already stated in the title, but here it is again:
Bad value for formal 'sync_mode'. Must be a constant
The line this refers to, however, is in the official PSoC UART peripheral block, which for obvious reasons I shouldn't be asked to edit.
Attached are a screenshot of my TopDesign, my main.c and the line that causes the error. Does anyone know what causes this?
Thanks in advance!
My main.c:
/* ========================================
*
* Copyright YOUR COMPANY, THE YEAR
* All Rights Reserved
* UNPUBLISHED, LICENSED SOFTWARE.
*
* CONFIDENTIAL AND PROPRIETARY INFORMATION
* WHICH IS THE PROPERTY OF your company.
*
* ========================================
*/
#include "project.h"
void setup(void){
scannerPWM_Start();
UART_1_Start();
}
int main(void)
{
CyGlobalIntEnable; /* Enable global interrupts. */'CY8C5888LTI-LP097
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
setup();
for(;;)
{
/* Place your application code here. */
}
}
//interrupt to send midi
CY_ISR(tx_go){
UART_1_PutChar(Status_Byte_Read() );
UART_1_PutChar(Note_ID_Read() );
UART_1_PutChar(Velociy_Data_Read() );
}
/* [] END OF FILE */
Show Less
hi all,
I am using CYBLE 012011-001 module, where i configured ADC as given in code example of battery_level_01. But, in results, getting constantly a fixed value. I think ADC is not working. I have configured ADC as, Vref is internal VREF, fixed resolution, clk freq is 1000khz & enable ADC interrupt in which i have took converted result. Constant value(883 something) has been appearing at maximum input of battery.
Please suggest me if anything is going wrong or what should i do next to ADC to be work?
Show Less
Can the fork() and pipe() function be used with the PSOC 5LP? I seem to get undefined reference when using them although they are declared. I realize PSOC 5LP is not multi-CPU but I have a function that blocks my loop and I don't really care if it takes a while to execute. Just need to fire it off from within my loop.
Show LessHi
Is there a way to modify an existing component cy_lfclk?
I can import it on the components tab, I can change the code. But I can't figure out how to connect it to the project?
How to replace a component in a project with a modified one?
For a hierarchical Verilog design I'm trying to `include a file from the same directory as the current file. It works with an absolute path `include "C:\Blah\foo\bar\baz.v", but I can't `include "baz.v" to work.
Can this be done? Any setting or workaround? Unfortunately I didn't find a solution in the forum, just similar questions.
Show Less
In PSoC Creator 4.2 and above, If you are working with a project in the schematic editor, and if you change a pin from output to input to output and drag it to a component, like an SPI device, you may get an 'unconnected' error on the pin.
This error will not go away during that session. The solution is to quit PSoC Creator and restart it. Something within the schematic editor will be reset by the restart, and you can continue without issues.
Show Lessusing spi i like to poll for when last bit had been send out of sdo.
I found SPIM_1_ReadTxStatus() and SPIM_1_STS_SPI_DONE but how to combine I had to try and error. Would be nice to have a explanation of the bits avaliable and how to handle in the fucntion header
/*******************************************************************************
* Function Name: SPIM_1_ReadTxStatus
********************************************************************************
*
* Summary:
* Read the Tx status register for the component.
*
* Parameters:
* None.
*
* Return:
* Contents of the Tx status register.
*
* Global variables:
* SPIM_1_swStatusTx - used to store in software status register,
* modified every function call - resets to zero.
*
* Theory:
* Allows the user and the API to read the Tx status register for error
* detection and flow control.
*
* Side Effects:
* Clear Tx status register of the component.
*
* Reentrant:
* No.
*
*******************************************************************************/
while(!(SPIM_1_ReadTxStatus()& SPIM_1_STS_SPI_DONE))
{
CyDelayUs(100);
i--;
if(i == 0)
{
return false;
}
};
is there a list and a documenation that lists all the commands like CyDelayUs(100); (not using crtl+ws!)
Hello,
So we have a PSoC 6 BLE chip interfaced with an S27KS 8 MB SRAM utilizing octal SPI.
The issue at hand is that the SMIF module that I have included as a part of the design schematic generates drivers for quad SPI or dual QSPI, even though I have mapped all 8 pins and slave select lines to the appropriate pins on the PSoC 6.
I can’t get the PSoC creator to generate code for octal SPI.
Please help.
Thanks,
Deepak
Show Less
Hi,
I have a program with PSOC5 where I have a multichannel ADC. I want to be able to configure the zero error and gain of each channel individually so that I can use the below code.
for(i=0; i<No_of_ADC_Channels;i++)
{ Actual_ADC_Reading [i] = (Instant_ADC_Reading[i] + Zero_Error[i])*Gain_x100[i]/100; }
------------------------------
And have a definition such that
Zero_Error[0]=100;
Zero_Error[1]=30;
Zero_Error[2]=-70;
.... and so on.
I have been simply using variable arrays to store Zero_Error and Gain_x100 but I am sure that there is a better way to do this.
Obviously I can't use #define.
Show Less
Expert II
Honored Contributor
Honored Contributor II
Honored Contributor II
Esteemed Contributor
Esteemed Contributor
Employee
Employee
Employee