PSoC™ 6 Forum Discussions
text.format{('custom.tabs.no.results')}
Hi,
I'm trying to run the example "secure blinky LED FreeRTOS" with CY8CPROTO-064B0S3 on Mac
While building the example in ModusToolbox by clicking "Build Secure_Blinky_LED_FreeRTOS Application", I've faced errors : ModuleNotFoundError: No module named 'cysecuretools'
Following the instructions written in the user manual, I've already installed cysecuretools by using pip before it.
When I've executed the build command directly on the local terminal, the hex files have been created properly.
Should I set a specific path for cysecuretools in ModusToolbox?
The detail of error messages are below:
==============================================================================================
Linking output file mtb-example-psoc6-secure-blinky-led-freertos.elf
python3 /Users/jaebonglee/work/mtw_1/Secure_Blinky_LED_FreeRTOS/libs/TARGET_CY8CPROTO-064B0S3/psoc64_postbuild.py --core CM4 --secure-boot-stage single --policy policy_single_CM0_CM4 --target cyb06xx5 --toolchain-path /Applications/ModusToolbox/tools_2.4/gcc --toolchain GCC_ARM --build-dir /Users/jaebonglee/work/mtw_1/Secure_Blinky_LED_FreeRTOS/build/CY8CPROTO-064B0S3/Debug --app-name mtb-example-psoc6-secure-blinky-led-freertos --cm0-app-path ../mtb_shared/psoc6cm0p/release-v2.2.0 --cm0-app-name psoc6_03_cm0p_secure
Traceback (most recent call last):
File "/Users/jaebonglee/work/mtw_1/Secure_Blinky_LED_FreeRTOS/libs/TARGET_CY8CPROTO-064B0S3/psoc64_postbuild.py", line 22, in <module>
from cysecuretools import CySecureTools
ModuleNotFoundError: No module named 'cysecuretools'
make[1]: *** [CY_BUILD_bsp_postbuild] Error 1
make: *** [secondstage_build] Error 2
"/Applications/ModusToolbox/tools_2.4/modus-shell/bin/make CY_MAKE_IDE=eclipse CY_MAKE_IDE_VERSION=2.4 CY_IDE_TOOLS_DIR=/Applications/ModusToolbox/tools_2.4 -j9 all" terminated with exit code 2. Build might be incomplete.
09:07:53 Build Failed. 2 errors, 0 warnings. (took 6s.552ms)
==============================================================================================
Show LessHello,
I am trying to start up the Modus Toolbox using the Xcode app on a Mac since it says I am required to do so in this screenshot:
However I am unfortunately unfamiliar with Xcode and am a little lost right now.
When I open the Xcode app and try to open ModusToolbox it shows this which I am confused on:
For mac am I able to use eclipse instead or do I have to use Xcode?
Thank you!
Show LessWhen I followed the descriptions for 'Secure Blinky LED FreeRTOS' example with CYB06445LQI-S3D42,
I faced error messages with 'cysecuretools --target cyb06xx7 --policy ./policy/policy_single_CM0_CM4.json provision-device' as like the below.
2022-06-09 17:10:59,351 : C : INFO : ######################################################################
2022-06-09 17:10:59,351 : C : INFO : Provisioning packet is created
2022-06-09 17:10:59,351 : C : INFO : ######################################################################
2022-06-09 17:10:59,355 : C : INFO : Target: cyb06xx7
2022-06-09 17:10:59,369 : P : INFO : Target type is cy8c64xx_cm4_full_flash
2022-06-09 17:10:59,377 : P : INFO : DP IDR = 0x6ba02477 (v2 rev6)
2022-06-09 17:10:59,378 : P : INFO : AHB-AP#0 IDR = 0x84770001 (AHB-AP var0 rev8)
2022-06-09 17:10:59,381 : P : INFO : AHB-AP#2 IDR = 0x24770011 (AHB-AP var1 rev2)
2022-06-09 17:10:59,386 : P : INFO : AHB-AP#0 Class 0x1 ROM table #0 @ 0xf1000000 (designer=034 part=105)
2022-06-09 17:10:59,390 : P : INFO : AHB-AP#2 Class 0x1 ROM table #0 @ 0xe00ff000 (designer=034 part=105)
2022-06-09 17:10:59,392 : P : INFO : [0]<e0080000:CTI class=9 designer=43b part=906 devtype=14 archid=0000 devid=40800:0:0>
2022-06-09 17:10:59,394 : P : INFO : [3]<e008e000:TPIU M3 class=9 designer=43b part=923 devtype=11 archid=0000 devid=ca1:0:0>
2022-06-09 17:10:59,395 : P : INFO : [4]<e007f000:ROM class=1 designer=034 part=105>
2022-06-09 17:10:59,395 : P : INFO : AHB-AP#2 Class 0x1 ROM table #1 @ 0xe007f000 (designer=034 part=105)
2022-06-09 17:10:59,398 : P : INFO : [0]<e000e000:SCS v7-M class=14 designer=43b part=00c>
2022-06-09 17:10:59,400 : P : INFO : [1]<e0001000:DWT v7-M class=14 designer=43b part=002>
2022-06-09 17:10:59,401 : P : INFO : [2]<e0002000:FPB v7-M class=14 designer=43b part=003>
2022-06-09 17:10:59,403 : P : INFO : [3]<e0000000:ITM v7-M class=14 designer=43b part=001>
2022-06-09 17:10:59,404 : P : INFO : [4]<e0042000:CTI class=9 designer=43b part=906 devtype=14 archid=0000 devid=40800:0:0>
2022-06-09 17:10:59,406 : P : INFO : [5]<e0041000:ETM M4 class=9 designer=43b part=925 devtype=13 archid=0000 devid=0:0:0>
2022-06-09 17:10:59,407 : P : INFO : CPU core #1 is Cortex-M4 r0p1
2022-06-09 17:10:59,409 : P : INFO : FPU present: FPv4-SP-D16-M
2022-06-09 17:10:59,411 : P : INFO : 4 hardware watchpoints
2022-06-09 17:10:59,412 : P : INFO : 6 hardware breakpoints, 4 literal comparators
2022-06-09 17:10:59,415 : C : INFO : Use system AP
2022-06-09 17:10:59,420 : P : INFO : Clearing TEST_MODE bit...
2022-06-09 17:10:59,420 : C : INFO : Probe ID: 190C13010a0e161b030a0e1600000000000000002e127069
2022-06-09 17:10:59,422 : C : INFO : Secure Flash Boot version: 4.0.2.1842
2022-06-09 17:10:59,422 : C : ERROR : Memory transfer fault @ 0x40230040-0x40230043. Check the log for details
Error: Failed processing!
How can I resolve this issue?
Hi,
I have placed an ADC with 12 channels and an analog comparator in PSOC-6 design. However the router always fails and is unable to path for routing the analog comparator.
Routing has always been an adventure in all the PSOC devices and we can never tell whether a design will or will not be successfully routed. Or what is the criteria for guaranteed routing success?
I guess the comparator can be routed through analog mux to any desired port. Then why am I getting routing issues? Also, is there a way to manually route the path instead of letting the auto-router decide?
Please help
Show LessHello,
I am using the ADC component from PSoC6.3 for data acquisition.
My question would be – how can I set from the code the sampling rate for data acquisition?
Regards,
Horia
Show LessThe 'Program Row' operation documents states "The flash row should be in the erased state before calling this function", but is it bad if this is not the case?
Can I reprogram a row without erasing if I'm only setting new bits in the row (ie not trying to reset any bits to the erased 0 state)?
If this works it will result in a faster row update (5mSec rather than 16mSec). Will it also improve endurance?
The device concerned is CY8C6247BZI. I'm wanting to implement event logging to the EE Emulation flash.
thanks
Clayton
Show LessI'm trying to bring up the CE213903 bootloader example on a CY8C6247FDI-D32. The only changes I've made are to move the UART to P7 and change the baud rate to 9600.
When I run the bootloader host for APP1, I either get 'The key provided for the packet does not match the key that the bootloader expects.' or 'Packet data invalid: the packet sent to the bootloader does not conform to the required packet format,'
If I leave the baud rate at the default 115200, I get 'The bootloader reported error 'Packet length invalid: the packet's length does not conform to the required packet format'
Ideas or suggestions?
Show LessI'm using a a CY8CKIT-062-BLE with the EINK display.
I have two projects using this kit.
One works to update the display the other does not.
On the one that doesn't work (link) it complains about a code line using:
LCD_GetDisplayBuffer().
The linker complains and aborts:
.\CortexM4\ARM_GCC_541\Debug\main_cm4.o: In function `UpdateDisplay':
C:\Users\lpoma\Desktop\SineGen_Audio\SineGen_Audio_EINK_062-BLE.cydsn/main_cm4.c:174: undefined reference to `LCD_GetDisplayBuffer'
collect2.exe: error: ld returned 1 exit status
The command 'arm-none-eabi-gcc.exe' failed with exit code '1'.
I compared the build specs of the two projects and the issue is not immediately apparent.
Apparently I'm missing a em-Win library reference some where.
I can use some expert help here.
Thanks in advance.
Show LessDear Receiver,
In the past, we used PSoC Creator to design MCU peripheral. By using PSoC Creator GUI, we can easily initial MCU peripherals.
Now if we want to use PSoC 6 to enhanced the function. We need to use MTB to develop.
Do you have tools that can convert *.cysch file to MTB library file directly ?!
How to converter *.cysch to MTB ?!
Thank you so much.
Show LessHello.I am using an CY8CKIT-062S2-43012 Pson6 board and the lastest version of Modus Toolbox.
I am having trouble loading a keras model with a custom layer into our application. The ML Configurator returns us an error: "Error returned: Unknown layer: FFT_Image. Please ensure this object is passed to the custom_objects
argument." Even when we don't use a custom layer, we still get the error: "Deploy script returned with error 'list' object has no attribute 'name'"
And finally in the project itself , in the library file "mtb_ml_common.h", we get a linker error: " #error Unsupported data type" We've been looking everywhere in the exemple projects and cannot figure out where COMPONENT_ML_FLOAT32 is defined and how can we define it properly in our project as well. We would really appreciate some help.
Show Less