PSoC™ Creator & Designer Forum Discussions
text.format{('custom.tabs.no.results')}
Hi,
I am currently using a PSOC Creator 3.0 for creating a simple psoc 4 application and I am looking for a way to add version number to the hex file properties.
I tried googling for a way to this but had no luck so far.
Any help regarding this is highly appreciated.
Thanks and Regards,
Balu Ramamurthy
Show LessCould you solve this?
I want to open sample projects, but pass error occures.
Psoc tells:
Unable to save the workspace's user data file "C:\Program Files\Cypress\example\SCB_Bootloader_42xx\SCB_Bootloader.cywrk.usernamexxx": (pass 'C:\Program Files\Cypress\example\SCB_Bootloader_42xx\SCB_Bootloader.cywrk.usernamexxx' denied access to). Address the error in order to save the user info.
Thank you .
Show LessHello everyone,
1. I Have a 4 BTNS available to me for my slider.
2. The slider consists of 4 stage operation.
3. I do not hold an extra BTN for the ON-OFF control.
4. How would I get the slider working ok if the conditions are-
a> #1 BTN = #1 LED ON & slider ON; rest LEDs OFF
b> #2 BTN = #2 LED ON; rest LEDs OFF
c> #3 BTN = #1 & #2 both LEDs ON; rest LEDs OFF
d> #4 BTN = # 4 LED ON; rest LEDs OFF
e> when I return (touch) to #1 BTN while slider is ON, slider should turn OFF
f> Then repeat the ( a> to e> ) steps.
5. When I again press the #1 BTN (even time touch @#1 BTN should turn OFF (power Off) the slider & odd time touch @#1 BTN should turn ON (power On) the slider) it should turn off the slider, i.e. power Off.
6. At any point of operation for the even touch slider is off.
7. At any point of operation for the odd touch slider is on.
8. When #1 BTN is off i.e. slider is off no other segment of slider is in operation.
Can i do this in the abov specified circumstances, guide on the same.
Thanks & Regards-
Amit
Show LessI'm creating a range of pulse signals in response to an external trigger (stretching, delaying, etc.) to replace some expensive FPGA functions w/PSoC3 logic cells. I have most in good shape, but need to generate a simple 50nsec delay of the external trigger (an 80nsec pulse), but cannot use any clock based devices due to introduced jitter (ie: counters, timers, SRFF, etc.). With the input pin in Transparent mode, I see about 20nsec delay through any gate (inverter, AN, OR, etc.), but cannot string any together to make that larger. Even adding output pins in between multiple gates, the compiler is too smart and I never see an increased delay. This needs to be done in hardware (ie: no code involved, registers, etc.).
Anyone have any tips on creating a small delay in h/w?
Thanks - Steve
Show LessI note that creator generated code seems to include cyfitter.h, cytypes.h and devices.h
I think devices.h gives access within C files to the components on the schematics?
When I create my own C and H files, should I be including "devices.h" in the C file to access components and the "cytypes.h" to access the named registers in the header files?
Beside standard Ansi C header files for string processing etc, are these the main 2 cypress header files I need?
Show LessI am having trouble casting and array to pass to a function. In the code below I am wanting to pass an array of ASCII HEX characters to a function that generates the Decimal value for each pair of characters.
The line putting the rssult int the RawData array is coming up with error "Passing argument 1 of ASCIIHEX_to_DEC make pointer to interger without a cast.
I have tried several approaches to modify the type being passed but cannot get figure out what I need to do to fix it.
Thanks
uint8 ASCIIHEX_to_DEC(char * ascii)
{
uint8 decval;
if(ascii[0] >= 'A') decval = ((uint8) ascii[0] - 55) << 4; else decval = (uint8) ascii[0] << 4;
if(ascii[1] >= 'A') decval += (uint8) ascii[1] - 55; else decval += (uint8) ascii[1];
return decval;
}
//[MESSAGE_TYPE] [MESSAGE_TYPE] [DATA_LENGTH] [DATA_LENGTH] [DATA] [DATA] ... [DATA] [CRC] [CRC] [CRC] [CRC] [FOOTER_FLAG (0x7D)]
void ProcessFrame(char * buf, uint8 packetsize)
{
uint8 RawData[30];
uint8 command;
uint8 i;
for(i= 0 ; i < (packetsize/2); i++)
{
RawData = ASCIIHEX_to_DEC(buf[i*2]);
}
Show LessAfter all thse posts, I just noticed the little buttons in some of them.
Should I be clicking these? Are they a type of "Accepted Solution" indication ?
Show LessCan someone please explain how I can view the value of calculated defines during debug?
I have a set of addresses to use as pointers for an array. The first one is defined with a value and the rest are relative to this one.
The subsequent item addresses are calculated by adding offset of number of bytes. This keeps it dynamic so if I want to say extend the number of charectors of a string in the array, I only need to change the define for size of that type of string and all the resulting addresses will be recalculated at run time.
Ram is fine, I can hover over a variable or set up a watch and can see the value. When I hover over the define in code, I only see the formula I used in the define and not the calculated value. This make is diffcult to debug storage location bugs.
Thanks
Show LessHi Cypress Dev-Team,
I'd like to request a feature that I would find very useful: Since I have several components now that "use" other components by means of API calls, I would appreciate a logical "Uses" Connection in the Schematic Editor.
E.g.: let's imagine a "Uses" port called "SPI_Master" on some component which can be connected to some SPI Master component "SPIM_1" by something like an arrow connection. Then, it would be very cool if you could refer to the "SPIM_1" from within the component's API code by simply writing '$SPI_Master'. You get the idea?
Of course, this is basically already possible by using component parameters, but I believe that a visible representation in the schematic editor would greatly increase usability!
Thank you for your ongoing effort on this great software!
Stefan
Show LessI am having a bit of trouble calling PutArray.
My data buffer is an element in a struct and it has type uint8 Buf[];
When I call COM_PutArray(COM.Buf,NumBytes);
I get warning it is wanting type const uint8 passed. I am not sure what I need to do here as I don't think it makes sense to cast as a "const" ?
I am wanting a blocking function so program waits will last btyre sent before progressing.
Thanks
Show Less