element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Wireless
  • Technologies
  • More
Wireless
Blog The MAX32666FTHR and My Introduction to Bluetooth
  • Blog
  • Forum
  • Documents
  • Polls
  • Quiz
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Wireless to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: dang74
  • Date Created: 29 Oct 2022 4:45 PM Date Created
  • Views 13789 views
  • Likes 9 likes
  • Comments 13 comments
Related
Recommended

The MAX32666FTHR and My Introduction to Bluetooth

dang74
dang74
29 Oct 2022

Introduction

Learning about Bluetooth has been on my to do list for quite some time, but up until now I haven't been very good about setting the time aside to pursue this endeavor.

Recently I participated in the IO Link quiz and as luck would have it I was one of the fortunate ones selected to receive the MAX32666FTHR Application Platform.  Now with a Bluetooth development board in hand the motivation to finally dip my toes into the Bluetooth waters had arrived.

Thank you Maxim and Element14 for the generous gift and the opportunity it provides to explore a new technology.

Contents

The following items were received as part of the kit:

  • MAX32666FTHR Development Board
  • MAX3265PICO Development Board
  • 10-pin ribbon cable
  • 2x micro USB cables
  • metal case

The two development boards and ribbon cable fit nicely in the little tin case.

Having said that, please be careful not to pinch the cable when closing the case.

image

image

MAX32666FTHR

The MAX32666FTHR and its name sake MCU are the focal point of the kit.

Its key features are:

  • 2x 96MHz ARM Cortex-M4F processor cores
  • 1MB FLASH Memory
  • 560kB SRAM
  • Bluetooth 5 Low Energy Radio
  • USB 2.0
  • I2C/SPI/GPIO

image

MAX32625PICO:

The MAX32625PICO is a very capable development platform in its own right.  In fact its MCU also includes a 96MHz ARM Cortex-M4F processor core.

Even so its main duty here is to act as a programmer and debugger for the MAX32666FTHR board.

image

Hello World Example

The first thing I did was run the HelloWorld example.

Before elaborating further on this subject I would like to add a cautionary note first.  The MAX32666FTHR datasheet indicates that the board operates as a Bluetooth beacon out of the box, so before running the HelloWorld example you might want to pull out your cell phone and see if you can detect it first.  Unfortunately I missed this opportunity.

I used the following video to guide me through the HelloWorld example:

https://youtu.be/ebBKY9BgnM8

I found the Maxim SDK software referenced in the video by using the following Google search words:

maxim micros sdk

In my case I chose the first search result:

image

The video's presenter used a solderless bread board to mount the two dev boards.  Admittedly this makes for a pretty clean and organized set up.

image

For those of us that are accustomed to a little more chaos, do not fear, the example will still work fine when the boards are arranged haphazardly among discarded candy wrappers and peanut shells.

image

Upon successfully running the HelloWorld example you should see the following output in your terminal.

image

 

A Crash Course in Bluetooth

Prior to receiving the MAX32666FTHR development kit my forays into the world of Bluetooth were limited to pairing wii controllers and setting up my Roku remote.  As such I needed a quick crash course in the basics of Bluetooth.  Luckily Maxim produced a series of videos that provide an introduction to Bluetooth Low Energy.

Part 1   https://youtu.be/tcWrt5v5itM

Part 2   https://youtu.be/cbJgw1tkxVc

Part 3   https://youtu.be/ikt01g5yxvY

Part 4   https://youtu.be/kxl2WyzIIgw

Part 5   https://youtu.be/5PgSLtNoipo

My First Bluetooth Peripheral

At this point I wanted to go beyond HelloWorld and run an actual Bluetooth example.  Lucky for me the Maxim SDK includes a number of Bluetooth example designs.  I settled on the Bluetooth Periperal example.

The procedure for running this design is as follows:

Connect the MAX32666FTHR and MAX32625PICO with the ribbon cable and then connect both boards to a PC using their micro USB cables.

image

Open the Eclipse Maxim SDK and choose your work space.

Click File - New - Project

Select Maxim Microcontrollers and click Next

image

Enter your project's name.  I used BLE_Periph_Example as my project's name.

Ensure that the "use default location" option is checked and click Next

Select the options shown below.

(No your eyes aren't deceiving you, you are supposed to select MAX32665 as the Chip type)

Click Finish.

image

I am not sure if this is 100% necessary but at this point I opened the Makefile and changed the board from EvKit_V1 to FTHR_RevA.

image

Save the Makefile.

Right click the project and click Clean Project

Right click the project again and this time click Build Project

This could take a while, with my case requiring 3 minutes 21 seconds. 

image

After the build click the launch button

Once the program has been fully uploaded click the stop button and close the Eclipse SDK software all together.  This isn't a problem because the program is stored to nonvolatile memory in the MAX32666 microcontroller. 

Remove the USB cable that connects the MAX32666FTHR board to the PC (keep the other USB cable connecting the MAX32625PICO plugged in) 

Open a terminal program like PuTTY and set the baud rate to 115,200.

Now restore the USB connection to the MAX32666FTHR.

In no time at all the Bluetooth peripheral's start up sequence will be displayed to terminal.

image

Admittedly a lot of this information is techno babble which I am in no position to decipher but on the 6th line we see that reset is complete.

Finally the following is reported:

>>> Advertising started <<<

Advertising is something Bluetooth peripherals do prior to their connection to a host .

They are, in a sense, advertising their presence.

This is a good point to pull out your cell phone and take a glance at the Bluetooth devices in your local environment.

image

Oh wow, look at that, amongst the available devices we see something called Periph.

What happens if we try and pair Periph?

Well for one thing my phone tells me that an App is needed to use this device.

Oh well, but why don't we direct our attention to terminal again.

image

Once again most of the information reported is beyond me, but I see one interesting thing right off the bat.

>>> Connection opened <<<

This suggests to me that for one fleeting moment a connection was established between the MAX32666 and my cellphone.

Later on we see:

>>> Connection closed <<<

This isn't too surprising because my cell phone did report, after all, that an App is needed to use this device.

 

Where do we go from here?

Did I become a master of all things Bluetooth today?

Certainly not.  I recognize this as a baby step, but still it was satisfying to track the presence of the Bluetooth peripheral on my phone.

So where do we go from here?

Well first of all there are other Bluetooth examples included in the SDK to explore.  Even the peripheral example from today has nooks and crannies to uncover.  One application area I am interested in is to use Bluetooth to broadcast measurements.  I will see if there are any premade apps to receive and manage this sort of data on a cell phone.  Another area to explore is the possibility of making custom audio hardware that is connected by Bluetooth.  Maybe today's work is one small step in the journey towards reaching these goals.  Only time will tell.   

  • Sign in to reply
  • Sadde
    Sadde over 2 years ago

    I just read in a forum like this: Can I use MAX32665-32668 CPUs with Mbed OS?

    You can also discuss at https://forums.mbed.com/t/max32666fthr-target/14079 paper minecraft  

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dang74
    dang74 over 2 years ago in reply to misaz

    Thanks.  I'm definitely going to read your review because this kit included a MAX32625PICO as well.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • misaz
    misaz over 2 years ago in reply to dang74

    If you are intereste din more details about 650 family, you can read RoadTest reviews about EVKIT for these chips: Maxim MAX32650-EVKIT RoadTest.

    In case of lower families 620 you can use my review of 625 which is very similar to 620: Review of MAX32625 MCU and MAX32625PICO board. It includes thoughs about PICO board also.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dang74
    dang74 over 2 years ago in reply to misaz

    Wow, thanks for the overview.  The MAX32650/651 devices you mention sound pretty interesting.  It might be fun to do something with a TFT display.  And yes, I will have to take a look to see what other FTHR boards are available.  Over the years I used a bunch of Maxim parts, mainly serial ADCs and DACs.  This was my first time using a Maxim MCU though so your break-down is much appreciated.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • misaz
    misaz over 2 years ago in reply to shabaz

    Maxim has three Arm CM4 families in TQFP packages + some legacy or very application specific families. CM4 families with TQFP packages are:

    MAX32620/621: Entry level MCUs in Maxims offer but competitive with mid-range MCUs from other vendors. Has all standard peripherals. 621 has also crypto accelerator with supoport of asymetric crypto. It is one of the oldest Maxim's darwin ARM MCU I think. Documentation is in old format including very hard to read manual which looks more like commics instead of manual. SDK is not maintained anymore but from technical point of view it is still good microcontroller.

    MAX32630/631: Is better version of 32620. Doubled the memory. SDK also not maintained anymore. The same documentation as in case of 620/621.

    MAX32650/651: This is newer generation. It is supported by newer SDK which also suports Maxim's latest MCU. Documentation is in newer format which is much more readable. Many peripherals was reimplemented. Competes with high-end MCU and have many advanced peripherals including parallel TFT LCD display interface (but not 2D graphics accelerator), XIP from QSPI and some other proiprietary external SRAM and FLASH memories, better crypto accelerator with secure key storage and huge amount of RAM and FLASH memories.

    Currently SDK referes also some MCUs which are not released yet. But I gues none of them will be avalaible in TQFP package. Currently publicly unavalaible but in SDK refered are MAX32662 and MAX32690. I gues both will target some specific applications like it was in case of recently released MAX32680 (advanced 24-bit ADC with constant current generators and some other) and MAX32675 (for medical devices, also with advanced ADC).

    I recommend also looking at chips without solderable packages. Maxi moffers FTHR boards which exposes poins of MCU, adds some handy peripherals and usualy are pretty cheap. I like my MAX78000FTHR which contains one of the most advanced Maxim's MCU and it is nice board.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube