Quantcast
Channel: Cypress Semiconductor - PSoC 4 Architecture
Viewing all 764 articles
Browse latest View live

Debugging USB on psoc 4200L

$
0
0

I've iterated several hardware designs but everything I try leads to a code 43 error. I'm using osh park to manufacture the boards. Using Saturn PCB design I've calculated the impedance width of 45 mil. I've included my design files. What do I need to change to get it to work appropriately? 

The only time I've had any success is when I do not copper fill the entire board and route the traces without any tvs, resistors, or capactors attached. Yet without the tvs, its functionality lasted only a couple of hours before it was no longer functional. Thanks for the help.

 

 


Output pins with optional PWM

$
0
0

I want to have four output pins that can optionally use either PWM or bit-bang control. I'd like to be able to change them on the fly and, ideally, independently of one another. Can anyone suggest the simplest approach to this?

I'm thinking that perhaps the simplest approach is to simply toggle them between 100% and 0% when I want to use them in bit-bang mode. Otherwise, I would need four independant muxes. Thoughts?

CY8CKIT-042-BLE-PSoC4-Pioneer Kit Debug Problem About CYBLE-212006-01

speed MOTOR BLDC (brushless)

$
0
0

good morning evry one

Am working on a project with psoc 4, i want to pilot a motor brushless with a drive carte "BLHD30K", and i want to calculat the speed motor!!

this drive carte give a Pulse signals (pulse width: 0.3 ms) of 30 pulses per revolution of the motor output shaft are output in synchronism with the motor drive.
Motor speed can be calculated by measuring the SPEED output frequency.

Motor speed [tr/min] =(SPEED output frequency (hz)*60)/30

SPEED output frequency =1/T
 

like that i can also calculat the position of the motor by using an interruption every 30pulse -----> one revolution (tour),

but i dont khnow how to calculat that? any idea !!

thank you

Attachments: 

What resistance parameters

$
0
0

I want to use thermistor component in my design. Default values is max 50 degrees but I need 100.

What resistance parameters I need enter to configuration ?

 

Attachments: 

PSoC Bootloader writing Metadata Row after every reset

$
0
0

Hi All,

in order to change or repair any metadata rows, the PSoC Bootloader component v1.50 calls the SetActiveAppInMetadata() function after each reset (near the end of the Bootloader_Start() function).

This function then calls ...SetFlashByte(), which will call CySysFlashWriteRow() (in Flash.c, see code location pictures in attachment).

In most cases the active app (and all the other metadata content) would stay the same, because it only changes when uploading a new firmware through the bootloader. The above mentioned calls are performed even if the content of the metadata row does not see any change. So am I missing something here, or is the bootloader indeed erasing and programming the metadata rows each time and thereby wasting a flash write cycle at each reset?

Kind regards.

BLE embedded network architecture organization

$
0
0

Hello to all.

Please find attached the image that show architecture of the embedded system I'm working on.

As it can be seen there is one main embedded device (Hub) and a number of peripheral embedded devices. Number of mobile phones with installed application can communicate with the main embedded device, but there is no need to support simultaneously more than one connection with the mobile phones. Minimal setup will be one main device, two peripheral and one mobile phone. But user can add new peripheral device whenever he wants. I still don't know the maximum number of the devices, but lets say up to four peripheral devices.

Here are some observations that could help design the best architecture for this small BLE network that I want to design:

  • All embedded devices should spend as little power as possible :)
  • All embedded devices have CYBLE-022001-00 module on them.
  • Mobile App should connect only to the Hub. Application will be written for both iPhone and Android devices.
  • Only the Hub should be able to connect to the peripheral devices.
  • Peripheral devices have no need to speak to one another. All communication goes through Hub (this can be changed if better solution exists).
  • Only the user that bought the devices should be able to securely connect to the Hub (I guess some password mechanism).
  • Peripheral embedded devices have sensors and buttons. In case that someone presses the button they need to notify the Hub. Hub then can initiate communication with them or with another peripheral embedded device and return some values. Hub also has a button. If someone presses it, he needs to establish communication with some of the peripheral devices (maybe all of them). User can via mobile App request something from Hub. Hub in return may look for that info from one of the peripheral devices.
  • Hub must know that peripheral devices are alive and present. If they are not, he triggers the alarm sound. He should check that for about 10 times in a second.

Questions/Proposals:

  • Let's say mobile phone app plays BLE Central role.
  • Peripheral devices will sometimes be Broadcasters (when they say I'm here, I'm here..., Connect with me ASAPConnect with me ASAP...). I don't want to broadcast sensitive information into the air, that's way I would like to do it when connected with Hub. Does this make sense? And sometimes peripheral devices will be Peripherals (to enable Hub to connect to them).
  • Hub obviously sometimes needs to be Central (when he needs to establish a connection with the peripherals) and sometime needs to be Peripheral (when user via mobile phone application wants to connect to it).
    • Mobile phone can connect to the Hub, only when Hub advertises. When he is connected to the peripheral device then user can't connect to it, right?
    • If the Hub is connected to the mobile phone app, can it then listen to peripherals who are broadcasting?
    • As I see it, if the mobile app is central, and Hub breaks the connection (if he can do it) in order to connect ot some alarming peripheral devices, later on Hub can no longer initiate the connection with the mobile app. Or he can maybe also advertise You can connect with me, You can connect with me... Or the mobile app could be programmed that whenever it sees the Hub, it will automatically connect to it.
  • What kind of mechanism to use to switch Hub from Central to Peripheral. Maybe App should play Peripheral BLE role? 
  • Could adding new peripherals into the system be made automatic, i.e. that Hub recognize new device and start communicate with it, without the user intervention i.e. so that user doesn't need to initiate some kind of pairing mechanism.
  • Can BLE whitelist concept be utilized here? I guess peripheral devices should whitelist the Hub and allow only him to connect to them. When do you put the device in the whitelist?
  • Hub is definitely the bottleneck here. How to setup him the best?

Obviously, I don't have experience with the design of wireless networks. Can any of you guys share their thoughts on this. I would appreciate that much. Be free to ask any question and make any suggestion.

Thanks,

Vojislav

rom overflowed with 0 bytes??? - converted code from matlab to c -

$
0
0

Hi Folks!!!!

I made a big project using matlab and implemented DES, CRC and so on. Because i wanted to use the program on my uC i transformed the code into C. Then i used this code with the PSoC Creator. Everything seemed fine except the errors in the attached image. Now you could think damn there is no space left on the PSoC 4 but why does it say in Error No 4  region 'rom'overflowed by 0 bytes?!?!?! Do you have any suggestions ? I am really thankful for any help !!!

And if there is really no space left on the PSoC, can you please recommend me a PSoC with a greater rom size?

I am looking forward to any suggestions and discussions!

EDIT: I am using the cy8ckit-049-42xx

Attachments: 

capsense doubts

$
0
0

Hi,

I am new to psoc and capsense and trying to make a project using capsense proximity feature in psoc 4200M device. I have following doubts and request the experts to clarify the same

1. What is the difference between Capsense_GetNormalizedDiffCountData and CapSense_GetDiffCountData


2. I would like to get the difference count even if it is negative – is it possible to get difference count in negative as well if the raw count is less than base line

3. Will CapSense_UpdateSensorBaseline update the base line to previous rawcounts – how this function perform – request you to explain.

4. I would like the base line to be updated to present raw count after I read the results of present scan – how can we do this.

5. Is CapSense_ScanSensor a blocking call. How do we know the scan sensor has performed the operations and current scan is over and we can check the results by calling CapSense_CheckIsSensorActive for the current scan

Built-in Self Test APIs problem

$
0
0

Hello,

When I try to compile the code including the function of CapSense_GetSensorCp() in the project with Capsense block,the system always fail with "Build error: undefined reference to `CapSense_GetSensorCp'",anybody know it?

 

Cy8C4246 Emulated EEPROM not compatible

$
0
0

I upgraded a project from a PSoC 1 (Cy8C29566) because I needed more flash.  I got started with a Cy8C4245 because I had a development board.  It had the same flash size as the PSoC 1 so I was able to port the C code and then generate the new components in Creator.  Now that the hardware is working I want to switch to the Cy8C4246AZI-M443 to get more flash.  I created a workspace bundle of the Cy8C4245 project (using the complete option) and then extracted the files into a new folder and renamed the project and workspace.  I then generated and built the project but got some errors on a couple of the pins with interrupts (because the dedicated interrupt box wasn't checked anymore) which I was able to fix and I got the following EEPROM error:

Error in component: EEPROM. The Em_EEPROM_v1_20 component (EEPROM) is not compatible with the selected device. Please check the component datasheet for details on updating to a compatible component.

I checked to see if I needed to update the EEPROM and it says version 1_20 is not compatible and the other version to select 1_10 is also not compatible.  I also don't see the emulated EERPOM component available in the system area of the component catalog to add a new one.  The PSoC4200M family datasheet says emulated EEPROM is supported and I don't see anything saying certain devices aren't supported.

I am working with PSoC Creator 4.0 Update 1 (4.0.0.432).  It looks like this is the latest version.

thanks,

Kim

Sending a Break from a UART SCB - Access Pin Hardware?

$
0
0

Hi,

I am trying to toggle a SCB pin low for 100ms, and then raise it for 10ms, and then go back to normal transmit mode.  Any ideas on how to do this?  I don't know how to access the hardware.

Thank you,
Tom

Where is the SCB_Bootloader project?

$
0
0

Hi all

 

Working with a Psoc CY8CKIT-049-42 development kit. I am following the "getting started" video with Alan Hawes, and have installed the 15.4mb file with all of the documentation and example projects. I cannot for the life of me find the Boatloader example referenced in this video. Where is it supposed to be located? This has been incredibly frustrating, and Im sure I am making a simple error.....
I am going to New - Project - selecting the target hardware - Code Examples
There is no SCB_Bootloader project. And the 2 Bootloader based examples are completely different. 

Any ideas?

Support for layout and schematic verification

$
0
0

Hi friends,

Kindly support me to verify the attached gerber file for PCB layout.

I had made schematic for 4 capsense buttons and programming pins, attached schematic for your reference and verification.

Looking forward your support to verify and correct me if there is any mistakes in the schematic and layout.

 

with Thanks & Regards

K Jagdish

How to get the miniprog3 state using the example in the psoc programmer document?

$
0
0

I want to use the c# example to program psoc4 chip, the console example work, is it possible to get the miniprog3 state(connected or disconnected) using the reference PP_COM_WRAPPER? Or should I use openPort everytime when I execute program?


SPI-FLASH DMA(PSOC4)

$
0
0

hi,bro:

    I got some troubles with PSOC4 ble kit,and need some help.

Q : Cause of the low speed of write flash directly with "spi serial communication block", we have decide to use the DMA component,but i am puzzle with the struct "cydma_init_struct".

the "addressIncrement" field witch comment as:    /* Specifies whether the source and/or destination address will be
    * incremented after the transfer of each single data element.*/

i donn't know how to configure with it where i actually need the source address increased but does not the destination address.

what's more ,could you post me the detail of this struct ,or the sample driver of 'S25FL128' will much more better.

                                                                                                                                                     thanks a lot!

PSoC 4 CapSense Tuner - There was an error reading data from the device

$
0
0

I'm using the PSoC CY8CKIT-145-40XX Prototyping Kit. It has a PSoC 4 CY8C4045AZI-S413 IC.

I have been trying all week just to use the tuner application. I have used the example code that was already available through the PSoC creator. I have followed all the steps correctly, even double checked (more than double) that the configuration parameters are the same for both the Tuner and EZI2C. 

I have attached the MINIMAL workspace bundle. Any Advice would help. WHAT AM I DOING WRONG?

Can any body guide how i can use 3-wire SPI comunication in PSOC??

$
0
0

Hi,

I have a temperature sensor LM74. It has 3-wire spi. I want to communicate it with PSOC.

It would be very nice if you can guide me, how i can do this.

Looking forward to hearing from you.

Regards

maknight

SCB UART Internal Interrupt access

$
0
0

Hello!

My goal is to store 16 byte message that comes from an ESP8266 module via UART (so data in AT command format). I am using a PSoC 4 Pioneer board, and my resource use requires that I use the SCB block for UART communication. The example code/project provided for working with the UART SCB block, seems to gather data one char at a time and isn't very helpful if you need to do other tasks. 

The method that makes the most sense to me is to utilize the RX-FIFO-not-empty ISR (seen in the advanced tab on the UART configuration) when data is detected to store the RX buffer and check it for the message. However, when I change the RX buffer size to something large enough to grab the message in one go, the SCB block changes to an internal interrupt only mode. From what I have read this is basically because the resources are needed to stitch together the buffer from the 4 bit at a time FIFO.

I am not sure how to trigger a custom ISR using CY_ISR_PROTO(),  (I think it would involve the UART_RX_FIFO_STATUS_REG somehow) The datasheet for refers to the function SCB_SetCustomInterruptHandler() but I am not sure that it wouldn't mess up the automatic functions required to move data from the rx FIFO into a large buffer. 

Any help connecting the dots, or resources on internal interrupts with PSoC 4 would be appreciated.

Also, storing the data from a buffer seems like a fairly common task, so if anyone can point me in the direction of a better/more efficient technique, or beginner friendly resource it would be much appreciated.

Debugging variables ...

$
0
0

Hi, when I debugging Cortex M0 from STM32 I can see the changing of program variables in debug session in "real time" without stopping the program. Thanks to SWD. In case of PSoC4 Pionerr Kit 042 in debug session I do not see the behavior of program variables. And only if I stop by any of breakpoints the states of all variables in watch window will be updated. 

So is it correct behavior of PSoC Creator IDE? Is it possible to see the behavior of any variable in memory in "real time" without halting executing of  program ? As I know it is a possibility of CortexM0 architecture and should be available in all CortexM0 SoC.

Thank you. 

Viewing all 764 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>