PSoC™ 6 Forum Discussions
Hi,
I'm unable to get interrupts to trigger correctly in the M0+ core. The same interrupt works as expected on the M4 core - but it doesn't trigger on the M0+ core.
However, if I debug using MiniProg3 and PsoC Creator, once I add a breakpoint somewhere in the interrupt handler or the main loop, the interrupt is triggered as expected. How does the breakpoints affect interrupts, and how can it make it 'work'?
This is more or less the code:
static int counter = 0;
static void IrqHandler() {
NVIC_ClearPendingIRQ(IRQ_cfg.intrSrc);
counter++;
}
__enable_irq();
Cy_SysInt_Init(&IRQ_cfg, &IrqHandler);
NVIC_EnableIRQ(IRQ_cfg.intrSrc);
Reading the counter variable while debugging proves what I've written above - it only increments when I have added a breakpoint.
I don't understand this.
Thanks, Jacob
Show LessI have a PSoC 6 CY8CKIT-062-BLE board, and I was looking for a code example which implements an audio passthrough behaviour (i.e. record data and output it in real-time). Basically I was looking for something similar to this: http://www.cypress.com/file/411496/download , but in that case it is "record data, then playback".
The configuration I had in mind would employ 4 buffers: 2 for input and 2 for output. When Ping_In is full (e.g. after 64 samples), an interrupt is triggered and data is copied to Ping_Out. Meanwhile, Pong_In starts filling, etc...
I checked this thread: Audio Streaming and Signal Processing using DMA but it was not really similar to the scenario I just explained. Is there a code example available for the case above? Thanks in advance!
Show LessSuddenly this appeared, no idea why or how to fix it. Any help appreciated.
Build error: The command 'C:\Program Files
(x86)\Cypress\PDL\3.0.4\tools\win\elf\cymcuelftool.exe' failed with exit code
'1'.
Show LessI’m having a problem trying to compile the CE222221, PSoC 6 MCU Voice Recorder, example program that is referenced in the CY8CKIT-062-WiFi-BT, PSoC 6 WiFi-BT Pioneer Kit Guide. Following the instructions in both the guide and the CE222221 app note, the compile fails due to missing header files. I’m using the latest example download, CY8CKIT-062-WiFi-BT_PSoC®6_WiFi-BT_Pioneer_Kit_Code_Examples.zip, from Cypress’ website. The app note mentions a FreeRTOSConfig.h header file and states “DO NOT replace the FreeRTOSConfig.h file”. The example zip includes the header file, but when I try to compile I get the following message:
“The following configuration files have been removed from the project because they are no longer used by the design. These files are still on disk but changes made to them will need to be replicated in the new files. Removed files: C:\Users\gordonmx\Documents\PSoC Creator\4.2\Examples\PSoC 6 MCU\CE222221_Voice_Recorder.cydsn\FreeRTOSConfig.h
Details –
Some configuration files are no longer used by the design. These files have been removed from the project with new files added in their place. Any changes made to the files in question will need to be replicated in the newly added files.”
Note: Because my PC is running Windows 7 Pro and the default directory for the examples is in the “C:\Program files” path with restricted permissions, I set up my workspace into C:\Users\gordonmx\Documents\PSoC Creator\4.2\Examples\PSoC 6 MCU\CE222221_Voice_Recorder.cydsn
When I press [OK] the build continues, but fails with the following message:
In file included from main_cm4.c:43:0:
The command 'arm-none-eabi-gcc.exe' failed with exit code '1'.
- rtos.h:46:26: fatal error: FreeRTOS.h: No such file or directory
compilation terminated.
--------------- Build Failed: 12/05/2018 14:55:21 ---------------
The header file rtos.h does exist, but FreeRTOS.h does not, as well a number of other header files referenced in rtos.h, such as task.h, queue.h, semphr.h and event_groups.h.
Cypress Product Version (from PCreator About Page)-
Environment:
PSoC Creator 4.2 (4.2.0.641)
Culture: English (United States)
OS Version: Microsoft Windows NT 6.1.7601 Service Pack 1
CLR Version: 4.0.30319.42000
Installed CyInstaller Products:
CY8CKIT-042-BLE Kit 1.0 Rev.*G
CY8CKIT-042-BLE-A Kit 1.0 Rev.*B
CY8CKIT-044 PSoC 4 M-Series Pioneer Kit 1.0 Rev.*B
CY8CKIT-048 PSoC Analog Coprocessor Pioneer Kit 1.0 Rev.**
CY8CKIT-062-WiFi-BT PSoC 6 WiFi-BT Pioneer Kit 1.0 Rev.**
Cypress Document Manager 1.0 SP1
CySmart 1.3
Peripheral Driver Library 3.0.4
PSoC Programmer 3.27.3
PSoC Creator 4.2
I’ve attached the build.log for more details. What am I doing wrong? Thank you for your assistance.
Gordon Margulieux
Show LessHello Cypress community,
I am working on a prototype of a product based on the PSoC 6, currently using a Pioneer board for prototyping. The board has been very reliable until last week, when the MCU became unresponsive without an apparent cause. It was powered from a UPS-grade lead-acid battery via the J9 header, turned on and off with a mechanical switch, with two rectifier diodes in series to take the maximum possible voltage down to below 12V. The PSoC itself was in a testing regime, analysing analog and digital signals from a signal generator at no more than 3.3V at its inputs, with little EM noise in the setup. BLE was used to output test results to an Android app, and the onboard RGB LED provided connection status information. At one point after a power cycle, the LED didn't light up red like it should at startup, and the device was not discoverable via BLE, although the KitProg LEDs lit up as expected. Switching SW5 to 1.8V brought back the BLE advertising while the RGB LED didn't light up (which is explained as excepted behaviour in the Pioneer board guide), but any measurements taken gave wrong results, which I attribute to the reference voltage being lower than expected. The 3.3V pin on the Arduino-compatible header was measured to output a voltage around 3.3V. Programming the chip over USB was also only possible with SW5 at 1.8V. When 3.3V was used, PSoC Creator was able to find a KitProg over USB, but it displayed an error when trying to acquire port. At the same time, ADC voltage was shown in the programming dialog to be around 3.3V. All other switches on the Pioneer board were left in their default positions since the start of this project. Also, identical symptoms showed up on a replacement board in the same circuit after a few days of working flawlessly.
As the only reason for this failure I could make out appears to be power-related, and input voltage to the board was kept within specified limits, I need to ask the community - am I missing something here? Has anybody experienced similar issues? What could be the cause, and can the boards be repaired, or should they be replaced?
I will be happy to provide any further details that might help solve this problem. Also, if there is any diagnostic tool or test firmware to use on the Pioneer board, I'm looking forward to give them a try.
Kind regards,
Kris
Show LessHi,
I've bought a board following,
Product: CY8CPROTO-062-4343W PSoC 6 Wi-Fi Prototyping Kit
Order #: 1226866
I can't program it.
Refer to attached screen-shot files.
PSoC Creator program menu
PSoC Programmer first screen-shot
PSoC Programmer does not work F7 read screen-shot
Is it's board failed?
Regards,
Shigeo Kinoshita
Show LessI am using the example project 002-22802_CE222802 to build the bootloader in Keil and it fails code validation. If I set #define UNLOCK_SYSTEM (1u) in the cm0 project, it can run to cm0 main(). I attached the project and the pack exported from the example. What is wrong with my Keil project? The example works fine for PSoC Creator. Also, I loaded the bootloader built with PSoC Creator and can load the app1 example built with Keil but when app1 is running and I hold down the button to restart the bootloader, it immediately goes back to running app1. This does not happen if I build app1 with PSoC Creator. Does anyone know why this happens?
Show LessDear Expert,
why my win10 cannot use Psoc6 uart function to print log?
My psoc6 BLE pioneer kit can use win7 to print log successfully.
When I connect win10 by USB,the win10 device manager show error ,
attached for your reference.
Show Less
hello all ,
i trying to understand whats the difference between
psoc 6 - CY8C6247BZI-D54 and
psoc 6 - CY8C6247BZI-D44 ???
When i compare them i can see
That the d54 device comes with 12 UDB(No. of Programmable Universal Digital Blocks).
And the d44 device comes with 0 UDB.
Why would anyone will want to use the d44 device (0 UDB)
if its the the same price and the same package(124 bga ) ??
when i am using psoc 5 the UDB components are quite useful for UART and I2C ,
will i be able to manage without them in PSOC 6 ??
Thanks lampel
Show LessHi there, newbie here... I have a CY8CKIT-062-BLE board (http://www.cypress.com/file/420836/download) which I want to connect to the AK4954 audio codec (board used: http://ww1.microchip.com/downloads/en/DeviceDoc/50002658A.pdf 😞
Can someone help me on setting up the jumper connections for the two boards? Also are there any example projects available for external audio codec boards? Thanks a lot in advance!
Show Less