PSoC™ 4 Forum Discussions
Hi,
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?
i have a code which has three services and can send data simulataneously to the app with different time intervals.initially when i connect the device gets connected properly and the device gets disconnected after some time and re-connects back as i have auto connectivity implemented in my android application.After a certain number of reconnections it gets status 129 and status 133 and the device stops advertising..
how can i make the device advertise without resetting the device
Show LessHi,
In high frequency clocks of PSoC Creator 3.3, what are cap trim in and cap trim out in ECO?
Can I change these values to tune ECO more accurate based on “PSoC® 4/PRoC™ BLE Crystal Oscillator Selection
and Tuning Techniques”?
Show LessHi
I am using cy8ckit -042 BLE kits and using example from the in-built examples using from PROC 4200 and selected ADC_SAR_Seq_DieTemp_PSoC4 and using the target as CYBL10563-56LQXI and giving connections from P1.5 to P12.6 and P3.0 to GND on J1.and using RS-232 with baud rate as 115200,9600,57600 and launching it on teraterm on windows 8.1 and receiving some data which is not accurate.
Please do let us know where we are going wrong.
These are the screenshots of the connections and also the RS-232.
Thanks
Srujani
Show Less