Coding on Linux

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

Coding on Linux

1,425 Views
kakapipi
Contributor I

Hi, a couple of days ago a bought a FRDM-KL46Z, it was cheap (cheaper than an arduino), more powerful, arm, 32bit, has a lcd, leds, buttons, etc. Seemed like a good deal.

But that's were the good things end. Since day 0 I wasn't able to write a single line of code, nada.

So, if anyone knows how to code for it i would appreciate the help.

0 Kudos
4 Replies

946 Views
michaelball
Contributor III

I fully agree with Kan and Dave, Kinetis Design Studio with the SDK is an awesome development tool.    However.....  There is a very steep learning curve to it.  I do strongly suggest you take the time to learn it, but not now.

FRDM-KL46Z | mbed   The MBED development platform is an online code editor and embedded components library.  The Freescale Freedom boards, such as the FRDM-KL46Z are enabled out of the box to work with this development platform.

You can start by reading this --> FRDM-KL46Z | mbed

I won't say it's as easy as the Arduino IDE and associated libraries... but it is much richer in ability.  The support community behind it is great, and there are plenty of example that will have you up and running on that board FROM a linux workstation within minutes.

Get used to working with the ARM libraries, and understanding your freedom board and it's pinouts and embedded components capabilities.  Once you've become comfortable with MBED, then it's time to move up to the Design Studio to pull the real power out of your Freedom board.

0 Kudos

946 Views
daveboyle
Contributor III

I run KDS 2.0 on Ubuntu and I'm very happy. I used to have to run it as root but then I changed the permissions to all the files in /opt/Freescale/KDS_2.0.0/ to my own user and now it runs without any problems. It sure takes a while to get used to but now I can drop in components, configure them and run successful tests in no time. Oh, and I also have a 100mhz triple channel oscilloscope which is just invaluable. The printf function is extremely slow so I use breakpoints, the led's, the dac and test output pins viewed on the scope to get signals back to me. I wish I could use the Freemaster monitoring software but that's Windows only and there's no way I'm contaminating a good work station with that junk. I also use a lot of optoisolators to interface to my op amp circuits that have dual supplies, and a power invertor that wants to float my mcu up to 230volts when I connect my pwm signals to it. Good luck!

0 Kudos

946 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Kaka,

The KDS tool is free and supports Linux® (Ubuntu, Redhat, Centos), you may use it to code the project for Kinetis part, please kindly refer to Kinetis Design Studio Integrated Development |Freescale for details. There are also many examples and driver code provided by KSDK 1.1 which supports FRDM-KL46 as well, you may download them from http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS-SDK&nodeId=0152101E8C1EF7&fps....

Hope that helps,


Have a great day,
Kan

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

0 Kudos

946 Views
mjbcswitzerland
Specialist V

Hi

Is this a Linux issue?

See http://www.utasker.com/kinetis/FRDM-KL46Z.html

Basically you need GCC and an editor in case you can't get the other tools to work.

Regards

Mark

Kinetis: µTasker Kinetis support

KL46: µTasker FRDM-KL46Z support / µTasker Kinetis TWR-KL46Z48M support

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 Kudos