PSoC™ Creator & Designer Forum Discussions
PSoC Creator Device selectorに使用したいデバイスのラインナップが無い場合はどうしたらいいですか?
My question relies on the provided code generated through the widget components API. Does the code comply any kind of certification? If so, where are the documents which explain that certification?
Thanks in advance for the help!
Show LessI configured a master I2C using the SCB block. I am trying to write some data to the slave using the function I2C_1_I2CMasterWriteBuf(). The following is my code snippet -
if(I2C_1_I2C_MSTR_NO_ERROR == I2C_1_I2CMasterWriteBuf(addr, buffer, size, I2C_1_I2C_MODE_COMPLETE_XFER ))
{
while( 0u == (I2C_1_I2CMasterStatus() & I2C_1_I2C_MSTAT_WR_CMPLT ))
{
/*Wait*/
CyDelay(3);
}
if(0u == (I2C_1_I2CMasterStatus() & I2C_1_I2C_MSTAT_ERR_XFER ))
{
if(I2C_1_I2CMasterGetWriteBufSize() == size)
{
result = ERROR;
}
}
}
bytes_sent = I2C_1_I2CMasterGetWriteBufSize();
At this point I2C_1_I2CMasterGetWriteBufSize() is always returning 1. What can be the error? Shouldn't this function return a number that is equal to size if the transfer was successful?
Show LessHi,
I am having trouble building any project which contains either the D Flip Flop or Analog Hardware Mux. When a project containing either of these components is built the build stalls after producing the following in the output:
Any advice on how to solve or further troubleshoot this problem would be greatly appreciated.
====
Elaborating Design...
HDL Generation...
Synthesis...
Tech Mapping...
Eliminating trivial wires...
Creating carry chains...
Creating initial macrocells...
Creating global clocks...
Categorizing IOs...
Synchronizing IOs...
ADD: pft.M0040: information: The following 3 pin(s) will be assigned a location by the fitter: Pin_1(0), Pin_2(0), Pin_3(0)
Eliminating trivial wires...
Mapping enabled registers into macrocells...
Connecting carry chains to registers...
Creating global controls...
Removing duplicate macrocells...
Resolving AMuxHw component...
0% Done. Optimizing 'cydff_1'
===
Environment:
PSoC Creator 4.2 (4.2.0.641)
Culture: English (United Kingdom)
OS Version: Microsoft Windows NT 10.0.17763.0
CLR Version: 4.0.30319.42000
Show LessCan someone tell me what is the difference between these 2 functions?
I understand that SCB_SLAVE_CMPLT_CALLBACK is only valid if the I2C is set up as slave. But what does SCB_ISR_EXIT_CALLBACK does in the same situation where the I2C is in slave mode?
Show LessCreator Version:4.1
Device : 5LP
Attachments: PNG image of C code snip
I iterate through a long loop and transmit a 72 character array over RS-232 if the host computer has requested an array readout.
At first, I used all 4 bytes of my hardware-only FIFO each time and then verified that the FIFO was empty using line 503 before putting 4 more bytes into the array. See attached code snip.. It didn't work - only 40 bytes made it out over RS-232 to the HOST computer (I verified that only 40 bytes were being sent using a scope).
I then commented out lines 505-507 and changed line 508 to increment the index by one instead of 4. Now it works - All 72 bytes are sent correctly.
What did I do wrong with my original attempt?
Thanks,
Show Lesshello cypress community, this is my first post here, i hope that someone can help me.
i forgot my psoc 4 cy8ckit-042-ble connected to the pc during the windows update and now PSoC creator can't find it.
in the device manager of windows i can find my PSoC board but i can't program it because the software don't find it.
i use a psoc 4 cy8ckit-042-ble. when i connect the board to the usb port the led turn on for few second and after turn off, such as the board isn't connected.
scuse me for my english, thanks to all and good work!
edit
in the device manager i find "kitprog programmer" and "kitprog uart" in the group of "other device" with an another called "unknown device", all three icons show a yellow triangle with this symbol "!" inside.
Show LessHello,
I have just experienced an issue using the component window for the ADC_SAR_Seq component
when debugging a PSoC 4 with PSoC Creator 4.2:
The content of the window won't be updated when program execution stops at a breakpoint.
That made me think the ADC isn't running at all.
But by random we found out that the window is updated after each single step (F10 / F11).
If I start program execution (F5) window contents will be still the same at execution stop
due to breakpoint.
Took me a whole day to find out what's going on 😞
Best regards
Michael
Show LessHi,
We are using PSoC 5LP and also using the SPRINTF function in the firmware.
This product uses μItron compliant RTOS.
(1)
Does the sprintf function in GCC support multitasking?
The current development environment is as follows.
-- PSoc Creator 4.2
-- ARM GCC 5.4-2016-q2-update
-- Linker settings
-- Use Newlib-nano: True
-- Use Newlib-nano Float Formatting: True
We think that sprintf may be causing problems due to simultaneous access from multiple tasks.
So I'm trying to use re-entrant "_sprintf_r".
However, the _reent structure must be defined, and the size of this structure is large and memory overflows.
Looking at the GCC document, it is written that if you define "_REENT_SMALL", the size will be reduced.
However, We don't know how to specify it.
(2)
Do you know how to define "_REENT_SMALL" ?
Regards,
Show Less