BLE Stack or Example for iMXRT1064 + IW612 using FreeRTOS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BLE Stack or Example for iMXRT1064 + IW612 using FreeRTOS

Jump to solution
1,428 Views
etronic_arg
Contributor III

Hi everyone,

I’m working on a custom board powered by the i.MX RT1064. The firmware is written in C and runs FreeRTOS with LwIP already integrated.

I’ve successfully tested the Wi-Fi HTTP server example from the MCUXpresso SDK using the MIMXRT1064-EVK and a IW612 module — It works.

Now I’d like to test BLE communication, but I haven’t found any sample code or a compatible BLE stack that works with the RT1064 and IW612 over UART/HCI.

Does anyone know if there’s an example or a lightweight BLE stack that can be integrated into a FreeRTOS project for BLE peripheral functionality?

Thanks in advance for any pointers!

 

0 Kudos
Reply
1 Solution
1,397 Views
Sam_Gao
NXP Employee
NXP Employee
0 Kudos
Reply
2 Replies
1,303 Views
etronic_arg
Contributor III

Hi,
I just wanted to add that I was able to get the peripheral HT example working on the MIMXRT1064 by following the guides:
Migrate examples from RT1060EVK to RT1064 
and UM11442.
I modified the peripheral HT sample from:
SDK_25_06_00_MIMXRT1060-EVKC\boards\evkcmimxrt1060\edgefast_bluetooth_examples\peripheral_ht\

But I had to use the file sduart_nw61x_v1.bin.se in nw61x_cpu12_se.c:

const uint8_t fw_cpu12[] = {
//#include <sduart_nw61x.bin.se.inc>
#include <sduart_nw61x_v1.bin.se.inc>
};

The binary file should be converted to hexadecimal strings with https://tomeko.net/online_tools/file_to_hex.php?lang=en
and add .inc extension.

I used the ublox EVK-MAYA-W271.

Enjoy!

0 Kudos
Reply
1,398 Views
Sam_Gao
NXP Employee
NXP Employee
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2136795%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBLE%20Stack%20or%20Example%20for%20iMXRT1064%20%2B%20IW612%20using%20FreeRTOS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136795%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20everyone%2C%3C%2FP%3E%3CP%3EI%E2%80%99m%20working%20on%20a%20custom%20board%20powered%20by%20the%20i.MX%20RT1064.%20The%20firmware%20is%20written%20in%20C%20and%20runs%20FreeRTOS%20with%20LwIP%20already%20integrated.%3C%2FP%3E%3CP%3EI%E2%80%99ve%20successfully%20tested%20the%20Wi-Fi%20HTTP%20server%20example%20from%20the%20MCUXpresso%20SDK%20using%20the%20MIMXRT1064-EVK%20and%20a%20IW612%20module%20%E2%80%94%20It%20works.%3C%2FP%3E%3CP%3ENow%20I%E2%80%99d%20like%20to%20test%20BLE%20communication%2C%20but%20I%20haven%E2%80%99t%20found%20any%20sample%20code%20or%20a%20compatible%20BLE%20stack%20that%20works%20with%20the%20RT1064%20and%20IW612%20over%20UART%2FHCI.%3C%2FP%3E%3CP%3EDoes%20anyone%20know%20if%20there%E2%80%99s%20an%20example%20or%20a%20lightweight%20BLE%20stack%20that%20can%20be%20integrated%20into%20a%20FreeRTOS%20project%20for%20BLE%20peripheral%20functionality%3F%3C%2FP%3E%3CP%3EThanks%20in%20advance%20for%20any%20pointers!%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2150313%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20BLE%20Stack%20or%20Example%20for%20iMXRT1064%20%2B%20IW612%20using%20FreeRTOS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2150313%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3EI%20just%20wanted%20to%20add%20that%20I%20was%20able%20to%20get%20the%20peripheral%20HT%20example%20working%20on%20the%20MIMXRT1064%20by%20following%20the%20guides%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fmcuxpresso.nxp.com%2Fmcuxsdk%2F25.09.00-pvw1%2Fhtml%2Fmiddleware%2Fedgefast_bluetooth%2Fdocs%2FEAEFBTPALERT1064UG%2Ftopics%2Fmigrate_examples_from_rt1060evk_to_rt1064.html%23%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EMigrate%20examples%20from%20RT1060EVK%20to%20RT1064%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3Eand%26nbsp%3BUM11442.%3CBR%20%2F%3EI%20modified%20the%20peripheral%20HT%20sample%20from%3A%3CBR%20%2F%3ESDK_25_06_00_MIMXRT1060-EVKC%5Cboards%5Cevkcmimxrt1060%5Cedgefast_bluetooth_examples%5Cperipheral_ht%5C%3C%2FP%3E%3CP%3EBut%20I%20had%20to%20use%20the%20file%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-firmware%2Fblob%2Flf-6.12.20_2.0.0%2Fnxp%2FFwImage_IW612_SD%2Fsduart_nw61x_v1.bin.se%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Esduart_nw61x_v1.bin.se%3C%2FA%3E%26nbsp%3Bin%20nw61x_cpu12_se.c%3A%3C%2FP%3E%3CPRE%3Econst%20uint8_t%20fw_cpu12%5B%5D%20%3D%20%7B%3CBR%20%2F%3E%2F%2F%23include%20%3CSDUART_NW61X.BIN.SE.INC%3E%3CBR%20%2F%3E%3CSPAN%3E%20%23include%20%3CSDUART_NW61X_V1.BIN.SE.INC%3E%3C%2FSDUART_NW61X_V1.BIN.SE.INC%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%7D%3B%3C%2FSDUART_NW61X.BIN.SE.INC%3E%3C%2FPRE%3E%3CP%3EThe%20binary%20file%20should%20be%20converted%20to%20hexadecimal%20strings%20with%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftomeko.net%2Fonline_tools%2Ffile_to_hex.php%3Flang%3Den%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftomeko.net%2Fonline_tools%2Ffile_to_hex.php%3Flang%3Den%3C%2FA%3E%3CBR%20%2F%3Eand%20add%20.inc%20extension.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20used%20the%20ublox%20EVK-MAYA-W271.%3C%2FP%3E%3CP%3EEnjoy!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2137118%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20BLE%20Stack%20or%20Example%20for%20iMXRT1064%20%2B%20IW612%20using%20FreeRTOS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2137118%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F172947%22%20target%3D%22_blank%22%3E%40etronic_arg%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20see%20the%20below%20AN%20for%20reference.%3C%2FP%3E%0A%3CP%3E%3CA%20id%3D%22relatedDocsClickHTML_6%22%20class%3D%22dtmcustomrulelink%22%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fwebapp%2FDownload%3FcolCode%3DUM11441%26amp%3BisHTMLorPDF%3DHTML%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%20data-dtmaction%3D%22Documentation%20Section%20-%20Results%20Link%20Click%22%20data-dtmsubaction%3D%22UM11441%3A%20Getting%20Started%20with%20NXP-based%20Wireless%20Modules%20on%20i.MX%20RT%20Platforms%20Running%20FreeRTOS%20-%20NXP%20-%20User%20Manual%20-%20English%22%20data-cl-id%3D%222682698206%22%3E%3CSPAN%3EUM11441%3A%20Getting%20Started%20with%20NXP-based%20Wireless%20Modules%20on%20i.MX%20RT%20Platforms%20Running%20FreeRTOS%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20class%3D%22code-id%22%3E%5BUM11441%5D%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22code-id%22%3Eas%20well%20as%20this%20guide%20(section%205%20Bluetooth%20Classic%2FLow%20Energy%20Applications).%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22code-id%22%3E%3CA%20href%3D%22https%3A%2F%2Fmcuxpresso.nxp.com%2Fmcuxsdk%2F24.12.00%2Fhtml%2F_static%2Fwireless%2FUM11442-NXP-Wi-Fi-and-Bluetooth-Demo-Applications-for-i.MX-RT-platforms-User-Guide.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmcuxpresso.nxp.com%2Fmcuxsdk%2F24.12.00%2Fhtml%2F_static%2Fwireless%2FUM11442-NXP-Wi-Fi-and-Bluetooth-Demo-Applications-for-i.MX-RT-platforms-User-Guide.pdf%3C%2FA%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E