PSoC™ 6 Forum Discussions
I am using a PSoC BLE Pioneer board (PSoC 63) with PSoC Creator 4.4 and using the built in GNU C Compiler.
I am currently getting the RTC working and started by porting code from CE218542 - PSoC6 Custom TickTimer RTC to my test app (tests various hardware using a simple menu-friven system via the terminal). The RTC and Alarm worked, sleeping and waking at the specified intervals. I wanted to make a few changes to the example code and then put it as a wrapper into a driver file that later I will port into my main project.
I created c and h files to house this code in the Shared Files virtual folder, then copied the code from main.c over to my new files. But now, I get the fatal compiler error "Build error: 'RTC_RTC_IRQ_cfg' undeclared (first use in this function)".
I am including "project.h", "RTC.h", "cy_rtc.h" in my new files, which is all I had added in main.c.
I have come across this sort of issue before while developing drivers for other hardware: if my files are located in Shared Files, some things like these xxx_xxx_cfg structures cannot be found outside of main.c, or ISRs don't work if placed in my own files and need to be placed inside of main.c. I found this with initialising the SPI, too.
No doubt it is something obvious to people who are more familiar with this platform and toolchain, so please help me to understand it.
Thanks, Simon
Show LessMy program has exceeded the flash capacity of the chip. How can I optimize the library. How can I remove some unnecessary things, such as CapSense? I can't tick off CapSense in library manager。How can I only use PDL ? thanks!
Show Less
Hello, I am a developer who is developing PSOC6 WIFI-BT Pioneer Kit.
While implementing the method of extracting unique IDs, I am asking because I have a question.
I have got the Pioneer kit working with various peripherals. In a testbed program I make extensive use of the virtual com port to the PC to carry debugging information and to select various hardware tests to run. Everything has been running nicely.I am using PSoC Creator 4.4.
I have just added a new hardware module to this testbed which consists of a hardware board connected by the Arduino connectors and a code library from its manufacturers, for which I supplied a port for the PSoC 63. On its own in an app, this code seems to work very well, and it seems to be working in my testbed, except:
After I have run its initialisation routine, the virtual com port continues to send more data to the PC, but no data is received from the PC. Pressing the Reset button on the Pioneer board resets the program but the RX from the PC still doesn't work. The only way to restore full function seems to be to unplug the USB and plug it back in again, which works every time.
The new routines do make some use of the com port, but only using printf(). My input function just uses getchar().
Can anybody suggest what is happening to "lock up" the RX function?
Show LessHi Team,
We are designing with CY8C6247FDI-D32T.
The design has.
1*SPI - MISO - P6.1 - scb[8].spi_miso:0
MOSI - P6.0 -scb[8].spi _mosi:0
SCK - P6.2 - scb[8].spi _clk:0
CS - P6.3 - scb[8].spi_select0:0
2*ADC - P10.0, P10.1, P10.4, and P10.5
1*DAC - P9.2
8*PWM - PWM1 - P8.0 - tcpwm[0].line[0]:2
PWM2 - P8.2 - tcpwm[0].line[1]:2
PWM3 - P8.4 - tcpwm[0].line[2]:2
PWM4 - P11.4 - tcpwm[0].line[3]:3
PWM5 - P5.0 - tcpwm[0].line[4]:0
PWM6 - P12.2 - tcpwm[0].line[5]:3
PWM7 - P12.4 - tcpwm[0].line[6]:3
PWM8 - P5.6 - tcpwm[0].line[7]:0
2*I2C - I2C1 - SCL - P7.0 - scb[4].i2c _scl:1
SDA - P7.1 - scb[4].i2c_sda:1
I2C2 - SCL - P11.0 -scb[5].i2c _scl:0
SDA - P11.1 -scb[5].i2c_sda:0
3*UART - UART1 - RX - P1.0 - scb[7].uart _rx:0
TX - P1.1 - scb[7].uart_tx:0
UART2 - RX - P0.2 -scb[0].uart _rx:0
TX - P0.3 -scb[0].uart_tx:0
UART3 - RX - P12.0 -scb[6].uart _rx:0
TX - P12.1 -scb[6].uart_tx:0
SWD is the debugging interface. -
SWDIO - P6[6]
SWCLK - P6[7]
XRES
SWO - P6[4]
32KHz RTC OScillator - P0[0], P0[1]
Part Number - CM9V-T1A-32.768KHZ-12.5PF-20PPM-TA-QC
Load Capacitor 22pF
High-speed oscillator - P12[6], P12[7]
Part Number - LFXTAL063075BULK
Load Capacitor - 12pF
The schematic is attached herewith.
Please let me know if there are any mistakes.
Today I have strange problem,
unable to work with MODUS TOOLBOX (tested on 2 computers with latest 2.4 versions)
After starting "Library Manager"
------------------
Checking if remote manifest is accessible...
No internet connection found or improper proxy settings and offline content is not available. Use "Settings > Proxy Settings..." to specify the proxy server or check the user guide to see how to get offline content.
Can't find a valid super-manifest.
Failed to get the information.
Press "Retry" to try again.
------------------
Retry does not helped me.
I tested github, try to read github MANIFESET xml https://github.com/cypresssemiconductorco/mtb-super-manifest/raw/v2.X/mtb-super-manifest.xml with no problem.
What can be problem ?
Regards
Radim
Show LessDear Receiver,
In the attached file 1, I selected a basic_boot_loader example code to import to the MTB.
In the attached file 2, after import basic_boot_loader example code to MTB, there a 2 projects generated.
#1. MCUboot-Based_Basic_Bootloader_1.blinky_cm4. " This project compiles fail and you can see there are 2 error messages in the attached 2".
#2. MCUboot-Based_Basic_Bootloader_1.bootloader_cm0p. " This project compile ok! "
Could you please help me to check why *.cm4 project complies failed ?! I didn't modify anything. I just keep this example code original.
Thank you so much.
Show LessHello,
I have some errors when I try to create a application with the Project Creator
After a fresh install of ModusToolbox, I tried to create a new application,
I selected the good BSP (CY8CPROTO-062S3-4343W), I don't get any error (after adding an environment variable)
But when I select the template (Bluetooth_LE_CAPSENSE_Buttons_and_Slider) I get error :
Summary:
BSP: CY8CPROTO-062S3-4343W
Template Application(s): Bluetooth LE CAPSENSE Buttons and Slider
Application(s) Root Path: C:/Users/starka/mtw
Press "Create" to create the selected application(s).
Collecting application data...
Info: The following entered on the command line will create the exact same project as that created with the GUI tool:
C:/NSS/Infineon/Tools/ModusToolbox/tools_2.4/project-creator/project-creator-cli.exe --board-id CY8CPROTO-062S3-4343W --board-uri https://github.com/cypresssemiconductorco/TARGET_CY8CPROTO-062S3-4343W --board-commit latest-v3.X --app-id mtb-example-anycloud-ble-capsense-buttons-slider --app-uri https://github.com/cypresssemiconductorco/mtb-example-anycloud-ble-capsense-buttons-slider --app-commit latest-v4.X --cypress-tools C:/NSS/Infineon/Tools/ModusToolbox/tools_2.4 --target-dir C:/Users/starka/mtw --user-app-name Bluetooth_LE_CAPSENSE_Buttons_and_Slider --output-for-machine --use-modus-shell
==============================================================================
= Cloning 'mtb-example-anycloud-ble-capsense-buttons-slider' =
==============================================================================
Cloning https://github.com/cypresssemiconductorco/mtb-example-anycloud-ble-capsense-buttons-slider into C:/Users/starka/mtw directory...
env git clone --progress --origin cypress https://github.com/cypresssemiconductorco/mtb-example-anycloud-ble-capsense-buttons-slider Bluetooth_LE_CAPSENSE_Buttons_and_Slider
Cloning into 'Bluetooth_LE_CAPSENSE_Buttons_and_Slider'...
remote: Enumerating objects: 95, done.
remote: Counting objects: 100% (95/95), done.
remote: Compressing objects: 100% (63/63), done.
fatal: --stdin requires a git repository
fatal: fetch-pack: invalid index-pack output
fatal: write error: No space left on device
Project "mtb-example-anycloud-ble-capsense-buttons-slider" failed to create.
"git clone" failed.
Failed to create and export "Bluetooth_LE_CAPSENSE_Buttons_and_Slider" application.
I tried to clone it manually (it's working) and to import it manually, but I get some other errors :
Summary:
BSP: CY8CPROTO-062S3-4343W
Template Application(s): Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2
Application(s) Root Path: C:/Users/starka/mtw
Press "Create" to create the selected application(s).
Collecting application data...
Info: The following entered on the command line will create the exact same project as that created with the GUI tool:
C:/NSS/Infineon/Tools/ModusToolbox/tools_2.4/project-creator/project-creator-cli.exe --board-id CY8CPROTO-062S3-4343W --board-uri https://github.com/cypresssemiconductorco/TARGET_CY8CPROTO-062S3-4343W --board-commit latest-v3.X --app-path C:/Temp/Temp/Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2 --cypress-tools C:/NSS/Infineon/Tools/ModusToolbox/tools_2.4 --target-dir C:/Users/starka/mtw --user-app-name Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2 --output-for-machine --use-modus-shell
==============================================================================
= Copying 'C:/Temp/Temp/Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2' =
==============================================================================
==============================================================================
= Cleaning launch configurations =
==============================================================================
==============================================================================
= Creating "TARGET_CY8CPROTO-062S3-4343W.mtb" file(s) =
==============================================================================
C:/Users/starka/mtw/Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2/deps/TARGET_CY8CPROTO-062S3-4343W.mtb was added
C:/Users/starka/mtw/Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2/deps/TARGET_CY8CPROTO-062-4343W.mtb was removed
==============================================================================
= Updating Makefile for "Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2" =
==============================================================================
==============================================================================
= Applying the Latest Version Locking for "Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2" =
==============================================================================
C:/Users/starka/mtw/Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2/deps/TARGET_CY8CPROTO-062S3-4343W.mtb was updated
C:/Users/starka/mtw/Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2/deps/bluetooth-freertos.mtb was updated
C:/Users/starka/mtw/Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2/deps/freertos.mtb was updated
C:/Users/starka/mtw/Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2/deps/retarget-io.mtb was updated
==============================================================================
= Getting Dependencies for "Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2" =
==============================================================================
C:/NSS/Infineon/Tools/ModusToolbox/tools_2.4/modus-shell/bin/make.exe getlibs CY_TOOLS_PATHS=C:/NSS/Infineon/Tools/ModusToolbox/tools_2.4
Tools Directory: C:/NSS/Infineon/Tools/ModusToolbox/tools_2.4
==============================================================================
= Importing libraries =
==============================================================================
Git is git version 2.33.0, found at /usr/bin/git
Resolving dependencies...
Checking if remote manifest is accessible...
Getting manifests from remote server...
Found environment variable CyRemoteManifestOverride=https://raw.githubusercontent.com/Infineon/mtb-super-manifest/v2.X/mtb-super-manifest-fv2.xml
Processing super-manifest https://raw.githubusercontent.com/Infineon/mtb-super-manifest/v2.X/mtb-super-manifest-fv2.xml...
Successfully acquired the information.
INFO - Warning: Multiple versions of "freertos" requested. Keeping version "release-v10.4.302" and discarding version "latest-v10.X".
INFO - Warning: Multiple versions of "core-make" requested. Keeping version "latest-v1.X" and discarding version "release-v1.9.0".
C:/Users/starka/mtw/Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2/libs/abstraction-rtos.mtb was added
C:/Users/starka/mtw/Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2/libs/btstack.mtb was added
C:/Users/starka/mtw/Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2/libs/capsense.mtb was added
C:/Users/starka/mtw/Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2/libs/clib-support.mtb was added
C:/Users/starka/mtw/Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2/libs/core-lib.mtb was added
C:/Users/starka/mtw/Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2/libs/core-make.mtb was added
C:/Users/starka/mtw/Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2/libs/mtb-hal-cat1.mtb was added
C:/Users/starka/mtw/Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2/libs/mtb-pdl-cat1.mtb was added
C:/Users/starka/mtw/Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2/libs/psoc6cm0p.mtb was added
C:/Users/starka/mtw/Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2/libs/recipe-make-cat1a.mtb was added
Dependencies resolved.
Searching application directory (.mtb)...
Found 14 .mtb file(s)
Processing file "C:/Users/starka/mtw/Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2/deps/TARGET_CY8CPROTO-062S3-4343W.mtb"
fatal: --stdin requires a git repository
fatal: fetch-pack: invalid index-pack output
fatal: write error: No space left on device
ERROR: Unable to checkout "TARGET_CY8CPROTO-062S3-4343W". This is not a valid git repository.
==============================================================================
ERROR: --ABORTING--
: Script : C:/NSS/Infineon/Tools/ModusToolbox/tools_2.4/make/getlibs.bash
: Bash path : /usr/bin/bash
: Bash version: 4.4.12(3)-release
: Exit code : 1
: Call stack : trap_exit error perform_git process_mtb extract_data find_mtbs main
fatal: repository '/cygdrive/c/Users/starka/.modustoolbox/cache/git/https___github.com_cypresssemiconductorco_TARGET_CY8CPROTO-062S3-4343W/TARGET_CY8CPROTO-062S3-4343W' does not exist
make: *** [C:/NSS/Infineon/Tools/ModusToolbox/tools_2.4/make/getlibs.mk:121: getlibs] Error 1
Project "Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2" failed to create.
"make getlibs" failed.
Failed to create and export "Bluetooth_LE_CAPSENSE_Buttons_and_Slider_2" application.
Last years I used this template without issues.
How to removes theses errors ?
Alexandre
Show Less