PSoC™ 6 Forum Discussions
Hi, I just downloaded and installed Modus Toolbox. I tried to create an empty project and get the following error.
Summary:
BSP: PSOC6-GENERIC
Template Application(s): Empty PSoC6 App
Application(s) Root Path: C:/Users/liu.chao3/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:/Users/liu.chao3/ModusToolbox/tools_2.4/project-creator/project-creator-cli.exe --board-id PSOC6-GENERIC --board-uri https://github.com/cypresssemiconductorco/TARGET_PSOC6-GENERIC --board-commit latest-v3.X --app-id mtb-example-psoc6-empty-app --app-uri https://github.com/cypresssemiconductorco/mtb-example-psoc6-empty-app --app-commit latest-v3.X --cypress-tools C:/Users/liu.chao3/ModusToolbox/tools_2.4 --target-dir C:/Users/liu.chao3/mtw --user-app-name Empty_PSoC6_App --output-for-machine --use-modus-shell --offline
==============================================================================
= Cloning 'mtb-example-psoc6-empty-app' =
==============================================================================
Cloning https://github.com/cypresssemiconductorco/mtb-example-psoc6-empty-app into C:/Users/liu.chao3/mtw directory...
env git clone --progress --origin cypress /cygdrive/c/Users/liu.chao3/.modustoolbox/offline/git/https___github.com_cypresssemiconductorco_mtb-example-psoc6-empty-app/mtb-example-psoc6-empty-app Empty_PSoC6_App
Cloning into 'Empty_PSoC6_App'...
done.
Checking out latest-v3.X...
env git checkout --progress latest-v3.X
Note: switching to 'latest-v3.X'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at a9e053c Upload mtb-example-psoc6-empty-app 3.0.0.181
env git remote set-url cypress https://github.com/cypresssemiconductorco/mtb-example-psoc6-empty-app
==============================================================================
= Creating "TARGET_PSOC6-GENERIC.mtb" file(s) =
==============================================================================
C:/Users/liu.chao3/mtw/Empty_PSoC6_App/deps/TARGET_PSOC6-GENERIC.mtb was added
C:/Users/liu.chao3/mtw/Empty_PSoC6_App/deps/TARGET_CY8CPROTO-062-4343W.mtb was removed
==============================================================================
= Updating Makefile for "Empty_PSoC6_App" =
==============================================================================
==============================================================================
= Applying the Latest Version Locking for "Empty_PSoC6_App" =
==============================================================================
C:/Users/liu.chao3/mtw/Empty_PSoC6_App/deps/TARGET_PSOC6-GENERIC.mtb was updated
==============================================================================
= Getting Dependencies for "Empty_PSoC6_App" =
==============================================================================
C:/Users/liu.chao3/ModusToolbox/tools_2.4/modus-shell/bin/make.exe getlibs CY_GETLIBS_OFFLINE=true CY_TOOLS_PATHS=C:/Users/liu.chao3/ModusToolbox/tools_2.4
Tools Directory: C:/Users/liu.chao3/ModusToolbox/tools_2.4
==============================================================================
= Importing libraries =
==============================================================================
Git is git version 2.33.0, found at /usr/bin/git
Resolving dependencies...
CY_GETLIBS_OFFLINE variable is set.
Force switching to offline mode.
Getting manifests from offline contents...
Found offline super-manifest: file:///C:/Users/liu.chao3/.modustoolbox/offline/manifests-v2.X/mtb-super-manifest-fv2.xml
Processing super-manifest file:///C:/Users/liu.chao3/.modustoolbox/offline/manifests-v2.X/mtb-super-manifest-fv2.xml...
Successfully acquired the information.
INFO - Warning: Multiple versions of "core-make" requested. Keeping version "latest-v1.X" and discarding version "release-v1.9.0".
C:/Users/liu.chao3/mtw/Empty_PSoC6_App/libs/core-lib.mtb was added
C:/Users/liu.chao3/mtw/Empty_PSoC6_App/libs/core-make.mtb was added
C:/Users/liu.chao3/mtw/Empty_PSoC6_App/libs/mtb-hal-cat1.mtb was added
C:/Users/liu.chao3/mtw/Empty_PSoC6_App/libs/mtb-pdl-cat1.mtb was added
C:/Users/liu.chao3/mtw/Empty_PSoC6_App/libs/psoc6cm0p.mtb was added
C:/Users/liu.chao3/mtw/Empty_PSoC6_App/libs/recipe-make-cat1a.mtb was added
Dependencies resolved.
Searching application directory (.mtb)...
Found 7 .mtb file(s)
Processing file "C:/Users/liu.chao3/mtw/Empty_PSoC6_App/deps/TARGET_PSOC6-GENERIC.mtb"
==============================================================================
ERROR: --ABORTING--
: Script : C:/Users/liu.chao3/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 extract_data find_mtbs main
C:/Users/liu.chao3/ModusToolbox/tools_2.4/make/getlibs.bash: line 646: currLibCommit: unbound variable
make: *** [C:/Users/liu.chao3/ModusToolbox/tools_2.4/make/getlibs.mk:121: getlibs] Error 1
Project "Empty_PSoC6_App" failed to create.
"make getlibs" failed.
Failed to create and export "Empty_PSoC6_App" application.
Also I tried to uninstall modustoolbox and restart my computer, then I install modustoolbox again, but it's no use, still have this problem.
The environment PATH variable :
Show Less
I am attempting to utilize the arm dsp cores with the Psoc5LP system from cypress.
Primarily the fft example is what I am interested in replicating, but I am confused slightly on how cores work. I have used the picoblaze core on Xilinx Spartan-6 before but I have never used premade cores, especially for Psoc.
I have looked at the psoc system reference guide and found information on CMSIS under startup and linking, but it does not make full sense to me. could someone please point me in the right direction to get me started? also will I have to download all the files individually that I need such as the arm_math.c for the fft example (if so I think that's the only file I need?), or will I just need to download the CMSIS version 4.3 from arms website.
I'm trying to implement spectral flux analysis and autocorrelation using these cores and I think they are a good echatrandom place to start.
Thanks in advance,
Show LessHi All:
For Psoc6 ,if the Core M0 Plus and the M4 go into the Deep sleep mode, can the BLESS isr can wake up the Core M0 Plus and the M4 to the active mode?
I am using a PSoC6 CM4 for BLE discovery, and also use an uart for external debug. I want to make sure to save as much as possible in power, so i want to run few seconds scanning, and then a period of extreme low power.
I test hibernate, but it looks like the unit restarts after waking up instead of continuing my 'loop'
Created project in psoc creator, and use vscode for the main-code.
Questions:
1: How can i go in hibernate, and preferably not restart/ reinitialise?
2: once i add the UART, the current in hibernate goes up to 350uA, even if i do not initialise it. How can i change that? Without UART placed in de design, it goes to 1uA
All idea's/help are welcome
Show LessCY8CKIT-062S2-43012 maximum 600kbit's throughput with AnyCloud: TCP
I used the AnyCloud: TCP client example and added for loop to transmit dummy messages.
I Could not get more than 600kbit of throughput with TCP to a remote host over the wide web (amazon server).
compering the test with Linux system with same wifi module, I got 5Mbits throughput with TCP,
it looks like the 600kbit barrier is a software/configuration issue
see attached source code and pcap
please advise
Show Lessi build the example "hello world" by use CY8CKIT-062S2-43012 and get 2 error .
make[1]: *** [../mtb_shared/core-make/release-v1.9.0/make/core/build.mk:529: C:/Users/??恭???/mtw/Hello_World/build/CY8CKIT-062S2-43012/Debug/mtb-example-psoc6-hello-world.elf] Error 1
make: *** [../mtb_shared/core-make/release-v1.9.0/make/core/main.mk:434: secondstage_build] Error 2
What's that mean?
Thanks.
Show LessHello,
I'm using CY8C6136FDI-F42 and Modus toolbox.
And I'm trying to output PWM using P8.1 and P8.2.
I used the function below to start two outputs at the same time.
#define CNT0 (0UL)
#define CNT1 (1UL)
#define CNT_MULT_MASK (uint32_t)((1UL << CNT0) | (1UL << CNT1))
Cy_TCPWM_Enable_Multiple(TCPWM0, CNT_MULT_MASK);
Cy_TCPWM_TriggerStart(TCPWM0, CNT_MULT_MASK);
Q1) What function is appropriate to use to only stop the PWM output of P8.2 and keep the output low?
Q2) When P8.2 resumes PWM output, P8.2 should start according to the running P8.1.
Because I need to maintain a complementary outputs. Please let me know how to do it.
Thanks and Regards,
YS
Hi
I'm developing for a custom embedded board having an Infineon TLE9879 which is a motor controller containing an ARM Cortex-M3 programmable core. My code runs fine from flash with the debugger attached, but when I disconnect it to run the product stand-alone I get nothing. We have an evaluation board up and running with the same code, so my first thought was something different in the hardware. The eval board has an extra chip for the JTAG interface, so it's not really possible to run it the same way. The eval board does run stand-alone if I unplug the USB cable but there is still extra hardware connected on the board that is not present in our product. The connections on our JTAG appear to match the recommendations, and I am able to make it work with connected to the IDE.
Is there anything internal to the chip that may need to be configured when programming that might be set incorrectly? Any other ideas? This feels like a missing pull-up or misconfigured bit preventing it from getting out of reset.
update: It actually work stand-alone sometimes, but usually does not. It does seem to be running, as we have a PWM output to indicate status and that is running even if nothing else works. I will try to hack the code to get a more meaningful status out the PWM. I'm still confused as to why it would always run fine with the debugger attached and hardly ever without it.
Show LessHi
I am using the SPI as slave with external interrupt source.
The ISR does not return even if I clear the RxBuffer:
Cy_SCB_SPI_ClearRxFifo(sSPI_HW);
Cy_SCB_SPI_ClearRxFifoStatus(sSPI_HW, CY_SCB_SPI_RX_INTR_MASK); //CY_SCB_SPI_RX_NOT_EMPTY);
how should I properly clear the interrupt for the SPI ?
thanks
Show LessHi, I am trying to test the PSOC deep sleep function.
Currently, I am using CY8CKIT-062-BLE for developing low-power devices.
I want to check the power consumption when the system is in Deep sleep mode.
The code example CE219521 is used. However, after I programmed the example code, and measure the current through J8 using a multimeter, the current is showing about 2.4 mA after the red LED was off.
According to the PSOC manual, the current is only ~uA during deep sleep.
Has anyone ever used the code example CE219521 and measured the current consumption?
Very appreciate it if you can provide some suggestions!!!
The project that I am using is attached.
Show Less