PSoC™ 4 Forum Discussions
I want to store data that is defined as a large array that is about 20K in flash using const.So can I use the CyBle_StoreAppData? Or should I calculate the store address and use the CySysFlashWriteRow() . Thanks!
Show LessWe are designing a development board for internal use that will allow us to test the BGA and Module version of the PSoC BLE one at a time and from one MiniProg, one set of sensors on the i2c bus etc. Would having a switch to power down one PSoC allow the other (which is powered on) to be programed ok? We could then flip the switch and perform the same test on the other PSoC.
Thanks,
Nick
Show LessI have a custom board with a MMA8653FC accelerometer.
It has the I2C interface and the spec says that the address of the interface is 0x1D
I set up a SCP_P4 component as an I2C master
Assigned SCL and SDA of the component to CYBLE according to the board schematic, SCL to pin 19 and SDA to pin 18
I'm getting a Accel_I2C_MSTR_ERR_LB_NAK error in Accel_I2CMasterSendStart routine
Also board schematic shows that INT1 and INT2 from the accelerometer are assigned to pins 6 and 9 of the CYBLE-022001-0.
I don't know how to do that in PSoC creator.
Your help is much appreciated.
Project is attached
Thanks
Andy
Show LessHello,
I am a newbie with programming and I am having trouble getting my interrupts to work the way I want them to for my application. I want to send serial data over the UART to the PSoC, store the values every second, and then echo back the stored values. I am using a RX interrupt (RX FIFO not empty, priority 2) and a timer interrupt with the TC (priority 3). Attached is the TopDesign configuration. Currently, I am trying to get this code to work (just a sample code to see if I can get the interrupts to work correctly). I send the PSoC a string containing a character 'o', I should be reading only 'o' and '-', but the code always gets stuck in one of the interrupts with the other one never working. Could anyone tell me what I am doing incorrectly? Much appreciated!
Attached is the Top Design. The board is CY8CKIT-042
#include <project.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
uint16 ms_count = 0;
uint8 ch;
CY_ISR_PROTO(Timer_ISR);
CY_ISR_PROTO(RX_ISR);
CY_ISR(Timer_ISR){//Every millisecond, the code goes here
ms_count++;
if (ms_count == 1000){//Every second
ms_count = 0;
LED_Write(!LED_Read());
while(ch != 'o')UART_UartPutChar('-');
}
}
CY_ISR(RX_ISR){
uint8 status = UART_rx_ClearInterrupt();//Clear interrupt flag
uint8 sub;
sub = UART_UartGetChar();
if (sub != 0u){//Make sure grabbed character is not an empty
ch = sub;
if (ch == 'o'){
UART_UartPutChar(ch);
}
}
}
int main()
{
/* Start SCB UART TX+RX operation */
Timer_1_Start();
Time_ISR_StartEx(Timer_ISR);
RX_ISR_StartEx(RX_ISR);
CyGlobalIntEnable;
/* Start SCB UART TX+RX operation */
UART_Start();
UART_UartPutString("fdssf\n");
for(;;)
{
}
}
Hi,
I am curious to know if it's possible to get access to the I/O for an SCB component. Unlike the UDB components, they are wired up to some default pins, and the I/O is not available in the schematic.
However, looking at the schematic for the SCB UART, I can see that there are nets in there that I might connect to.
My question is: If I cloned the SCB UART component, and changed the schematic, would I be able to edit it in such a way as to gain access to these nets?
Hugo
Show LessI've read several posts to understand a way of changing a device name within the application, for example, getting a string "MyName", calling CyBle_GapSetLocalName("MyName") to set it up, and calling a function to have the new name in the advertisement/scan response packages. I was wondering if calling CyBle_StoreStackData after CyBle_GapSetLocalName would lock in the changes of both LocalName and the advertisement packets after a power cycle? If not, what types of changes are saved with CyBle_StoreStackData?
Show LessI need to implement both RTC and a watchdog timer on PRoC CYBLE-022001-00
I found this example for RTC
and Day 45 project for a watchdog timer
But both of them are PSoC specific
Are there similar samples that would work on PRoC?
Or how can the existing samples be modified to work on PRoC?
Thanks
Andy
Show Less