PSoC™ 4 Forum Discussions
Hello,
I am using CYBLE-212019 with a single stack bootloader. I was able to successfully bootload a string image using an external embedded host over UART. During bootloading, bootloader reported error 0x4004. From cybtldr_utils.h, 0x4004 is a combination of CYRET_ERR_BTLDR_MASK and CYRET_ERR_DATA.
I regenerated .cyacd file and started bootloading again. The headers(first line in .cyacd file) are verified but there is no response from the bootloader for the string line sent over UART. Embedded host is infinitely waiting for the bootloader response. Any suggestions on how to debug this?
EDIT:
Code is getting stuck in
int CyBtldr_TransferData(unsigned char* inBuf, int inSize, unsigned char* outBuf, int outSize)
{
int err = g_comm->WriteData(inBuf, inSize);
if (CYRET_SUCCESS == err){
err = g_comm->ReadData(outBuf, outSize);
}
if (CYRET_SUCCESS != err)
err |= CYRET_ERR_COMM_MASK;
return err;
}
g_comm->ReadData() is infinitely waiting for the bootloader response.
OSCILLOSCOPE:
On the scope, BLE UART signal doesn't look like a square wave. It looks like a RC circuit charging signal. This means that UART is not initialized upon BLE reboot. At this point, it could be because bootloader didn't kick in or the chip went bad. I doubt the second is true. While I can always reflash bootloader using the SWD interface, I want to debug this issue without re-flashing bootloader and understand the reason for corruption and how to overcome it. Any ideas on how to proceed on this?
Thanks
Dheeraj
Show LessIn my application i am calling Bootloadable_Load() function after button press and i am not able to come out of that function if i didnt start bootload host application.
I need to know if there is any timeout function for coming out of Bootloadable_Load() function.
Show LessLet me first explain what I want to achieve (I'm using the CY8CKIT-042-BLE).
I have two standalone BLE dev kit modules and I want to connect and communicate between them (one module act as HID server one module as HID client).
The connection should go pretty straight forward: server searches for devices that are in pairing mode and starts auto pair process until connected.
The communication should go entirely standalone (paring process and communications process), no host system or PC is hooked up.
So far I'm able to setup the HID client using the descriptors connecting to a regular Windows PC. This is actually pretty easy to setup (HID mouse / HID keyboard code examples were a great help).
But now I want to connect to another Cypress Module that acts as a HID server. What I want to achieve is that the HID client (mouse for example) can operate a LED on the HID server side. This should work as a standalone setup.
Eventually I also want to be able to use a BLE mouse from the store and hook it up to the HID server (which is the standalone cypress module).
Short summary:
After auto-pairing the client sends HID descriptors and server interprets HID descriptors and turns on a LED based on a certain event.
Questions:
- How can this be achieved (the server implementation)?
- Is there an example project?
Thanks in advance,
Paul
Show LessI wanted to add the TMC2130Stepper library to my project, and I followed these tutorials to do so:
http://www.cypress.com/video-library/PSoC/psoc-creator-tutorial-creating-library-project/107976
http://www.cypress.com/video-library/PSoC/psoc-creator-tutorial-adding-library-dependency/107961
When I made my main project, ADC_Tester, dependent upon the library project, I checked both the Component and the Code options...however, I only need it to be dependent on the Code, because I have the SPI_Master component setup such that it handles all the data control to the TMC2130 (all I need are output pins for the SPI lines and Direction, Step, Enable (digital output.)) So, I haven't (yet?) made a custom component for the project library seeing as I don't think I need it.
When I Build the Application, I find that I am unable to #include the library. The following error shows up: " 'TMC2130Stepper.h' file not found. Try building the project to generate the missing file or update the project's code dependencies." I triple-checked the file path to be sure it's located in the same Project folder as ADC_Tester.
No idea what to do from here, any suggestions would be of great service.
-Anthony
Show LessHello everyone,
I've designed a PCB with the ProC4 IC.
I'm encountering an issue when trying to debug my project. It falls into the CyClockStartupError function and I can't understand why.
This is the second revision of the board, before it worked without any problems. The only change I made between the two boards are the 24 MHz and 32768 kHz crystals.
Before were a 581-ST2012SB32E0HPWB from Mouser and a 775-3710 from RS Components.
Now the devices are XC1947CT-ND and XC1842TR-ND from Digikey.
Theoretically there are no differences between the oscillators, only on the load capacitance of the 24 MHz xtal.
I've changed the "Capacitance Trim Value" in the ECO section, but without any results.
The strange thing is that, if I upload the firmware on the demoboard or on the older board, it works. The demoboard crystals are again different than my first board.
Any help would be very appreciated.
Thank you!
Andrea
Show LessHello.
Could you please send capsense button FW of below link document(P24 and P25, Figure 2-15. CapSense Buttons Service)?
=> http://www.cypress.com/file/198616/download
I found FW of proximity and slider from CY8CKIT-042-BLE sample FW.
But I could not find button FW.
Best Regards.
Yutaka Matsubara
Show LessIn the following video, the hex ID for the CapSense profile is used: PSoC 4 BLE 101: 4. Add a Custom CapSense Service - YouTube
What other profiles are already built-in?
Show LessIf I use a PSoC/PRoC BLE module such as CYBLE-022001 in a product, do I need to register with the Bluetooth group to get a vendor ID?
I already have a block of MAC addresses to uniquely identify each unit.
Show LessI'm not particularly knowledgeable about the names of electronic hardware components - or if such items exist - or where to get them.
I'm thinking that I want to put physical headers on the J1 and J2 positions on the -043 kit so that we can use male-to-male jumper wires.
What would these be called? Can they even be found? Where?
If 1 row X 29 position headers aren't available, how would you suggest shorter headers be distributed?
Also -- can I use a USB A - USB A cable to connect the -043 to my desktop computer?
Show LessI'm new to the product line. In familiarizing myself with PSoC Creator, I've created a couple of dummy projects. One, using CYBLE-214015-01, I get cool stuff like Logic/Utility, debouncer, flip-flops, etc. Using the CYBLE-022001-00, I don't have nearly as many toys to play with.
Is this simply because the 022001 has fewer available functions and primitives, or do I have a configuration screwed up? The part in the design is the 002201, so I'm really hoping I just have a configuration problem. I don't want to leave that many toys on the table if I can help it.
Thanks!
Show Less