PSoC™ 6 Forum Discussions
Hi,
I am working on a project where I need to trigger Alarms using RTC for this I used HAL library, I am able to get interrupt triggered for any seconds in standalone project, But when I uses the configuration with my project same settings not getting me any interrupt. For confirmation I stopped all my tasks and systick then used RTC alarm main.c file inside project directory I am able to get interrupts. Can you guys help me with any of the peripherals that can affect the RTC alarm Functionality as I am working on Power efficient device it goes in sleep. Does sleep mode affects its functionality as Hal API for deepsleep configure it to waitfor interrupt not for events However i looked in Alarm API it enables interrupt but cover api says event ?
Regards
Show LessHello,
I have installed the latest ModusToolbox and am trying to develop on the PSoC 62S2 Wi-Fi BT Pioneer Kit.
Unfortunately, I receive the following error when trying to program or debug the board using Modus Toolbox IDE:
* The detected device does not match the configuration file in use.
* Flash programming will not work. Please use the "psoc6_2m.cfg"
* configuration file, or attach a kit that matches the configuration file.
I have checked and psoc6_2m.cfg is in use. The real issue seems to be that only the Cortex-M0 core is detected during programming. See below the complete debug log: psoc6.cpu.cm0 is found, but cm4 is not. Bizarre.
Additionally, there is another worrying line because I am using Apple M1 based MacBook Pro and not x86 Intel MacBook.
Launching GDB: /Applications/ModusToolbox/tools_2.4/gcc/bin/arm-none-eabi-gdb
This GDB was configured as \"--host=x86_64-apple-darwin10 --target=arm-none-eabi\
Complete log from the debug terminal below:
Info : CMSIS-DAP: Interface ready
Info : KitProg3: FW version: 2.30.1155
Info : KitProg3: Pipelined transfers enabled
Info : VTarget = 3.288 V
Info : kitprog3: acquiring the device (mode: reset)...
Info : clock speed 2000 kHz
Info : SWD DPIDR 0x6ba02477
Info : psoc6.cpu.cm0: hardware has 4 breakpoints, 2 watchpoints
***************************************
** Silicon: 0xE453, Family: 0x102, Rev.: 0x12 (A1)
** Detected Device: CY8C624ABZI-S2D44
** Detected Main Flash size, kb: 2048
** Flash Boot version: 3.1.0.378
** Chip Protection: UNKNOWN
Started by GNU MCU Eclipse
*******************************************************************************
***************************************
terminate command invoked
* The detected device does not match the configuration file in use.
* Flash programming will not work. Please use the "psoc6_2m.cfg"
* configuration file, or attach a kit that matches the configuration file.
*******************************************************************************
Info : psoc6.dap: powering down debug domain...
Looking for ideas how to fix this bizarre issue and program/debug the board.
Thanks,
Dimi
Show LessHi,
Just picked up a PSoC 6 BLE Pioneer Kit (Rev B) and was trying to get the LED blinking project in lesson 1.3 of the PSoC 101 series of videos.
I have followed the steps to the letter and am able to build and flash the firmware to the board but I cant get the LED to blink. I have copied the console log at the end of this message for reference.
I have looked at similar thread on this forum and have tried the recommendations but with no luck.
I am using PSOC creator 4.4 and PDL library version is 3.1.3 ( I have checked this under options)
The switches, jumpers on the board have not been changed from their default position.
Power LED (LED4) is solid Amber
KitProg status LEDs: LED2 is solid Amber, LED 3 goes Solid green when FW is flashed
Here is a list of things I have tried
* Built the projects for PWM, CM0P and CM4 but had the same results i.e. no LED blinking
* Deleted the project and workspace and tried again but LED wont blink
* Tried a different Pioneer kit with same results.
* Selecting the debug target before programming
* I created the projects as PSoC63 as per the instruction videos and debug targets are listed as CY8C6347BZi-BLD53 (Cm0p and CM4). I have tried both CM0P and CM4 as targets but with no luck.
* Change the digital output pin deom P0[3] to P11[0] and connect an external LED (with current limiting resistor) to that GPIO. Even the External LED does not blink
Things I have tried based on feedback/solutions on similar topic
* Updated the drivers after upgrading the KitProg from 2 - 3
* Select debug target before programming
* Changed GPIO write command to GPIO)Inv and using direct port references e.g. P3_3_PORT rather than REDPIN_PORT
* Changed Switch 7 from VDDD to SuperCap. The LED comes on but stays red and does not blink
I am not exactly sure what else I can do to make this work and would really appreciate some support on this.
Please note that the log file is based on a blinky project which I tried with different GPIO pins but the build and flash parts are similar to the issues I have observed.
Thanks and Regards
Show Less
Hi,
I am using Modus Toolbox v2.4, the latest cysecuretools, the latest KP3 firmware, and my Kit is CY8CKIT-064S0S2-4343W.
I get the error stated in the subject when trying to program the default amazon freertos project available at https://github.com/aws/amazon-freertos
I am asking for your advice and guess what might be the issue.
Open On-Chip Debugger 0.11.0+dev-4.3.0.1746 (2021-09-16-07:59)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
** Main Flash size limited to 0x1D0000 bytes
adapter speed: 2000 kHz
adapter srst delay: 0
adapter srst pulse_width: 5
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
** Using POWERUP_DELAY: 5000 ms
** Using TARGET_AP: cm0_ap
** Using ACQUIRE_TIMEOUT: 15000 ms
Info : Using CMSIS-flash algorithms 'CY8C6xxA_SMIF_S25FL512S' for bank 'psoc64_smif_cm0' (footprint 11500 bytes)
Info : CMSIS-flash: ELF path: ../flm/cypress/cat1a/CY8C6xxA_SMIF_S25FL512S.FLM
Info : CMSIS-flash: Address range: 0x18000000-0x1BFFFFFF
Info : CMSIS-flash: Program page size: 0x00001000 bytes
Info : CMSIS-flash: Erase sector size: 0x00040000 bytes, unified
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
Info : Using CMSIS-DAPv2 interface with VID:PID=0x04b4:0xf155, serial=040F135101220400
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: Atomic commands supported
Info : CMSIS-DAP: FW Version = 2.0.0
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : KitProg3: FW version: 2.30.1155
Info : KitProg3: Pipelined transfers enabled
Info : VTarget = 3.324 V
Info : clock speed 2000 kHz
Info : SWD DPIDR 0x6ba02477
***************************************
** Use overriden Main Flash size, kb: 1856
** Silicon: 0xE4A0, Family: 0x102, Rev.: 0x12 (A1)
** Detected Device: CYS0644ABZI-S2D44
** Flash Boot version: 4.0.2.1842
** SFlash version: 310192
***************************************
Info : gdb port disabled
Info : starting gdb server for psoc64.cpu.cm0 on 3333
Info : Listening on port 3333 for gdb connections
Info : Deferring arp_examine of psoc64.cpu.cm0
Info : Use arp_examine command to examine it manually!
Error: Target not examined, will not halt after reset!
Info : SWD DPIDR 0x6ba02477
Info : Waiting up to 15.0 sec for the bootloader to open AP #1...
Error: AP #1 is still not opened: Failed to access debug sybsystem, giving up
Error executing event reset-deassert-post on target psoc64.cpu.cm0:
embedded:startup.tcl:788: Error:
in procedure 'program'
in procedure 'ocd_process_reset'
in procedure 'ocd_process_reset_inner' called at file "embedded:startup.tcl", line 788
TARGET: psoc64.cpu.cm0 - Not halted
in procedure 'program'
Info : SWD DPIDR 0x6ba02477
Polling target psoc64.cpu.cm0 failed, trying to reexamine
Info : SWD DPIDR 0x6ba02477
Info : SWD DPIDR 0x6ba02477
Error: Failed to read memory at 0xe000ed00
Examination failed, GDB will be halted. Polling again in 100ms
** CM0 Program operation failed **
Polling target psoc64.cpu.cm0 failed, trying to reexamine
Info : SWD DPIDR 0x6ba02477
Info : SWD DPIDR 0x6ba02477
Error: Failed to read memory at 0xe000ed00
Examination failed, GDB will be halted. Polling again in 300ms
Info : Deferring arp_examine of psoc64.cpu.cm0
Info : Use arp_examine command to examine it manually!
Error: Target not examined, will not halt after reset!
Info : SWD DPIDR 0x6ba02477
Info : Waiting up to 15.0 sec for the bootloader to open AP #1...
Error: AP #1 is still not opened: Failed to access debug sybsystem, giving up
Error executing event reset-deassert-post on target psoc64.cpu.cm0:
embedded:startup.tcl:1075: Error:
in procedure 'program'
in procedure 'ocd_process_reset'
in procedure 'ocd_process_reset_inner' called at file "embedded:startup.tcl", line 788
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 1112
at file "embedded:startup.tcl", line 1075
TARGET: psoc64.cpu.cm0 - Not halted
in procedure 'program'
** CM4 Program operation failed **
Info : SWD DPIDR 0x6ba02477
Info : Deferring arp_examine of psoc64.cpu.cm0
Info : Use arp_examine command to examine it manually!
Info : SWD DPIDR 0x6ba02477
Info : Waiting up to 15.0 sec for the bootloader to open AP #1...
Error: AP #1 is still not opened: Failed to access debug sybsystem, giving up
Error executing event reset-deassert-post on target psoc64.cpu.cm0:
embedded:startup.tcl:1075: Error:
in procedure 'ocd_process_reset'
in procedure 'ocd_process_reset_inner' called at file "embedded:startup.tcl", line 788
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 1112
at file "embedded:startup.tcl", line 1075
Polling target psoc64.cpu.cm0 failed, trying to reexamine
Info : SWD DPIDR 0x6ba02477
Info : SWD DPIDR 0x6ba02477
EError: Failed to read memory at 0xe000ed00
xamination failed, GDB will be halted. Polling again in 700ms
Info : psoc64.dap: powering down debug domain...
Hello,
I am developing an audio processing application using the CY8KIT-062-Wifi-BT board. I started from the PDM to I2S example and I changed the code in order to do bypass/processing live, instead of storing the audio in a big buffer and then play it. This works fine.
My next step is to implement an audio jack microphone instead of the PDM one. I removed all the PDM-PCM code and implemented the I2S RX. I configured the codec to enable the ADC, mic power and mic gain, according to the board characteristics. I am using a 3-channel AHJ headset with microphone that was tested in other devices.I also implemented the RX callback same way I did with the TX, but the callback is never called. I checked both RX clocks (WS and BCKO) and they look fine. Same with the RX_SDI pin, the adc output signal appears correctly in the oscilloscope. I suppose there is something wrong with the gain of the microphone or the audio format, but I don't know. TX works fine the same way.
I attatch my main code. Any help would be appreciated.
Thanks,
jp
Show LessHi.
I saw an article about collaborating with Picovoice.
https://www.infineon.com/cms/en/about-infineon/press/market-news/2021/INFCSS202110-007.html
Can this program the Picovoice sample code on the PSoC 6 evaluation board?
If so, where can I get the sample code?
If you want to evaluate in a different way, could you tell me how?
Best Regards.
Show LessI trying to make OSB (on screen display) for analog video (NTSC format) with 640X480 pixels resolution.
To synchronize to the external video i using external board to catch the sync pulses from analog video, every sync type connected to GPIO and to ISR.
The horizontal sync pulse is active once a 64uSec, so once 64uSec trigger the DMA programmatically and send the data to Control register which connected GPIO
(the GPIO connected to the video line via diode).
The GPIO rise the voltage (distortion) at specific point of time and it make the pixel white. With this method i can draw on the analog video.
At LP5 (CY8C5888LTI-LP097) -----
This method work and stable, but i facing two main problems:
1)At max clock (PLL at 80Mhz) i can reach max 464 pixels per line (for each 52uSec of visible line 464 distortions on the video line) - need to have 640 distortions for 52uSec piece of time.
2)I can't reach 640X480 buffer size (640X480 /1024 =300KB ) - i use Byte per pixel (CY8C5888LTI-LP097 is max 64KB SRAM).
At Posc 6 (CY8C6347BZI-BLD53) -----
To overcome LP5 problems i try to use Posc 6 (CY8C6347BZI-BLD53) but i stuck with the DAM configurations, i see on the oscilloscope the Bytes i try to send, but
the rate is very slaw (8 Bytes per 500uSec), according to the datasheet the DMA use Clk_Slow , but i configured it to 100Mhz.
1-What could be the problem with the configuration?
2-It seems that the Bytes are not stable at this slow rate (although using an old oscilloscope..)
3-At lp5 the DMA cannot access to all the SRAM, is it the same with PSOC6?
4-Is there any way to send bit by bit instead of byte?
Hi,
There are differante kind of PSoC 6. 61, 62, 63.
What are the differances?
Thanks
Shmuel