<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Kinetis MicrocontrollersのトピックProgramming an MK60FN1M0VLQ12 with IAR Workbench and an IAR I-jet</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Programming-an-MK60FN1M0VLQ12-with-IAR-Workbench-and-an-IAR-I/m-p/198568#M2798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first time posting on here so please be gentle with me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom PCB containing an MK60FN1M0VLQ12 Kinetis processor. I've written some test code using IAR Embedded Workbench and I'm attempting to download the executable to the chip via an IAR I-jet JTAG debug probe. Unfortunately, I'm having no success whatsoever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attempted to contact IAR Systems for help with this but after about 4 phone calls, I'm still waiting for someone to get back to me so I thought that in the mean time, I'd try on here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within IAR Workbench, when I click the "download and debug" button, an error message appears saying "Flash loader: Failed to setup call to 'FlashInit'". Now, I'm kinda guessing that maybe the flash loader that I've selected is wrong for the device however I don't believe that it is. After this error message appears, nothing further happens - no code is downloaded to the device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have opened up the Quick Start Demo code for the K60 Tower system and I've re-compiled and programmed that into the K60 Tower system using IAR and the I-jet and this works without any issues. The custom PCB is set up to use an external 8MHz crystal connected to XTAL0 and EXTAL0 and I'm 100% certain that there are no issues with the way that the JTAG signals are routed to the chip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone had any experience with this? Has anyone successfully contacted IAR Systems and received useful help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I've not included enough detail in this, I can provide more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. For reference, within IAR I've selected the device as "Freescale MK60FN1M0xxx12" and I've picked the "MK60FN1M0xxx12.ddf" device description file plus I've also selected the "FlashK60Fxxx128K.board" file as the flash downloader.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Sep 2012 11:37:37 GMT</pubDate>
    <dc:creator>weblar</dc:creator>
    <dc:date>2012-09-21T11:37:37Z</dc:date>
    <item>
      <title>Programming an MK60FN1M0VLQ12 with IAR Workbench and an IAR I-jet</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Programming-an-MK60FN1M0VLQ12-with-IAR-Workbench-and-an-IAR-I/m-p/198568#M2798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first time posting on here so please be gentle with me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom PCB containing an MK60FN1M0VLQ12 Kinetis processor. I've written some test code using IAR Embedded Workbench and I'm attempting to download the executable to the chip via an IAR I-jet JTAG debug probe. Unfortunately, I'm having no success whatsoever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attempted to contact IAR Systems for help with this but after about 4 phone calls, I'm still waiting for someone to get back to me so I thought that in the mean time, I'd try on here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within IAR Workbench, when I click the "download and debug" button, an error message appears saying "Flash loader: Failed to setup call to 'FlashInit'". Now, I'm kinda guessing that maybe the flash loader that I've selected is wrong for the device however I don't believe that it is. After this error message appears, nothing further happens - no code is downloaded to the device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have opened up the Quick Start Demo code for the K60 Tower system and I've re-compiled and programmed that into the K60 Tower system using IAR and the I-jet and this works without any issues. The custom PCB is set up to use an external 8MHz crystal connected to XTAL0 and EXTAL0 and I'm 100% certain that there are no issues with the way that the JTAG signals are routed to the chip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone had any experience with this? Has anyone successfully contacted IAR Systems and received useful help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I've not included enough detail in this, I can provide more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. For reference, within IAR I've selected the device as "Freescale MK60FN1M0xxx12" and I've picked the "MK60FN1M0xxx12.ddf" device description file plus I've also selected the "FlashK60Fxxx128K.board" file as the flash downloader.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 11:37:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Programming-an-MK60FN1M0VLQ12-with-IAR-Workbench-and-an-IAR-I/m-p/198568#M2798</guid>
      <dc:creator>weblar</dc:creator>
      <dc:date>2012-09-21T11:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Programming an MK60FN1M0VLQ12 with IAR Workbench and an IAR I-jet</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Programming-an-MK60FN1M0VLQ12-with-IAR-Workbench-and-an-IAR-I/m-p/198569#M2799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems I am in a similar boat as you. I just got our new board based on the K60DX256VMD10. I can load my code to a K61FX512VMD12 using either the PEMicro USB Multilink or the IAR iJet, but when I try to load code to my new target, I get Flash Loader error. Gee.... that was informative. I used a logic analyzer to prove to myself that the JTAG interface was communicating with the K60. My reset_b line looks exactly like yours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you verified your linker file setup? If you flash loader has the wrong settings, out of range flash space for instance, then the loader will fail. I have already verified that with my linker file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************************************************************************************************************&lt;/P&gt;&lt;P&gt;/* Linker File for K60DX100VMD10 */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*###ICF### Section handled by ICF editor, don't touch! ****/&lt;/P&gt;&lt;P&gt;/*-Editor annotation file-*/&lt;/P&gt;&lt;P&gt;/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */&lt;/P&gt;&lt;P&gt;/*-Specials-*/&lt;/P&gt;&lt;P&gt;define symbol __ICFEDIT_intvec_start__&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x00000000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*-Memory Regions-*/&lt;/P&gt;&lt;P&gt;/* 256KB Flash */&lt;/P&gt;&lt;P&gt;define symbol __ICFEDIT_region_ROM_start__&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x00000000;&lt;/P&gt;&lt;P&gt;define symbol __ICFEDIT_region_ROM_end__&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x0003FFFF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* 64KB SRAM */&lt;/P&gt;&lt;P&gt;define symbol __ICFEDIT_region_RAM_start__&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x1FFF8000;&lt;/P&gt;&lt;P&gt;define symbol __ICFEDIT_region_RAM_end__&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x20007FF0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Sizes */&lt;/P&gt;&lt;P&gt;define symbol __ICFEDIT_size_cstack__&amp;nbsp;&amp;nbsp; = 0x00;&lt;/P&gt;&lt;P&gt;define symbol __ICFEDIT_size_heap__&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0;&lt;/P&gt;&lt;P&gt;/**** End of ICF editor section. ###ICF###*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define exported symbol __EXTERNAL_MRAM_ROM_BASE = 0x70000000;&lt;/P&gt;&lt;P&gt;define exported symbol __EXTERNAL_MRAM_ROM_SIZE = 0x00000000;&lt;/P&gt;&lt;P&gt;define exported symbol __EXTERNAL_MRAM_RAM_BASE = 0x70000000;&lt;/P&gt;&lt;P&gt;define exported symbol __EXTERNAL_MRAM_RAM_SIZE = 0x00080000;&lt;/P&gt;&lt;P&gt;define exported symbol __EXTERNAL_LCD_BASE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x60000000;&lt;/P&gt;&lt;P&gt;define exported symbol __EXTERNAL_LCD_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x0001FFFF;&lt;/P&gt;&lt;P&gt;define exported symbol __EXTERNAL_LCD_DC_BASE&amp;nbsp;&amp;nbsp; = 0x60010000;&lt;/P&gt;&lt;P&gt;define exported symbol __INTERNAL_FLASH_BASE&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x00000000;&lt;/P&gt;&lt;P&gt;define exported symbol __INTERNAL_FLASH_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x00040000;&lt;/P&gt;&lt;P&gt;define exported symbol __INTERNAL_SRAM_BASE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x1FFF8000;&lt;/P&gt;&lt;P&gt;define exported symbol __INTERNAL_SRAM_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x00010000;&lt;/P&gt;&lt;P&gt;define exported symbol __UNCACHED_DATA_START&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x1FFF8000;&lt;/P&gt;&lt;P&gt;define exported symbol __UNCACHED_DATA_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x00010000;&lt;/P&gt;&lt;P&gt;define exported symbol __UNCACHED_DATA_END&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x20007FF0;&lt;/P&gt;&lt;P&gt;define exported symbol __SRAM_POOL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x1FFF8000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* 256KB FlexNVM */&lt;/P&gt;&lt;P&gt;define exported symbol __INTERNAL_FLEXNVM_BASE&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x10000000;&lt;/P&gt;&lt;P&gt;define exported symbol __INTERNAL_FLEXNVM_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x00040000;&lt;/P&gt;&lt;P&gt;/* 4KB FlexRAM */&lt;/P&gt;&lt;P&gt;define exported symbol __INTERNAL_FLEXRAM_BASE&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x14000000;&lt;/P&gt;&lt;P&gt;define exported symbol __INTERNAL_FLEXRAM_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x00001000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define exported symbol __VECTOR_TABLE_ROM_START = 0x00000000;&lt;/P&gt;&lt;P&gt;define exported symbol __VECTOR_TABLE_RAM_START = __ICFEDIT_region_RAM_start__;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define exported symbol __DEFAULT_PROCESSOR_NUMBER = 1;&lt;/P&gt;&lt;P&gt;define exported symbol __DEFAULT_INTERRUPT_STACK_SIZE = 1024;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* mem_init writes a storeblock_struct at the end of kernel data, max size 32 bytes, so use 0x100 offset */&lt;/P&gt;&lt;P&gt;define exported symbol __BOOT_STACK_ADDRESS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = __ICFEDIT_region_RAM_end__ - 0x100;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define exported symbol __KERNEL_AREA_START&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = __ICFEDIT_region_RAM_start__;&lt;/P&gt;&lt;P&gt;define exported symbol __KERNEL_AREA_END&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x20007FF0;&lt;/P&gt;&lt;P&gt;define exported symbol __USER_AREA_START&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x20008000;&lt;/P&gt;&lt;P&gt;define exported symbol __USER_AREA_END&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = __ICFEDIT_region_RAM_end__;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define exported symbol __KERNEL_DATA_END&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = __ICFEDIT_region_RAM_end__;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define memory mem with size = 4G;&lt;/P&gt;&lt;P&gt;define region ROM_region&amp;nbsp;&amp;nbsp; = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];&lt;/P&gt;&lt;P&gt;define region RAM_region&amp;nbsp;&amp;nbsp; = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define block KERNEL_DATA with alignment = 8 { section .kernel_data };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define exported symbol __FLASHX_SECT_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x800;&lt;/P&gt;&lt;P&gt;define exported symbol __FLASHX_END_ADDR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = __INTERNAL_FLASH_BASE + __INTERNAL_FLASH_SIZE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define block CFMPROTROM with size = 20 { section .cfmconfig };&lt;/P&gt;&lt;P&gt;define block FLASHX_POOL with alignment = __FLASHX_SECT_SIZE { section .flashx };&lt;/P&gt;&lt;P&gt;define block TEXTSECTION with alignment = 4 { section .text };&lt;/P&gt;&lt;P&gt;keep { section .cfmconfig };&lt;/P&gt;&lt;P&gt;keep { section .flashx };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialize by copy { readwrite };&lt;/P&gt;&lt;P&gt;do not initialize&amp;nbsp; { section .noinit };&lt;/P&gt;&lt;P&gt;do not initialize&amp;nbsp; { section .kernel_data };&lt;/P&gt;&lt;P&gt;do not initialize&amp;nbsp; { section .flashx };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec, block CFMPROTROM };&lt;/P&gt;&lt;P&gt;place in ROM_region { first block TEXTSECTION, readonly,&amp;nbsp; last block FLASHX_POOL };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;place at address mem:__ICFEDIT_region_RAM_start__ { readwrite section .vectors_ram };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* each block/segment must be in one line (association to region) because I need kernel data start after other datas */&lt;/P&gt;&lt;P&gt;place in RAM_region&amp;nbsp;&amp;nbsp; { readwrite, last block KERNEL_DATA };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Dec 2012 21:29:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Programming-an-MK60FN1M0VLQ12-with-IAR-Workbench-and-an-IAR-I/m-p/198569#M2799</guid>
      <dc:creator>Jeronimo479</dc:creator>
      <dc:date>2012-12-16T21:29:48Z</dc:date>
    </item>
  </channel>
</rss>

