打印
[PSoC™]

Make a BLE Findme demo in ModusToolBox with Infineon "PSoC62 WITH CAPSENSE EVALUATION KIT"

[复制链接]
1099|10
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
#申请原创# 这个帖子用于告诉大家如何基于ModusToolBox 开发PSoC62 WITH CAPSENSE EVALUATION KIT + CYW43012 adaptor

1. 下载安装IDE ModusToolBox from infineon web: https://www.infineon.com/cms/en/design-support/tools/sdk/modustoolbox-software/

2. 开发板: "PSoC 62 with CAPSENSE evaluation kit" 是infineon & RT-Thread联合推出的开发板,用于广大PSoC6兴趣爱好者学习与开发,其原理图可以在如下的链接获得:  https://github.com/RT-Thread-Studio/sdk-bsp-cy8c624-infineon-evaluationkit/blob/main/documents/IFX-PSoC6-RT-Thread-sch.pdf


3. 开发板的配件 CYW43012 adaptor是基于AW-AM497模块的Wi-Fi & BT 开发板,其原理图如附件。

4. 这里我我们用ModusToolBox 3.1版本来开发,我们先在IDE里拉一个官方的例程:File-> New -> ModusToolBox application: PSoC6 BSPs: CY8CKIT-062S2-43012->BlueTooth LE Findme


Tips, 如果国内用户遇到在ModusToolBox下拉取不了示例代码的情况,可以使用ModusToolBox3.1的LCS(Local Content Storage)功能,参考如下的KBA:https://community.infineon.com/t5/Knowledge-Base-Articles/ModusToolbox-software-Offline-development-package-KBA236233/ta-p/373370
或者通过offline等方法;


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:
  • modify in Bluetooth_LE_Findme/bsps/TARGET_APP_CY8CKIT-062S2-43012/bsp.mk                                                                             DEVICE_COMPONENTS:=43012 CAT1 CAT1A HCI-UART AW-AM497 PSoC6_02 #MURATA-1LV PSOC6_02
  • Copy the attached COMPONENT_AW-AM497 into mtb_shared\btstack-integration\release-v4.3.1\COMPONENT_HCI-UART\firmware\COMPONENT_43012 or mtb_shared\btstack-integration\release-v4.6.0\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.


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)

6800865b0a22273d80.png (459.97 KB )

6800865b0a22273d80.png

8403265b0a82eeb479.png (206.58 KB )

8403265b0a82eeb479.png

5136665b0a852ae869.png (195.15 KB )

5136665b0a852ae869.png

1010565b0a9adaf644.png (1.67 KB )

1010565b0a9adaf644.png

wifi_nvram_image.zip

1.99 KB

COMPONENT_AW-AM497.zip

2.17 KB

IFX_Arduino_WiFi_extend_v2.pdf

429.4 KB

使用特权

评论回复
沙发
IFX-HarrisChan| | 2024-1-26 10:53 | 只看该作者
Hi Jenson,

AWESOME post----Would u like to post on our Infineon Developer Community (https://community.infineon.com/) as well?

Harris

使用特权

评论回复
板凳
LOVEEVER| | 2024-1-28 13:20 | 只看该作者
英飞凌的芯片封装明显非常棒!后期有机会试一下

使用特权

评论回复
地板
星辰大海不退缩| | 2024-1-28 15:26 | 只看该作者
讲解的很详细,收藏学习

使用特权

评论回复
5
小夏天的大西瓜| | 2024-1-28 15:54 | 只看该作者
基于ModusToolBox 开发PSoC62难度系数怎样?

使用特权

评论回复
评论
IFXJenson 2024-1-29 10:00 回复TA
熟悉了 ModusToolBox后,很简单 
6
IFXJenson|  楼主 | 2024-1-29 10:00 | 只看该作者
IFX-HarrisChan 发表于 2024-1-26 10:53
Hi Jenson,

AWESOME post----Would u like to post on our Infineon Developer Community (https://commun ...

Sure & Will be.

使用特权

评论回复
7
jf101| | 2024-1-29 23:01 | 只看该作者
基于ModusToolBox 开发PSoC62图形化界面简洁

使用特权

评论回复
8
alexfanqi| | 2024-3-13 17:25 | 只看该作者
modustoolbox确实好用,另外想问下大佬们,怎么用modustoolbox导入rtthread?我尝试了英飞凌论坛上有个教程,用scons生成了eclipse项目导入,但是用modustoolbox编译会报time_t unknown type name和不认识bool类型,这报错一头雾水,newlib的头文件也都包含了

使用特权

评论回复
9
LOVEEVER| | 2024-3-27 17:50 | 只看该作者
很实用的ModusToolBox 开发教程

使用特权

评论回复
10
IFXJenson|  楼主 | 2024-3-28 10:49 | 只看该作者
alexfanqi 发表于 2024-3-13 17:25
modustoolbox确实好用,另外想问下大佬们,怎么用modustoolbox导入rtthread?我尝试了英飞凌论坛上有个教程 ...

如果需要用到rtthread的操作系统,建议在RT-Thread Studio中开发,其IDE也包含了帖子板子的BSP以及infineon常用的PSoC6 + Wi-Fi & BT/BLE的开发板

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

2

主题

15

帖子

0

粉丝