PSoC™ 4 Forum Discussions
text.format{('custom.tabs.no.results')}
Hi, guys:
I modified AN89056_FLASH from AN89056 sample code and tried to run on PSoC4100S+256K (CY8C4148AZQ-S455). But I got error message as following:
Test Counter = 007E
Error: FLASH
FLASH CHECKSUM: D6117B4D252189BB
The test failed always on test counter 007E. But I don't understand why since it is successful between test counter 00 to 7D. Can anyone help on what's wrong.
BR, Maurice
Show LessI can't seem to find the UART_Bootloader_Host example referenced in AN68272. Does anyone happen to know where to find it?
I have a CY8C4246PVI-DS402 that I am using to control a LIN module based on an input trigger. The input trigger comes form a NC solid-state relay. When I apply the ground trigger, the output voltage is removed, and the LIN module transmits the correct messages. However, when I remove the ground trigger, it seems that my MCU is damaged. When I reapply the ground trigger, the LIN module no longer transmits. I'm also no longer able to program the MCU.
My software only monitors the trigger input to send the chip select and LIN messages to the LIN module. Also, the MCU clock is configured at 48 MHz.
This design has worked on previous projects. The only difference I notice is the my software has the clock at 48 MHz, while the older is at 24 MHz. Can relay noise combined with higher clock frequency damage the MCU? Any advice is appreciated.
Show LessHi Support Team
The medical keyboard and industrial keyboard support USB or BLE connection or Touch. What components do you have for these application? We plan to promote components for customer. Many thanks.
Show Less
I frequently check data through SW Download and I2C communication with MiniProg4, but it can be inconvenient because the two ports are separated. So, I am using these two ports connected, and there is no problem. In the case of MiniProg4, can it be used by connecting SWD and I2C? Is it not a problem because SWD and I2C never operate at the same time?
Hi, I am using the Psoc 4100 s max microcontroller in which CY8C4149AZI-S598 mcu used. Can you please help in finding out which pins we can configure for SPI communication in this microcontroller. I am unable to find out these and also dont have pinout diagram for that.
Show LessHi, Community,
I am trying to do an I2C communication project with CY8CKIT-041S-MAX.
I have almost finished writing the code, but when I build, I get an error about Cy_SCB_I2C_Enable (cy_scb_i2c.h).
I found a similar phenomenon in PSoC6 post.
To solve this problem, I tried to add the necessary files in the library manager, but that did not solve the problem.
If you know the best way to deal with this error, please let me know.
The error message is as below:
C:/xxx/build/APP_CY8CKIT-041S-MAX/Debug/main.o: in function `Cy_SCB_I2C_Enable':
make: *** [../mtb_shared/core-make/release-v3.2.2/make/core/main.mk:374: secondstage_build] Error 2
make[1]: *** [../mtb_shared/core-make/release-v3.2.2/make/core/build.mk:422: C:/xxx/build/APP_CY8CKIT-041S-MAX/Debug/mtb-example-psoc4-empty-app.elf] Error 1
undefined reference to `sI2C_InterruptHandler'
Best Regards,
Although the project build automatically saves the C files, it does not save any edited assembly files. Is there a way to force these files to save before building the project?
Show LessI am using Psoc Creator with cy8ckit-42 with a lengthy assembly file added to the simple blinky project. While the code has been building and running successfully and as it has gotten larger, adding an additional instance of a macro running correctly in other parts of the code causes the M0120 build error:
Build error: invalid offset, value too big (0x00000404)
The macro only accesses registers but has the instruction "ldr r1,=0x00010000" The disassembly shows the constant is accessed with a pc offset in another instance so I guess it must be this offset that is too large. Is the only way to deal with this is to declare the constant in memory? Thanks very much.
Show LessI have a product that uses a PSOC 4200 BLE. Customers complain that every couple of weeks or so, the BLE stops advertising. So it's a bug that pops up rarely. But it's pretty bad when it does! CyBle_SoftReset(); is not enough to bring the bluetooth back to life.
I don't know what it causing the bug, but I suspect the deep sleep transition. I am finding conflicting ideas regarding the allowable BLESS state for CPU Deep Sleep.
Here's the relevant part of my code:
blePower = CyBle_GetBleSsState();
if(blePower == CYBLE_BLESS_STATE_DEEPSLEEP || blePower == CYBLE_BLESS_STATE_ECO_ON)
{
st = SYS_ST_WAKE_FROM_DEEPSLEEP;
/* C11. Put system into Deep-Sleep mode*/
CySysPmDeepSleep();
}
In the auto-generated CyBle_Stack.h, I see that it is OK to put CPU to deep sleep with the CYBLE_BLESS_STATE_ECO_ON state:
/******************************************************************************
* Function Name: CyBle_GetBleSsState
***************************************************************************//...
* <td>CYBLE_BLESS_STATE_ECO_ON</td>
* <td>BLE Sub System is in process of wakeup from Deep Sleep Mode and ECO(XTAL) is turned on.
* CPU can be put in Deep Sleep Mode.</td>
* </tr>
...
* <td>CYBLE_BLESS_STATE_DEEPSLEEP</td>
* <td>BLE Sub System is in Deep Sleep Mode. CPU can be put in Deep Sleep Mode.</td>
* </tr>
...
CYBLE_BLESS_STATE_T CyBle_GetBleSsState(void);
However, I see here: https://github.com/cypress-speedycat/EasySleep/blob/master/source/EasySleep.c
that there is some controversy about using CYBLE_BLESS_STATE_ECO_ON as a valid state before entering deep sleep mode:
// NOTE: CyBle_GetBleSsState says CPU can be put to DeepSleep upon
// ECO_ON too, but that does not make sense since BLE is waking
// up then
Could an expert chime in on this? Is there a mistake in the CyBle_Stack.h file?