Using IAR with the MK20DX256

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

Using IAR with the MK20DX256

1,199 Views
bobolver
Contributor I

  Hi All.  I am a long time user of Atmel processors and the IAR Embedded Workbench.   I would like to migrate to the Freescale MK20DX256 processor, but from past experience I am concerned about the problems I will run into setting up the IAR for the MK20DX256.  I already discovered I need another Jlink cable for the Cortex JTAG connector on the TWR-K20D72M module.  Does anyone have any suggestions or ideas about the problems I am going to run into using the IAR development system with the MK20DX256 module? Any literature that might help with this transition? 

Thanks,

Bob

Labels (1)
0 Kudos
4 Replies

726 Views
mjbcswitzerland
Specialist V

Hi Bob

IAR workbench is one of the easiest tools to use with the Kinetis so there is nothing to worry about as long as you have the correct header for connection on the board (valid for any IDE or debugger). You can also use the OSJAG built into the TWR-K20D72M until you have a suitable adapter for your JLink.

As an IAR AVR user you will need to purchase an IAR ARM version since they are different SW tools. You can also use a variety of free tools (such as CW and KDS from Feescale) which also work quite well.

To avoid any potential issues you can aso get a complete K20 IAR project solution at the links below, which will allow you to also simulate the K20 in (approx.) real-time to optimise development, testing and debugging with greatly reduced need to work with the HW debugger.

Regards

Mark

Kinetis: http://www.utasker.com/kinetis.html

K20: http://www.utasker.com/kinetis/TWR-K20D72M.html / http://www.utasker.com/kinetis/FRDM-K20D50M.html / http://www.utasker.com/kinetis/TWR-K20D50M.html / http://www.utasker.com/kinetis/TEENSY_3.1.html

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

:smileyinfo: Out-of-the-box support for 46 Kinetis boards and 10 IDEs (460 combinations from a single code source with no porting required)

0 Kudos

727 Views
bobolver
Contributor I

Hi Mark,

Thanks for the quick response. Your comments are very encouraging and helpful. Actually the Atmel processors we were using are all ARM so our IAR development system already supports ARM and the K20 processor.

Even though I have used the IAR development system I have only changed processors a couple of times. I was able to compile the Hello World program with only a few errors. At the start I get an unknown tool IJET_ID error, which does seem to effect much. But when I compile the program I get two errors from Startup, no definition for VECTORRAM and VECTOR_TABLE and one from Vector, no BOOTSTACK_ADDRESS. I believe these addresses all come from the linker file, but not sure how to make that happen. Do you know what I need to do to get these addresses loaded?

Thanks again for your help.

Bob

0 Kudos

727 Views
mjbcswitzerland
Specialist V

Hi Bob

My mistake - I mis-read AVR instead of Atmel (since I tend to associate Atmel more with the AVRs...)

The missing addresses may be supplied by a linker script or a define but it depends on which project your are building.

At http://www.utasker.com/forum/index.php?topic=1721.msg6697#msg6697 you can download complete code to build an IAR K20 project without any complications.

http://www.utasker.com/docs/KINETIS/uTaskerV1.4_Kinetis_demo.pdf gives you some tips to starting with the Kinetis and IAR.

Regards

Mark

0 Kudos

727 Views
bobolver
Contributor I

Thanks Mark, I will take a look at this.

Bob

0 Kudos