PSoC™ 6 Forum Discussions
text.format{('custom.tabs.no.results')}
GPIO LED on my PCB works well and I can toggle them on/off normally.
I am trying to add a timer that will help me to toggle them when I want without the use of delays.
I am using a CYBLE-416045-02 and a MiniProg4 for programming. Code is written in PSOC Creator 4.4.
The project compiles and programs fine, but LEDs only toggle when interrupts are disabled (ie. When I comment out __enable_irq();).
Please help, thank you.
uint16 uiBlinkTimer = BLINKTIME;
bool pinReadValue;
int main(void) {
__enable_irq(); /* Enable global interrupts. */
// Start Timer and interrupt
ms_timer_Start();
Cy_SysInt_Init(&timer_isr_cfg, &timer_isr_handler); // bind interrupt to handler
NVIC_EnableIRQ(timer_isr_cfg.intrSrc); // enable timer interrupt
Cy_GPIO_Write(RedLED_0_PORT, RedLED_0_NUM, LEDON);
Cy_GPIO_Write(GreenLED_0_PORT, GreenLED_0_NUM, LEDON);
CyDelay(500);
Cy_GPIO_Write(RedLED_0_PORT, RedLED_0_NUM, LEDOFF);
Cy_GPIO_Write(GreenLED_0_PORT, GreenLED_0_NUM, LEDOFF);
CyDelay(500);
pinReadValue = LEDOFF;
for(;;)
{
Cy_GPIO_Write(RedLED_0_PORT, RedLED_0_NUM, LEDON);
Cy_GPIO_Write(GreenLED_0_PORT, GreenLED_0_NUM, LEDON);
CyDelay(250);
Cy_GPIO_Write(RedLED_0_PORT, RedLED_0_NUM, LEDOFF);
Cy_GPIO_Write(GreenLED_0_PORT, GreenLED_0_NUM, LEDOFF);
CyDelay(250);
if(!uiBlinkTimer)
{
if(pinReadValue == LEDOFF)
{
Cy_GPIO_Write(RedLED_0_PORT, RedLED_0_NUM, LEDON);
Cy_GPIO_Write(GreenLED_0_PORT, GreenLED_0_NUM, LEDON);
pinReadValue = LEDON;
}
else
{
Cy_GPIO_Write(RedLED_0_PORT, RedLED_0_NUM, LEDOFF);
Cy_GPIO_Write(GreenLED_0_PORT, GreenLED_0_NUM, LEDOFF);
pinReadValue = LEDOFF;
}
uiBlinkTimer = BLINKTIME;
}
/* Place your application code here. */
}
}
// Timer used is ms_timer
// 1 interrupt / ms
void timer_isr_handler() {
if(uiBlinkTimer)
uiBlinkTimer--;
NVIC_ClearPendingIRQ(timer_isr_cfg.intrSrc);
ms_timer_ClearInterrupt(ms_timer_CNT_NUM);
}
Show Less
I've just acquired a CY8CKIT-062-BLE (Rev D) and have updated to KitProg3 as indicated in the board documentation
I have tried everything I can think of to communicate with the board via CMSIS-DAP in KitProg3 mode. (See details below)
I've deleted Windows drivers under device manager, I've tried a couple of versions of KitProg3 firmware (the one automatically installed by PsoC Programmer and latest via fw-loader from Github. Nothing working.
Any suggestions where to go next - it is almost like my Winusb driver is wrong device Ids or something?
Various attempts:
I have tried openocd supplied in the tools folder of ModusToolBox with the following error:
I've tried PSocProgrammer which fails with "Failed Connect to at 12:38:27 | Can't Open CMSIS-DAP port"
I've tried "Cypress Programmer":
Show Less
Hi,
1. Where can we find the BT SIG Declarations / QDID for the latest stack?
2. Also wonder how the bless / api layer corresponds to the listing itself?
3. Where can I find the release-number and change-notes for the latest BT stack?
/d
Show LessHi
I am using the DMA Tx and Rx with a UART following code example CE219656.
I am trying to understand the rules for data size and I did tested several size combinations for data_size, src_size and dst_size.
I think the UART buffer is 1-byte, but the UART functions are defined as 4-bytes.
In the code example, the DMA_buffers ("RxDmaUartBufferA and RxDmaUartBufferB") are also 1-byte.
Not all the data/src/dst-size combinations work, very few are sucessful in echoing data to/from the UART, others do not lead to any serial transfer, there is no activity on the serial port. I tabulated the size combinations. I am trying to decipher the size rules that can lead to the expected operation. Any hints ?
thanks
Show Less
Specifically, what is different between CY8C624ABZI-S2D44 and CY8C624ABZI-S2D44A0 ?
Greg
Hi,
I'm trying to do a relatively simple project to get a understanding of the PSoC6 with a pioneer kit.
I'm currently using the CY8CKIT-062-BLE in Modus Toolbox
The Project id like to compile would have a "breathing" LED on the RGB LED 5, and the pace at which the LED "breaths" be varied by the CAPSENSE slider. If possible id like to connect the slider to CYSMART and control the "breathing" rate from my phone but I have no clue where to start.
Thanks for any help,
Ryan
Show LessI am trying to erase 30 rows on a CY8C624FTI-D52 but am finding the processor will often reset (~30%) while calling Cy_FlashEraseRow in a loop. If I instead just Cy_FlashWriteRow with 0's it never resets. Any idea what might cause this? I am thinking it must be a symptom of some other problem I need to find.
Show LessWhen I try to program the psoc 6 on a custom PCB in Creator I get the error:
Error: dbg.M0023: There was an error while programming the device: PSoC Programmer reported error (100 - EraseAll API returned: Error code 0x00000094: Unknown SROM status code)
When I look this up, the answers point to the psoc programming pins not being connected properly. I’ve checked that reset, clk and data all go to the correct psoc pins. I’ve measured that reset is pulled up to 1.8V as it should be, and that the 1.8V on the mini prog connector is indeed 1.8V. And there are no shorts between reset, clk, data and ground or each other.
Weirdly if I try to program in Cypress Programmer it actually does program correctly.
Any ideas on why it won’t program in Creator?
Just to confirm Creator is working I programmed a completely different PCB with a psoc 6 successfully.
Show LessHi,
I bought a CY8CPROTO-062-4343W to prototype a CSX touchpad. I was looking for a guide to develop properly but I was not able to find any code example of PSoc 6 on Eclipse IDE Modus Toolbox for CSX touchpad.
Could you please advise on :
1. Where can I find an integrated guide for CSX touchpad PCB design on CY8CPROTO-062-4343W?
2. How can I find a code example to know the correct way of coding for CSX touchpad PCB design on CY8CPROTO-062-4343W using Eclipse IDE Modus Toolbox.
Thanks in advance,
I have gone through example codes and documentation of using capsense on my CY8CPROTO-062-4343W Kit, i am not sure how capsense is communicating with PSoC 6. I'd Appreciate the help. thanks.
Show Less