How to modify BLE stack for the KW41SOC using MCUxpresso ?

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

How to modify BLE stack for the KW41SOC using MCUxpresso ?

1,286 Views
joseph_reveane
Contributor III

Hi,

I'd like to add my own BLE service within the Rapid-IOT kit.

My understanding is that I need to be able to:

- get access to  the current  source code running within the KW41 SOC

- import this into MCUxpresso IDE

- define and implement my own BLE service within this project

- compile and download this new .bin file into the KW41 using the Dock station

I had a look into the Rapid-IOT SDK but I didn't find the project/source code of the current

software running into the KW41 SOC.

Where can I grab this project from ?

Thanks for you help.

Regards.

0 Kudos
2 Replies

1,108 Views
theophileleroy
NXP Employee
NXP Employee

Hello Joseph,

The current implementation of BLE stack on Rapid-IoT:

- KW41Z connectivity: Running a hybrid (BLE/Thread) application also known as "Blackbox" implementation.

- K64F main microprocessor: Interfaced via FSCI over UART with connectivity processor. It also implements some parts of the BLE stack in order to manage some BLE event/characteristic internally.

I recommend you have a look into the K64f application source code if you can't define your own services directly into it, maybe this will save you time and energy.

If you need more details on the FSCI Serial connectivity interface for BLE Host stack, it could be found in the SDK documentation folder: 

SDK_2.2_RapidIoT_MKW41Z4\docs\wireless\Bluetooth\BLE Host Stack FSCI Reference Manual.pdf

Moreover, in order to import the KW41Z application, please import from file system the project located under your MCUXpresso SDK path (see pictures below):

- Right-click in the Installed SDKs perspective

- Open Default Location

pastedImage_8.png

Then the source code is located under SDK_2.2_RapidIoT_MKW41Z4\boards\rpk_kw41z\rapid_iot_apps\rpk_kw41z_hybrid.

pastedImage_3.png

Make sure to untick "Copy projects into workspace" option.

1,108 Views
joseph_reveane
Contributor III

Hi Theophile,

Thanks a lot for your detailed answer, this does help a lot.

Such a complexity is small package, this is really amazing.

I will follow your advise and try to investigate the " K64F path" first by trying to add my own BLE service.

Just one more  question on a "related topic"  if you don't mind:

- there is an "UART" block in  Rapid-IoT  on-line IDE "palette" but I didn't find any example which could explain how

to use it. I'm simply wondering what this block would be used for ?

Thanks for your help.

Regards.

/joseph

0 Kudos