PSoC™ 6 Forum Discussions
Hi,
I would like to program the PSOC6 BLE Pioneer kit external flash part number S25FL512S for XIP use..I can program this S25FL512S for XIP using PSOC Creator 4.4 with no issue. All good.
However, I can't program this part for XIP using PSOC Programmer software if the PSOC6 MCU has never been programmed to see the external flash.
It looks to be that the PSOC Creator 4.4 adds the XIP functionality that I have in the code based on PSOC6 Example Project CE224285 and hence External flash is visible to the PSOC Programmer.
But if I don't use the PSOC Creator, the the PSOC programmer itself can't create the XIP toc2 structure and hence can't program it.
I get the following error from PSOC programmer. The view shows the load from hex view where the image hex file has the external flash visibility but I also provided "load from device" view where it does not have SMIF because the MCU has not been programmed by PSOC Creator.
Failed SMIF CMSIS algorithms initialization for address: 0x18000000
Failed executing CMSIS API: Failed executing "Init" API;
CPU is in lockup state after Flash Loader API execution
My question is that I can program the external flash for XIP using PSOC Creator but not the PSOC Programmer.
How can I program with PSOC programmer?
Is there anything else I need to do beside adding the following toc2 as per code example SOC6 Example Project CE224285?
/*******************************************************************************
* Point to the SMIF block structure in the table of contents2 (TOC2).
* The TOC2 structure supports user application validation. See
* AN221111 for more information about the TOC2 and its use.
*
* This enables memory reads using Cypress Programmer, without this
* structure, external memory access from Cypress Programmer will not work
*******************************************************************************/
CY_SECTION(".cy_toc_part2") __attribute__((used))
const int cyToc[(512 / 4)] =
{
0x200-4, /* Offset=0x00: Object Size, bytes */
0x01211220, /* Offset=0x04: Magic Number (TOC Part 2, ID) */
0, /* Offset=0x08: Key Storage Address */
(int)&smifIpBlocksArr, /* Offset=0x0C: This points to a null terminated array of SMIF structures. */
0x10000000u, /* Offset=0x10: App image start address */
0, /* Offset=0x14: Application Format */
0, /* Offset=0x18: App #2 image start address */
0, /* Offset=0x1C: App #2 App Format */
0, /* Offset=0x20: Number of the next objects to add to SECURE_CMAC */
0, /* Offset=0x24: Public Key address */
0, /* Offset=0x28-1F4: … (additional objects if needed or 0’s if none) */
/* Offset=0x1F8: */
[(512 / sizeof(int)) - 2] = (0x00 << 2) | /* Bits [4:2]: Listen Window Time index: */
/* 0 = 20ms (default), 1 = 10ms, 2 = 1ms, 3 = 0ms, 4 = 100ms, 5-7 = reserved */
(0x01 << 0), /* Bits [1:0]: IMO/FLL clock frequency index: */
/* 0 = 8MHz, 1 = 25MHz (default), 2 = 50MHz, 3 = Reserved */
/* Offset=0x1FC: CRC16-CCITT (the upper 2 bytes contain the CRC and the lower 2 bytes are 0) */
};
Thanks in advance,
Shahram Amini
Show LessHello there,
I want to create a interrupt botton in my project, using FreeRTOS, but the botton is not working. Someone can help me?
In some documents like this
PSoC6 MCU CY8C61x5, CY8C62x5 Architecture Technical Reference Manual PSoC 62 MCU.pdf
Clicking on the bookmarks does not work.
Show LessOn page 214 (section 19.2) https://www.cypress.com/file/385621/download it describes a default setting of the backup power domain to be Vddd if brown-out detect is enabled and no brown out event occurred. Looking at simplified schematics I see it explicitly connected to the Vdd pin or a separate power supply between 1.4 and 3.6 V. Could anything go wrong if the vbackup pin is only connected to a small capacitor and nothing else?
Show LessHi,
I'm using PSoC Creator 4.4 and PDL 3.1.3, and I have some variables that will be shared between CM0+ and CM4. I'm exploring ways to create a single linker script that contains specific sections that I can put these shared variables in.
I noticed there's a file named cycodeshareimport.scat and would like to know if I can use this to create my section, instead of having to put this section twice, once in M0 scatter file and the other in M4 scatter file?
Thanks!
Show LessI have an Psoc63 as BLE 5 central and three PSoC 4200 as BLE 4.2 peripheral. After a successful discovery from central using whitelist I try to connect to one of the three peripheral using his address. Unexpectedly the central was connected with a peripheral with different address!!!!! Also I try an unexisting address and again it was connected with a random peripheral with different address. Maybe the issue arise from the BLE 4.2 peripherals.
I will appreciate your help to this
Show Less
Hello, I am fairly new to the Cypress world. I am trying out the mtb-example-anycloud-ble-wifi-onboarding with my test kit CYW9P62S1-43438EVB-01. But I am getting below error upon building the application. I am using MoudusToolbox 2.2. I checked that 43438 is supported in the latest Bluetooth-freertos. Can I get some help please? Thanks in advanced!
Error message attached below:
------------------------------------------------
56 | #include "cycfg_system.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [../mtb_shared/core-make/latest-v1.X/make/core/build.mk:372: C:/Users/mingh/mtw/AnyCloud_Wi-Fi_Onboarding_Using_BLE/build/CYW9P62S1-43438EVB-01/Debug/wifi_task.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from ../mtb_shared/freertos/latest-v10.X/Source/include/FreeRTOS.h:56,
from ../mtb_shared/abstraction-rtos/latest-v1.X/source/COMPONENT_FREERTOS/cyabs_freertos_helpers.c:25:
./configs/FreeRTOSConfig.h:56:10: fatal error: cycfg_system.h: No such file or directory
56 | #include "cycfg_system.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from configs/app_platform_cfg.c:41:
configs/app_platform_cfg.h:46:10: fatal error: cycfg_pins.h: No such file or directory
46 | #include "cycfg_pins.h"
| ^~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [../mtb_shared/core-make/latest-v1.X/make/core/build.mk:372: C:/Users/mingh/mtw/AnyCloud_Wi-Fi_Onboarding_Using_BLE/build/CYW9P62S1-43438EVB-01/Debug/configs/app_platform_cfg.o] Error 1
make[1]: *** [../mtb_shared/core-make/latest-v1.X/make/core/build.mk:382: C:/Users/mingh/mtw/AnyCloud_Wi-Fi_Onboarding_Using_BLE/build/CYW9P62S1-43438EVB-01/Debug/ext/mtb_shared/abstraction-rtos/latest-v1.X/source/COMPONENT_FREERTOS/cyabs_freertos_helpers.o] Error 1
In file included from ../mtb_shared/TARGET_CYW9P62S1-43438EVB-01/latest-v2.X/cybsp.h:28,
from main.c:43:
../mtb_shared/TARGET_CYW9P62S1-43438EVB-01/latest-v2.X/cybsp_types.h:25:10: fatal error: cycfg.h: No such file or directory
25 | #include "cycfg.h"
| ^~~~~~~~~
compilation terminated.
make[1]: *** [../mtb_shared/core-make/latest-v1.X/make/core/build.mk:372: C:/Users/mingh/mtw/AnyCloud_Wi-Fi_Onboarding_Using_BLE/build/CYW9P62S1-43438EVB-01/Debug/main.o] Error 1
In file included from ../mtb_shared/TARGET_CYW9P62S1-43438EVB-01/latest-v2.X/cybsp.h:28,
from ../mtb_shared/TARGET_CYW9P62S1-43438EVB-01/latest-v2.X/cybsp.c:29:
../mtb_shared/TARGET_CYW9P62S1-43438EVB-01/latest-v2.X/cybsp_types.h:25:10: fatal error: cycfg.h: No such file or directory
25 | #include "cycfg.h"
| ^~~~~~~~~
compilation terminated.
make[1]: *** [../mtb_shared/core-make/latest-v1.X/make/core/build.mk:382: C:/Users/mingh/mtw/AnyCloud_Wi-Fi_Onboarding_Using_BLE/build/CYW9P62S1-43438EVB-01/Debug/ext/mtb_shared/TARGET_CYW9P62S1-43438EVB-01/latest-v2.X/cybsp.o] Error 1
make: *** [../mtb_shared/core-make/latest-v1.X/make/core/main.mk:416: secondstage_build] Error 2
"C:/Users/mingh/ModusToolbox/tools_2.2/modus-shell/bin/make CY_MAKE_IDE=eclipse CY_MAKE_IDE_VERSION=2.2 CY_IDE_TOOLS_DIR=C:/Users/mingh/ModusToolbox/tools_2.2 -j8 all" terminated with exit code 2. Build might be incomplete.
11:27:41 Build Failed. 12 errors, 0 warnings. (took 13s.368ms)
Show LessHello all,
Does anyone know when a PSOC62 or PSOC63 variant with UDB and an SD Host controller will be available?
-=Eric Schumann
Hello.
I used PSoC 62S2 Wi-Fi BT Pioneer Kit.
Programming fails.
Could you please let us know a solution of this issue?
FW is hello world of Starter Application.
It is described as “Hello_World Program(KitProg3)” in Figure 2-10 of kit guide(002-28109).
But it is described as “Hello_World Program(KitProg3_MiniProg4)” in my tool.
Programming will fail even if mode is changed by SW3(MODE SELECT).
Best Regards.
Yutaka Matsubara
Show Less