IoT on K70?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IoT on K70?

2,989件の閲覧回数
garylynch
Contributor IV

Is anyone aware of a project that implements a full IoT solution: client-to-server-to-client on a K70? Failing that, how about a stack that runs on a K70? The protocol should allow for encryption and/or authentication: MQTT, Thread, etc.

Advance thanks for your thoughts.

ラベル(1)
0 件の賞賛
返信
11 返答(返信)

2,689件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi  Gary Lynch

  K70 is a little old, so the new SDK didn't add it. 

  In fact, a lot of new Kinetis chip already add the IOT code, eg, AWS IOT with MQTT.

  K70 doesn't have the detail code, but I think you can refer to the FRDM-k64 board,  you can download the K64 SDK code from this link:

https://mcuxpresso.nxp.com/en/builder 

The Middleware select all:   pastedImage_1.png

especially, AWS IOT, freertos, LWIP.

  Then generate the code and download it.

  You can find the AWS IOT in the folder:

  SDK_2.7.0_FRDM-K64F\boards\frdmk64f\aws_examples

  The AWS code already contains the authentication.

   The direct MQTT with LWIP can be found in the folder:

SDK_2.7.0_FRDM-K64F\boards\frdmk64f\lwip_examples\lwip_mqtt

Please refer to it at first.

If you still have issues about it, please kindly let me know.

Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信

2,689件の閲覧回数
garylynch
Contributor IV

Thank you Kerry Zhou!

I downloaded and uncompressed the SDK_2.7.0_FRDM-K64F SDK, along with associated documentation. If I read the documentation correctly the SDK itself is a web app and the process you describe generates the whole project. (Other vendors require me to install the SDK first.)

The documentation says I can build this with IAR's Embedded Workbench (which I already own and know how to use).  But when I look in the indicated directory:
    <install_dir>/boards/frdmk64f/demo_apps/hello_world/iar/hello_world.eww

for the Hello world workspace, the *.eww file is missing.

Do I have to create it differently, or do I have to install MCUXpress?

Sorry I couldn't respond faster, but I am working from home and the decompression alone took about 5 hours.

0 件の賞賛
返信

2,689件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Gary Lynch,

    I check it on my side, the IAR project exist:

pastedImage_1.png

So, if you still have issues, I suggest the toolchain/IDE select all, then download the SDK again.

If you still have issues about it, please kindly let me know.

Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信

2,689件の閲覧回数
garylynch
Contributor IV


Thanks again, Kerry.

I downloaded and unzipped it again.  When I look in the location you show:
SDKDownload00.png

The IAR directory doesn't even exist. What am I missing here?

0 件の賞賛
返信

2,689件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Gary Lynch,

   That's strange, your SDK name is also not correct,it should be SDK_2.7.0_FRDM-K64 do you download it from the link which I recommend you?

https://mcuxpresso.nxp.com/en/select 

pastedImage_2.png

pastedImage_3.png

1.jpg

Please try it again.

If you still have questions about it, please kindly let me know.

Kerry

0 件の賞賛
返信

2,689件の閲覧回数
garylynch
Contributor IV


Ok, by clicking very carefully I retrieved a zip file with 11 MB, as shown in your graphic. When unzipped, I can load the hello_world.eww file into IAR.

Then I try and build it.  There are several ways to do this in IAR, I used:
  Project >> Rebuild All

This spits out 22 errors. I will attach a copy of the build log in case that will highlight the details.

On second thought, it doesn't look like I can add attachments here, so I will embed the first 30 lines instead:

Building configuration: hello_world - debug
Updating build tree...

6  file(s) deleted.
Updating build tree...
startup_MK64F12.s
Error[4]: Unexpected end of file encountered
Error while running Assembler
fsl_assert.c
Fatal Error[Pe1696]: cannot open source file "D:\Temp\K64_SDK\Expansion\devices\MK64F12\utilities\fsl_assert.c"
Error while running C/C++ Compiler
board.c
D:\Temp\K64_SDK\Expansion\boards\frdmk64f\demo_apps\hello_world\clock_config.h(16) : Fatal Error[Pe1696]: cannot open source file "fsl_common.h"
            searched: "D:\Temp\K64_SDK\Expansion\boards\frdmk64f\demo_apps\hello_world\"
            searched: "D:\Temp\K64_SDK\Expansion\boards\frdmk64f\demo_apps\hello_world\iar/..\"
            searched: "D:\Temp\K64_SDK\Expansion\boards\frdmk64f\demo_apps\hello_world\iar/../../..\"
            searched: "D:\Temp\K64_SDK\Expansion\boards\frdmk64f\demo_apps\hello_world\iar/../../../../../CMSIS/Include\"
            searched: "D:\Temp\K64_SDK\Expansion\boards\frdmk64f\demo_apps\hello_world\iar/../../../../../devices\"
            searched: "D:\Temp\K64_SDK\Expansion\boards\frdmk64f\demo_apps\hello_world\iar/../../../../../devices/MK64F12/drivers\"
            searched: "D:\Temp\K64_SDK\Expansion\boards\frdmk64f\demo_apps\hello_world\iar/../../../../../devices/MK64F12/utilities/str\"
            searched: "D:\Temp\K64_SDK\Expansion\boards\frdmk64f\demo_apps\hello_world\iar/../../../../../devices/MK64F12/utilities/debug_console\"
            searched: "D:\Temp\K64_SDK\Expansion\boards\frdmk64f\demo_apps\hello_world\iar/../../../../../devices/MK64F12\"
            searched: "D:\Temp\K64_SDK\Expansion\boards\frdmk64f\demo_apps\hello_world\iar/../../../../../components/uart\"
            searched: "D:\Temp\K64_SDK\Expansion\boards\frdmk64f\demo_apps\hello_world\iar/../../../../../components/serial_manager\"
            searched: "D:\Temp\K64_SDK\Expansion\boards\frdmk64f\demo_apps\hello_world\iar/../../../../../components/lists\"
            searched: "D:\Temp\K64_SDK\Expansion\boards\frdmk64f\demo_apps\hello_world\iar/../../../../../devices/MK64F12/utilities\"
            searched: "C:\Users\LYG1OWT\Documents\IAREmbeddedWorkbench\arm\inc\"
            searched: "C:\Users\LYG1OWT\Documents\IAREmbeddedWorkbench\arm\inc\c\"
Error while running C/C++ Compiler

...

Any idea what's going on?

Also, while I had it open I parsed the demo projects. I can't tell that any of them use MQTT. Is this an accurate assessment?

Thanks much.

0 件の賞賛
返信

2,689件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Gary Lynch,

  That's strange, please give me the same picture like me on your side.

  Welcome | MCUXpresso SDK Builder 

  Press the select develpment board button, the middleware select.

  What's the PC system you are using? windows 10?

  What's the IAR version you are using?

pastedImage_2.png

Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信

2,689件の閲覧回数
garylynch
Contributor IV

Ok, Kerry,

Here's how I followed your instructions:
 1. Follow link to https://mcuxpresso.nxp.com/en/welcome

 2. Click on [Select Development Board].

    This lands me on a page full of empty text boxes with headings:
    - Search by Name
    - Select a Board, Kit, or Processor
      · Boards
      · Kits
      · Processors
    - Name your SDK

 3. I select:
      Boards
        Kinetis
          FRDM-K64F (MK64FN10M0xxx12)    {I took this from the graphic in your post of Jun 3, 2020 1:24 AM}

 4. The page fills in "Name your SDK" with "SDK_2.7.0_FRDM-K64F"

 5. I click on [Build MCUXpresso SDK]

 6. This begets a page with "SDK Version" = "2.7.0 2019-12-19."

 7. In the "Toolchain / IDE" textbox I leave "All toolchains".
    In the "Host OS" textbox I leave "Windows"

 8. I click on [Select All]. All the checkboxes to the left get filled with checkmarks.

 9. I click on [Download SDK]. After some churning I am asked to accept a software T&C contract, to which I agree.

10. A dialog box pops up with SDK_2.7.0_FRDM-K64F (1).zip, which I open with 7-zip.

11. I unzip the package to K64_SDK2, being careful not to send anything through my wifi connection.

12. I open Windows explorer to the folder you requested:

MyIARSDK00.png
      I don't see much difference, except my files are almost 6 weeks older than yours.

Yes, I am running under Windows 10.

My Embedded Workbench is version 7.80.4.12495.

Hope this gets us closer to the truth.

0 件の賞賛
返信

2,689件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Gary Lynch

  I find your picture already contains the AWS, and the LWIP project, do you open it? Can you find the IAR project?

  Your generated code already contains the related IOT project, MQTT project.

  You also can refer to the doc, there has a get start document.

  If you still have questions about it, please kindly let me know!

Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信

2,689件の閲覧回数
garylynch
Contributor IV

Hello Kerry,

The link you provided leads to a page that doesn't resemble the graphic in your original post.  It was necessary for me to choose parameters, use the search engine, come up with my own data before I got an SDK.  I will try again and pay attention to the exact spelling.

0 件の賞賛
返信

2,689件の閲覧回数
mjbcswitzerland
Specialist V

Hi

See also
https://www.utasker.com/docs/uTasker/uTasker_MQTT.pdf
https://www.youtube.com/watch?v=-_CV2aXHyjw&feature=youtu.be

Works on all Kinetis or i.MX RT parts with Ethernet or USB (RNDIS) - builds with most IDEs. (KDS, MCUXpressor, IAR, Keil, Greenhills, CodeWarrior, Crossworks, etc)

Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]

0 件の賞賛
返信