5. 使用ModusToolBox的工具:BSP Assistant 1.10 修改 devices from CY8C624ABZI-S2D44 to CY8C624ALQI-S2D42
6. 使用 device configurator tool工具修改BSP的HW 映射
Diable all the ioss[0].port[x] in device configurator
Disable thw WCO(因为该开发板没有WCO晶振)
Disable the SWD: Trace Mode -Serial and disable the :Signal "clock" on "debug" must not have connections when hidden. (demo code 默认把Trace mode - Serial 功能放在P6.4上,而这款开发板的P6.4/P6.5是默认的debug UART口).
Disconnect the Clock on debug
Un-Select the CSD in Peripherals/System
Set the Pins refer to PSoC 62 with CAPSENSE evaluation kit's SCH & CYW43012 Adaptor's SCH
Clear the warning in device configurator's Notice list, unselect the LCD & Power BT.
保存Device configurator的配置
7. Replace the MURATA-1LV module's BT FW to AW-AM497:
Copy the attached COMPONENT_AW-AM497 into mtb_shared\btstack-integration\release-v4.x.x\COMPONENT_HCI-UART\firmware\COMPONENT_43012 or mtb_shared\btstack-integration\release-v4.x.x\COMPONENT_HCI-UART\firmware. The patch depend on the btstack version that your project used(build error code will give you such info or Library Manager tools have such info)
8. Build & Download. Notice: Please set the switch to 1.8v in PSoC62 WITH CAPSENSE EVALUATION KIT as CYW43012 use the 1.8v for Vddio.
9. Use the UART Terminal to check the log and Use the phone BLE tool like: AIROC™ Bluetooth® Connect App to search the Findme device and connect.
Notes: freertos: V10.6.290的库在该硬件下跑BLE工程有点问题,会开在工程初始化后,蓝牙后边没起来, UART log卡在:Bluetooth Stack Initialization Successful,后边没有其它的应用log输出。解决方法:Tools->Library Managemer-> Select the "freertos"-> Version select the 10.5.xxx-> update -> build and program.
10. 在ModusToolBox下开发Wi-Fi的例程,其步骤跟蓝牙类似,BSP的修改可以参考本贴中的截图;其中CYW43012的nv_ram 如附件。修改的nv_ram的步骤:
a. Change the BSP.mk in project's bsps from DEVICE_COMPONENTS:=43012 CAT1 CAT1A HCI-UART MURATA-1LV PSOC6_02 to
DEVICE_COMPONENTS:=43012 CAT1 CAT1A HCI-UART AW-AM497 PSOC6_02#MURATA-1LV PSOC6_02
b. Add folder: COMPONENT_AW-AM497(can copy and rename COMPONENT_MURATA-1LV) into mtb_shared\wifi-host-driver\release-v2.6.1\WiFi_Host_Driver\resources\nvram\COMPONENT_43012
c. Change the COMPONENT_AW-AM497's wifi_nvram_image.h file: replace the nvram data with Azureware's AM497's nvram(附件的nvram)
modustoolbox确实好用,另外想问下大佬们,怎么用modustoolbox导入rtthread?我尝试了英飞凌论坛上有个教程,用scons生成了eclipse项目导入,但是用modustoolbox编译会报time_t unknown type name和不认识bool类型,这报错一头雾水,newlib的头文件也都包含了