PSoC™ Creator & Designer Forum Discussions
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 LessFor 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
On my PC I had to replace the D drive where Creator was installed due to a hardware fault of the drive.
Then I could install PSoC Creator 4.4 successfully, but two problems remain.
1) Update manager: When I start the update manager, the message
"PSoC Creator errro fmk.M0027 Unable to start executable image: (C:\Program Files (x86)\Cypress\Cypress Update Manager\cyliveupdate.exe)", see attached image.
pops up. I installed Creator on the D drive. There is no directorxy named "Cypress Update Manager" nor a file named "cyliveupdate.exe" on the disks.
When I click "Show Details", it says that there is an internal error.
2) Select Debug Target.
After selection of Debug - Select Debug Target, a window "Select Debug Target" pops up as usual. But there is nothing in this window. See attached image.
I am an experienced user of Creator, and I have PSoC Creator 4.4 installed on other PCs successfully, everything is fine there.
As said above, on this PC, I had to replace the D drive due to a hardware fault on the drive. Maybe Windows got confused because Creator (and other software) suddenly disappeared. I uninstalled everything that was possible, deleted all Cypress files from the disks, cleaned everything from Cypress from the registry, installed and uninstalled Creator several times, still the same problem.
All ideas are welcome since I do not like the idea to re-install Windows completely...
Show LessI see that there is a binary blob in openocd/contrib/loaders/flash/psoc4/psoc4_current_write.inc.
This data is referred to as containing the programming algorithm when it is included in the p4_current_algo[] array inside psoc_write_inner(). It is then copied into a working area in the target memory.
But I do not understand what exactly is in this binary blob. How is it derived?
I don't see any place in the psoc4.c code where a SROM request happens for PSOC4_CMD_WRITE_ROW (0x4). Thus I have been trying to understand how the data actually gets written to user flash.
I would appreciate any insights you can provide.
Hi,
I Have a critical error which have popped up and I cant get rid of it. I have a project for a PSOC 4200 BLE MCU, where a use the upgradableStack project. I have added a new application project to this and I am getting this error:
Error: prj.M0266:
Shared code exported by instance CyBle of component BLE_v3_66 is not identical to code expected by instance CyBle of component BLE_v3_66.
(App=psoc_creator)
This currently prevents us from exporting the project to eclipse, for further development at a critical stage in the project.
Any help is much appreciated !
regards,
Martin
Show Less