PSoC™ 4 Forum Discussions
Hi,
I have successfully written code to write the Device ID to row 0 of SFLASH. Questions:
Is row0 the designated spot for the Device ID? Just the first six bytes?
Is the SFLASH preserved during programming? We would want to be able to update firmware while preserving the Device ID.
Right now I program the Device ID before BLE initialization, we will normally program it after. What is the proper way to get the device in the state for SFLASH programming? It does not work after our initialization (Including BLE init).
cybl10563-56lqxi (PRoC)
Thanks
Rich
Show LessHello!
Is it possible to turn a PSoC 4 into an HID via software? has any user in this forum got something like this to work?
I want to emulate a keyboard which will get what data to send thru UART from a PC.
Thanks and regards!
Show LessHi,
I have the CY8KIT-042-BLE with onboard kitProg, I am trying to debug an CYBLE-012011-00 that I wired to J11.
Communication fails almost all the time, wires are certainly too long (40mm). It's sometimes recognized but the looses the communication.
By default PSoC programmer and PSoC Creator have SWD set to 1.6MHz. I reduced the second to 0.2MHz but setting doesn't seem accessible for the first. Still doesn't work.
Then I probe SWDCLK: it's bursting at 4.5MHz !!! no matter the setting, it's just trying to communicate at 4.5MHz, how can I reduce this?
Thank you,
Jerome
Show LessHi,
I have to write an own GUI Based Bootloader software for a PSOC BLE module. To save time, I would like to adapt the new software to the already prepared Visual Studio example project from Cypress. This software is included in "AN68272 (PSoC Creator 3.1 CP1).zip" If I debug this project and try to bootload a file, I always get an exception "System.BadImageFormatException". I use Visual Studio 2015 and tested the debug function with 3 different .cyacd files (generated by Cypress). So I think there must be an error in the published source code... Can anyone retrace this error?
Thanks in advance!
Pascal
Show LessHi folks,
I'm trying to embed some inline assembly in my project to work around areas where I can't get the compiler and optimizer to do what I want.
I pulled the lst file for the main loop, and I can see a couple of places that I want to tweak, to save a few precious clock cycles. What has me confused is that the lst formatting looks like ARM assembly, but AN89610 (Code Optimization document for PSOC 4) says that PSOC 4 uses Thumb 2.
Is there a way to choose ARM or Thumb?
I modified the main loop portion of the lst code, and swapped it in within asm(" .... "); The result is a "Cannot represent THUMB_OFFSET relocation in this object file" error during build. There's a referenced .s file and line number, but I can't find the actual file. I'm guessing it's just temporary during the build process....?
At this point, I'm getting almost the performance I need from my solution in C, but I have tried many variants, and only been able to find options that don't work. I do think I need the extra savings I can get from using assembly in the critical sections.
Thanks for the help,
Edit: I think I see the cause of the error: I missed that an array I'm using is represented as a label within the assembly block. I'll need to fix the assembly to correct address the array. I'm still rather confused about the ARM vs. Thumb stuff, though.
Paul
Show LessUsing the kit, I do a lot of printf serial debugging via COM port and Putty. Is there a way I can do the same with the MiniProg? The reason being that I'm testing 2 devices, Central and Peripheral, and only have one kit and one MiniProg. If there's any past discussion, please feel free to point me in the right direction. I can't seem to find much specifically addressing it.
Show LessHas anyone interfaced a PRoC BLE using with Invensense MPU-9250? I am just starting a major project with limited I2C experience. I perhaps prefer SPI but looking for any tips and code that may be available out there to help kick things along?
I have the PRoC BLE working with UART for transferring data to Android APPS, just looking at incorporating motion and sensing data to the whole process.
Show LessHi,
I have successfully written code to write the Device ID to row 0 of SFLASH. Questions:
Is row0 the designated spot for the Device ID? Just the first six bytes?
Is the SFLASH preserved during programming? We would want to be able to update firmware while preserving the Device ID.
Right now I program the Device ID before BLE initialization, we will normally program it after. What is the proper way to get the device in the state for SFLASH programming? It does not work after our initialization (Including BLE init).
cybl10563-56lqxi
Thanks
Rich
Show LessI'm currently working on a BLE project with PSoC 4. Since today everything worked fine. But now I'm facing the error "undefined reference to main" every time I compile my project. Didn't change anything on the project or code since the last successful compilation.
Hope you can help me.
Is there anyone with experience in doing this?
I'm writing a bootloader host program inside linux user space to talk the PSoC slave touchpad through I2C. I'm setting up the communication channel with ioctl commands and then using a the simple read and write functions to talk to it. The read command defaults to a register read (So, Write- [Slave Addr][Register Addr] Read- [Slave Addr][Read Data]). Looking at some of the data sheets on communication with the bootloader, when the host is trying to talk to the bootloader and it wants to read the response package from the bootloader there is no initial write command because it isn't trying to access the register. It looks like the host program is just supposed to send the slave address with the read bit set and then read out the response.(So, Read- [Slave Addr][Read Data]. As a result I've been getting communication failures when attempting to read a response.
Is this the correct way to interface with the bootloader? Are their linux commands that don't involve an initial register write and just force a read?