DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations

Trending

  • Demystifying SPF Record Limitations
  • Azure Virtual Machines
  • How To Use an Automatic Sequence Diagram Generator
  • Tech Hiring: Trends, Predictions, and Strategies for Success

Trending

  • Demystifying SPF Record Limitations
  • Azure Virtual Machines
  • How To Use an Automatic Sequence Diagram Generator
  • Tech Hiring: Trends, Predictions, and Strategies for Success
  1. DZone
  2. Coding
  3. Tools
  4. A New Freedom Board: FRDM-KL46Z

A New Freedom Board: FRDM-KL46Z

Erich Styger user avatar by
Erich Styger
·
Aug. 07, 13 · Interview
Like (0)
Save
Tweet
Share
6.42K Views

Join the DZone community and get the full member experience.

Join For Free

my opinion? the best freedom board so far, i love it!

highlights

the board has the same form factor as the frdm-kl25z . freescale lists a ‘budgetary price’ of $15 for the board. prices might depend on region and distributor (mouser, farnell , digikey), but it is in the same range as the frdm-kl25z.

:idea: while the freescale page links to mouser and digikey as distributors, it seems they do not have it in stock (yet?). so it might worthwile to ask your local distributor if you cannot wait ;-) .

frdm-kl46z components

frdm-kl46z components

features with differences to the frdm-kl25z marked in bold :

  • 48 mhz arm cortex-m0+
  • 32 kbyte sram
  • 256 kbyte flash
  • 2 user push buttons
  • capacitive touch slider
  • 4 digit 7-segment lcd
  • mma8451q accelerometer
  • mma3110 magnetometer
  • ambient light sensor
  • green and red user led
  • opensda onboard usb debug interface
  • ‘arduino compatible’ headers (unpopulated)

so many more components like buttons, lcd, magnetometer, ambient light sensor. instead of the rgb led on the earlier frdm boards, the frdm-kl46z has a green and red user led.

the biggest plus is the added ‘leg room’: twice as sram and flash compared to the frdm-kl25z :-) :-) .

ambient light sensor

the ambient light sensor is the same as on the frdm-k20d50m . the sensor can be disconnected with cutting the trace below the nearby j8 header:

frdm-kl46z ambient light sensor (source: frdm-kl46z schematics)

frdm-kl46z ambient light sensor (source: frdm-kl46z schematics)

magnetometer

the board has the freescale mag3110 magnetometer on it:

mag3110 magnetometer (source: frdm-kl46z schematics)

mag3110 magnetometer (source: frdm-kl46z schematics)

according to the schematics, there could be boards with an fxos8700cq which combines an accelerometer and a magnetometer in the same package.

:idea: i’m working on writing a driver for the mag3110 which will be available soon.

lcd

the kl46z microcontroller features a lcd interface, so the board has a small display (lumex lcd s401m16kr) added to show the functionality:

lcd on frdm-kl46z

lcd on frdm-kl46z

the lcd has 8 front planes and 4 back planes, able to display four 7-segment characters, 3 dots and one colon (:).

jumpers

the jumpers are very similar to the other freedom boards, and most come unpopulated:

  • j6: bypass of d4 diode (avoid voltage drop)
  • j7: configurable vregin
  • j8: isolation of ambient light sensor
  • j9: power isolation of the k20 (opensda)
  • j12: power isolation for vll3
  • j15: support for 5vdc (see this post )
  • j16: power for usb host mode
  • j17: power isolation and measurement for the kl46z

software and tools

the board has the msd opensda bootloader installed. so as with the previous freedom boards, it needs to be replaced with the opensda debug application (see this post on opensda ). freescale has the ‘kl46_sc’ (sample code package) and the ‘frdm-kl46z_qsp’ (quickstart package) available in their download section here . the board/microcontroller is supported in codewarrior for mcu10.4 out of the box in the new project wizard:

mkl46z256 in codewarrior for mcu10.4 new project wizard

mkl46z256 in codewarrior for mcu10.4 new project wizard

keil just released the µvision 4.72. i had not a chance to use the board with keil or iar yet, but i do not see a problem why it would not be supported. and with little changes to the linker file it works as well with a stock eclipse version (see this series of tutorials ).

freertos on the frdm-kl25z

as first project, i have freertos v7.5.0 running on the board:

freertos on frdm-kl46z

freertos on frdm-kl46z

nothing spectacular: the rtos with tasks blinking led’s :-) the project is available on github here . additionally i’m working on a more complex project to use the components on the board.

summary

with twice as ram and flash compared to the frdm-kl25z, the frdm-kl46z is definitely a better board than the frdm-kl25z in my view, especially for the same amount of money. i will check if i could use the mag3110 on the board for my zumo project, as it would help making relative turns. with the extra sram, i’m able now to collect much longer percepio freertos+trace data , which is incredible helpful.

i’m working on a driver for the mag3110 which i should be able to release soon on github . until then, i work on a board support package to use all (or most) functions on the board. i have not tried to the kl46z usb yet, so this will be something to look into soon too.

while the frdm-kl46z is my favorite freedom board for now, my wish list for a next board is

  • arm cortex m4 >100 mhz
  • plenty of on-chip sram and flash (i would be very happy with >=64 kbyte sram and >=256 kbyte flash)
  • usb device and host
  • wifi?
  • micro-sd card socket
  • at a price around us$30?

then the ‘freedom’ might take over the world ;-) . what i dream of is something below the raspberry pi, but for hardcore realtime with no need for linux, as i have linux running on the raspy :-) .

happy boarding :-)

Ambient (desktop environment) Light (web browser) LEd Isolation (database systems) Host (Unix) FreeRTOS GitHub Interface (computing) POST (HTTP) Linux (operating system)

Published at DZone with permission of Erich Styger, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Trending

  • Demystifying SPF Record Limitations
  • Azure Virtual Machines
  • How To Use an Automatic Sequence Diagram Generator
  • Tech Hiring: Trends, Predictions, and Strategies for Success

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: