ModusToolbox™ General Forum Discussions
Hello I'm a begineer in this. I have tried multiple settings but it still won't run properly. The Cypress still treating uint32_t as 'type cannot be resolved'. Although the code does run but still cant run the demo well. Any help please?
Show LessWLAN Firmware : wl0: Sep 5 2019 23:24:33 version 7.45.98.92 (r722362 CY) FWID 01-f7128517
WLAN CLM : API: 12.2 Data: 9.10.39 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2019-09-05 23:10:00
WHD VERSION : v1.70.0 : v1.70.0 : GCC 7.2 : 2019-12-02 04:14:53 -0600
.1 5038 [Tmr Svc] Wi-Fi Connected to AP. Creating tasks which use network...
2 5038 [Tmr Svc] IP Address acquired 172.24.172.118
3 6733 [Tmr Svc] Write certificate...
4 7275 [iot_threa] [INFO ][DEMO][lu] ---------STARTING DEMO---------
5 7277 [iot_threa] [INFO ][INIT][lu] SDK successfully initialized.
.6 12027 [iot_threa] [INFO ][DEMO][lu] Successfully initialized the demo. Network type for the demo:7 12027 [iot_threa] [INFO ][MQTT][lu] MQTT library successfully initialized.
8 12027 [iot_threa] [INFO ][DEMO][lu] MQTT demo client identifier is Cypress (length 7).
.9 17097 [iot_threa] [INFO ][MQTT][lu] Establishing new MQTT connection.
10 17099 [iot_threa] [INFO ][MQTT][lu] Anonymous metrics (SDK language, SDK version) will be provid11 17100 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778, CONNECT operation 0x800c168) Wai.12 22100 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778, CONNECT operation 0x800c168) Wai13 22100 [iot_threa] [ERROR][MQTT][lu] Failed to establish new MQTT connection, error TIMEOUT.
14 22101 [iot_threa] [INFO ][MQTT][lu] Network connection closed on error.
15 22401 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) Network connection destroyed.
16 22401 [iot_threa] [ERROR][DEMO][lu] MQTT CONNECT returned error TIMEOUT.
17 22401 [iot_threa] [INFO ][MQTT][lu] MQTT library cleanup done.
18 22401 [iot_threa] [ERROR][DEMO][lu] Error running demo.
19 22401 [iot_threa] [INFO ][INIT][lu] SDK cleanup done.
20 22401 [iot_threa] [INFO ][DEMO][lu] -------DEMO FINISHED-------
Hi,
I try to install version 2.1 of ModusTools in my PC windows10.
Unfortunately, I can not build examples but I get any example programs from Project creator 1.1.
Could you advise me to work this tool.
The error message when closing Project Creator is:
------------------------------------------
Opening project creator from C:/ModusToolbox/tools_2.1/project-creator/project-creator
Importing BLE_Find_Me (1/1) ...
Error creating Eclipse launch configurations: C:/ModusToolbox/tools_2.1/make/start.mk:393: *** Build support for the target device not found. Run "make getlibs" to ensure all required build and code dependencies are present.. Stop.
Done.
------------------------------------------
The building error is following::
------------------------------------------
"C:\\ModusToolbox\\tools_2.1\\modus-shell\\bin\\make" CY_MAKE_IDE=eclipse CY_IDE_TOOLS_DIR=C:/ModusToolbox/tools_2.1 -j8 all
Tools Directory: C:/ModusToolbox/tools_2.1
C:/ModusToolbox/tools_2.1/make/start.mk:393: *** Build support for the target device not found. Run "make getlibs" to ensure all required build and code dependencies are present.. Stop.
"C:/ModusToolbox/tools_2.1/modus-shell/bin/make CY_MAKE_IDE=eclipse CY_IDE_TOOLS_DIR=C:/ModusToolbox/tools_2.1 -j8 all" terminated with exit code 2. Build might be incomplete.
15:13:20 Build Failed. 1 errors, 0 warnings. (took 582ms)
------------------------------------------
When I right click on my project in project explorer, ONLY Project creator 1.1 will be display. It does not display any other tools.
The header in main.c file is not recognized.
I did following settings:(refer to installation guide v2.1)
+ Uninstall ModusTools 2.0
+ Set environment
CyManifestLocOverride=C:/ModusToolbox/.modustoolbox/manifest.loc
CY_GETLIBS_CACHE_PATH=C:/ModusToolbox/.modustoolbox/cache
CY_GETLIBS_OFFLINE_PATH=C:/ModusToolbox/.modustoolbox/offline
CY_TOOLS_PATHS=C:/ModusToolbox/tools_2.1
It dose not improve when I specify the ModusToolbox Tools location.
Regards,
Kenshow
Show LessHi,
I use Git Extensions and I'm a immediate user of Git. All MTB projects appear to automatically create a git repository.
I downloaded the "Empty PSoC6" project from git hub and modified it to my heart's content.
I want to commit my changes WITHOUT dumping it back to the git hub location it originally came from.
What is the proper way?
Note: I'd prefer Git Extensions instructions since git.exe is so verbose and confusing.
I'm familiar with Git Extensions for committing changes to local repositories. I do that all the time.
Len
Show Lessi have just started to try to use the freeRTOS and got some confusion, although i can run the aws freeRTOS demo follow the Getting Started with Amazon FreeRTOS and PSoC62 + 43xxx
1) how to download the root CA for AWS IoT ? -> i still can run the demo without the root CA for AWS IoT
clicking download brings to a documentation page https://docs.aws.amazon.com/iot/latest/developerguide/server-authentication.html#server-authentication-certs
which has no information about how to download it
i copy this figure from https://docs.aws.amazon.com/iot/latest/developerguide/create-device-certificate.html
2) where do we use this root CA for AWS IoT ? what's is its use case?
Show LessHi,
Note: Using CY8CKIT-062-BLE.
I've spotted a potential MTB 2.1 issue where I can launch the "Hello_World" app as a "Run". It works.
When I launch it as a "Debug" it terminates. See pic below.
It's probably a setting that got changed. I can "Debug" other applications in the workspace.
I can upload the project however the archiving process generates LARGE files. Unzipped: 78.4MB Zipped: 21MB.
Len
Message was edited by: Len Update: Without changing the source code or build, a System Restart fixed the issue. It would appear that in the previous System session, the Debug (gdb) task was "corrupted" or "confused" and would not let me enter into Debug mode.
Show LessIssue:
MTB using the BLE Configurator (Window to right) has a small issue. The display of the assigned Advertising Interval Value does not take into account the <hex value>/1.6 factor.
The window to the left is the correct value from the BLE customizer in PSoC Creator.
Again. This is a very minor issue. It doesn't appear to effect operation. Just an item for the next MTB update.
Len
Show LessHi,
Coding with PSoC Creator projects has a #define CY_PROJECT_NAME that is the name string of the project being built. Change the project name and recompile, CY_PROJECT_NAME matches the new project name.
Is there an equivalent in ModusToolbox to CY_PROJECT_NAME that lists the project name string?
Len
Show LessTo all,
I have working PSoC Creator that I ported to MTB.
It is generally working however trying to use snprintf() on a 64-bit variable (long long) is not working.
Here is the code fragment:
...
uint64 uid;
uint16_t tstr_sz[50]
#if (CYDEV_CHIP_FAMILY_USED == CYDEV_CHIP_FAMILY_PSOC6)
uid = Cy_SysLib_GetUniqueId();
#else
CyGetUniqueId((uint32 *)uid);
#endif
snprintf(tstr, sizeof(tstr), "Unique Silicon ID: %.8llX\r\n", uid);
UART_PutString(tstr);
...
When compiled from PSoC Creator I get:
Unique Silicon ID: ED2F482D69619DA
When compiled from MTB I get:
Unique Silicon ID: llX
Using PSoC Creator I needed to set to get 64-bit vars to work:
Is there a similar setting in MTB?
Len
Show LessHi friends,
as I recently had problems to run the code example CE229112 (PSoC6+WiFi TCP Client), I figured out that Python access to Wifi was blocked per default by the Windows 10 Firewall Settings. Attached a guideline how to enable WiFi for Python scripts. Probably it helps you, too.
Afterwards the example runs fine.
Regards,
Mic Roller
Show LessHi,
I recently downloaded ModusToolbox (MTB) 2.1.
Moved some MTB project into it. Seems to work.
I copied a project already in the workspace to the same workspace with another name. So far so good.
When I went into Library Manager 1.1,
- I deselected CY8CPROTO-063-BLE
- Selected CY8CKIT-062-BLE and CY8CPROTO-062-4343W
- Selected "Apply".
- The Lib updates are occurring however:
- Libs for CY8CPROTO-062-4343W show up in Libs directory.
- Libs for CY8CPROTO-063-BLE are STILL in Libs directory.
- Libs for CY8CKIT-062-BLE are NOT in Libs directory.
- Note: CY8CPROTO-063-BLE was the Active BSP:
- I exit the Library Manager.
- I enter back into the Library Manager.
Here is a window snip of Library Manager.
I don't know if this problem existed with MTB 2.0.
Len
Show Less