PSoC™ Creator & Designer Forum Discussions
text.format{('custom.tabs.no.results')}
hi,
while compiling any source code i get following error
prj.M0120 Build error: Object reference not set to an instance of an object.
event i tried previously compiled source code and example of cy8ckit044 it gives same error.
regards,
santosh pawar
Show LessHelp! I've broken PSOC Creator! (PSoC Creator 4.2 (4.2.0.641)).
I've done something to break a couple of things....
first and most concerning is that I now get an error when using boolians...
Now I get the following error: Build error: '_Bool' does not name a type
I didn't used to get it, and I can't figure out what I've done to break it. So I made a "typedef CYBIT Bool;" and got past that.
Now, I get errors on 3 subroutines called in main() and defined in a sub-file ( and yeah I have function prototypes in an included header). "Build error: undefined reference to `ControlBd_ExecuteCommand'" I can't fingure it out!
I lost a file earlier in the day - so I thought perhaps... but I uninstalled PSOC creator and re-installed it fresh. Same deal.
And now I can't go back to ver 4.1 - it won't read the file
My project is attached. What have I done?
Thanks for your help!
Show Less@ll FORTH programmers and those who want to become:
From September 14 to September 16, 2018, the Maker Faire was in Hannover/Germany. During this time, the FORTH society demonstrated all implementations of Mecrisp-Stellaris-FORTH on PSoC4 and PSoC5 *. From Arrow / Cypress, who also attended the exhibition, I received a sparkfun FreeSoC2 board, like many other visitors. Thanks a lot for this. From now on, the Mecrisp-Stellaris-FORTH is available for the FreeSoC2 board. FORTH is a compiler language with an interpreter and allows an interactiv C. To download see: https://sourceforge.net/projects/mecrisp/files/Cypress/
For more information, search for "FORTH" on this page, follow the link above or ask me
Klaus
*Mecrisp-Stellaris-FORTH is available for following Eva-Kits:
Board: PSoC:
CY8CKIT-043 -> cy8c4247azi
CY8CKIT-046 -> cy8c4248bzi
CY8CKIT-049 -> cy8c4245axi
CY8CKIT-050 -> cy8c5868axi
CY8CKIT-059 -> cy8c5888lti
FreeSoC2 -> cy8c5888axi
Show LessHi,
I have several devices that share the exact same source code and generated files, all of them use CAN communication with full CAN mailboxes and specific IDs (TX and RX), differing only in their ID numbers. Is there a way to set the IDs from code while maintaining the rest of the CAN configuration (mailboxes names, identifiers, etc) intact? This would help me program each one using only one project, by changing a flag or some other configuration file, instead of having to create a whole project for every device.
Best Regards,
Rodrigo
Show LessWhen using GraphicLCDIntf (e.g. in Ce222221_Voice_Recorder example) changing GraphicLCDIntf from v.1.0 to v.1.80 causes errors:
undefined reference to `Cy_GPIO_Clr',
undefined reference to `Cy_GPIO_Set'
so, using Pins became inavailable.
At the first glance I could not find what is the reason.
Generated API files are the same.
Show LessSafety / regulations | |
We are in the progress of conceptualization a design for an implantable medical device which will probably have some class-C software pieces. I am wondering if the PSoC devices fit into this. - Are there any Cypress customers who have used a PSoC devices within implantable medical devices? - Is the programmable HW classified as software or as HW? E.g. can we take safety measures using the PSoC HW, in other words, does the programmable HW falls outside the software scope? - Is their any documentation available that gives some more inside whether or not it is feasible to use a Cypress PSoC devices within a medical implantable device. |
I am looking to improve my FreeRTOS Command Line Interface service. First a little background:
- My device is a composite USB device with a CDC/UART to which I have added two endpoints which service a HID device.
- The CLI engine is the FreeRTOS package available from Amazon under MIT terms - in other words the latest FreeRTOS 10 shell.
- The USB CDC is the virtual UART to which the CLI is attached and is used with a user's terminal emulator connected to the appropriate COM port.
- The application is really the HID, the CDC UART is just to provide a console for development.
- The present configuration has the FreeRTOS task which processes the CLI continuously checking USBUART_DataIsReady() and being preempted by higher priority tasks.
I would like to create a FreeRTOS semaphore to hold off the foreground CLI task. I do not care that the semaphore is 100% accurate, by this I mean if there is a callback which sometime indicates data could be ready and sometime does not (like perhaps a callback that just indicates something took place on the USB interface) I am OK with that - I can still have the foreground check that data is available with USBUART_DataIsReady() even when the foreground gets the semaphore.
The USBFS_DispatchCDCClass_CDC_WRITE_REQUESTS_Callback does not seem to do what I want. There is little documentation on what I am supposed to do, I can't find an example and the documentation that says "This callback function has to return USBFS_TRUE if request is recognized and handled and USBFS_FALSE otherwise." which implies to me I need to write code to handle data at a lower level that I want if I use this callback. If this is the appropriate place to release a semaphore, could I get a little help to know when I return USBS_TRUE and when I don't?
Would USBFS_EP_3_ISR_ExitCallback be a better place to release a semaphore to the foreground? Endpoint 3 is I believe the output from the host / input to the PSOC for my configuration.
Show LessI would like to use the pre-baked SerialNVRAM component because it seems like the only way to put an FRAM and other SPI devices on the same bus.
I've seem there is similar here http://www.cypress.com/documentation/application-notes/an89659-interfacing-spi-f-ram-psoc-4 , but it won't share the SPI.
The SerialNVRAM datasheet suggests using SPI in SCB mode, but I have to use UDB since the fixed pins are not available. Creator does the Generate Application step, but when compiling fails because "SPIM_SPI_UART.h" is missing and not generated. Is this because of the SCB mode?
Show LessHello, I'm following video-lesson 5. After placing the flip-flop and the logical "1" and building the project, I get the following error: "Pin guidance unavailable: Resource limit: Maximum number of Macrocells exceeded (max=0, needed=1).". Can someone help me out?
Show Less