PSoC™ 4 Forum Discussions
Hi,
I'm using a CY8C4147AZS-S475 microcontroller coupled with a LIN tranciever to communicate on a LIN network. I need to wake-up from DeepSleep condition when there is activity on the LIN network. When the tranciever is in low power mode and detect an activity on the network, it changes the state of the LIN:SCB:rx pin from high to low, when this happen i want the microcontroller to wake up.
I thought to connect an interrupt block to the LIN:SCB:rx pin to generate a wake-up interrupt, but it is not possible from the PSoC Creator.
I also tried to configure a Global Signal block in 'AllPortInt' configuration and set the LIN:SCB:rx pin in interrupt mode but it dosn't work.
Does anyone know how to do that?
Regards
Simone
Show LessHi all,
CapSense component that my project used is CapSense CSD[V2.60],now i want to change it to CapSense[V6.0] on the basis of the original project.
So,what code that i should modify to make it works,project attached.
Thanks.
Best Regards,
Leo
Show LessHi there,
I am currently working on a Project where I want to connect my Psoc4 BLE with a Sensor which should send me Lux values.
My Psoc is set up as a GAP Peripheral and Gatt Client.
I discovered that I can only get those values if i am paired with the Sensor.
Is there any Example which covers this or anything where I can get information about how I should do this?
Thanks
Chris
Show LessGood afternoon,'m developing a new project where I've severall peripherals in use such as RTC, BLE, Capsense, UART, PWM, ADC and I want to detect a power failure, put in sleep mode and then only keep update the RTC and check if the power is back again.
I've managed already the rtc using an interruption and external crystal timer, but when i try CySysPmDeepSleep(); it does not work properly.
Do you have any advice how to do it? is there already someone that did a similar thing?
Best Regards,
Carlos
Is there a way to have software running on the PSOC generate a signal that can be fed into the digital logic section of the chip? How would I implement such a thing? I know that some APIs for the certain functions (PWMs, counters etc) give software access to those controls but what about simple logic such as logic gate inputs, flip flop inputs etc.
thanks
Show LessHello-
I have an existing project where the Peripheral is not setting the manufacturing data to companyid 305 which is Cypress according to Bluetooth Specifications:
https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers
I am using a Central BLE app that is running the Cypress 100 Projects in 100 days (Day 20) UART to BLE Central project:
My question is it possible to connect to the peripheral without having this manufacturing data? I see code that is looking for this but I am not sure whether it is required or not.
File: app_Ble.c
case CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT:
advReport = (CYBLE_GAPC_ADV_REPORT_T *) eventParam;
/* check if report has manfacturing data corresponding to the intended matching peer */
if((advReport->eventType == CYBLE_GAPC_SCAN_RSP) && (advReport->dataLen == 0x06) \
&& (advReport->data[1] == 0xff) && (advReport->data[2] == 0x31) \
&& (advReport->data[3] == 0x01) && (advReport->data[4] == 0x3b) \
&& (advReport->data[5] == 0x04))
{
peerDeviceFound = true;
memcpy(peerAddr.bdAddr, advReport->peerBdAddr, sizeof(peerAddr.bdAddr));
peerAddr.type = advReport->peerAddrType;
#ifdef PRINT_MESSAGE_LOG
UART_UartPutString("\n\r\n\rServer with matching custom service discovered...");
#endif
}
break;
Thanks,
Rohan
Show LessI have a project on a PSoC 4200 BLE which uses a lot of RAM (about 2k remaining). I'm using FreeRTOS, but because I'm only using static allocation, I have the heap size set to 0 to give my application as much RAM as possible.
I recently started trying to implement an Upgradeable Stack Bootloader for this project, following the instructions in AN97060. After making the required changes to my project, the application project fails to build with error M0120 (section '.heap' will not fit in region '.ram").
This seems to be caused by the custom linker script from the OTA changes needing heap space which I don't have room for. I see that the BLE component datasheet says that for the stack-only BLE component in the stack project, "requires approximately 3024 additional bytes of heap memory".
My questions are:
1: Why does having the component in stack-only mode require any heap space when having OTA disabled does not?
2: Why is this heap space necessary when the stack is being used by the application rather than just by the stack application? The component works fine with no heap space when OTA is disabled.
3: Is there any way around this problem or can I not do OTA firmware upgrade when my application requires most of the PSoC's RAM, even if most of that RAM is available to the stack application when the real application isn't running?
Thanks.
Show LessIt appears that since the 2.0 rewrite of the Emulated EEPROM component, it now supports PSoC 4 with BLE. I'm trying to use this component in one of my projects and I'm running into an issue.
I can read from the emulated EEPROM without issue, but when I try to write to it, I end up in the default interrupt handler, so something is clearly going wrong in the hardware.
The CE195313 project works perfectly on my hardware, so it's not a board issue. I've duplicated the code from the example and also made sure that my component and clock configurations match. The only real difference that I can find is that because the example code is pretty small, the area of flash that gets allocated to the emulated EEPROM is pretty low in the address space (0x00001300), and in my project, which has a lot of code in it, it's pretty high (0x0001BC00). I wouldn't expect this to make a difference, but maybe it does...?
The documentation for this new rewritten component is unfortunately not very complete and not quite in English, so I don't have much to go on. Does anyone have any insight?
Thanks.
Show LessHello-
Can someone tell me what is the minimum requirement needed to make a BLE connections to the UART_to_BLE_Central and UART_to_BLE_Peripheral projects? I am trying to connect to a custom device running this code using Bluetooth4 BLE protocols.
Is it only Bluetooth Address? Or UUID? Or Manufacturing Data? Some sample code to establish connection would be greatly appreciated.
Thank you
Rohan
Show LessSomething I found useful and i would like to share with the community in order to have a better view on touch sensor design cycles.
A capacitive touch sensor design is not an easy task.
Designers have to make a lot of decisions and consider many factors. New components find their way into the design along the way, so ensuring that they all work together is key.
The touch sensor design is split in two parts:
1) the mechanical design of the sensor
2) the controller programming and tuning
The designer chooses a sensor pattern (e.g. Double Diamond), stack-up materials and a touch sensor controller.
Then follows the controller-sensor system testing (with prototyping or simulation), to make sure they are working well together. If they are not compatible, the designer might have to go back to the previous stage and change the sensor pattern or its parameters or tweak the configuration of the controller.
There can be 3-6 cycles per design till we reach a design that fulfills the requirements. The more re-designs we do, the more prototypes we need to build. By creating virtual prototypes though and test them, we ensure that only the best design reaches the prototyping stage and is compatible with the controller of our choice. You can read the whole article here.
Show Less