Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training


KINETIS K60N512 - IAR Doesn´t run from Flash

Posted by rzubillaga on November 11, 2011
Hi every body,

i have downloaded and compiled succesfully the project contained in "FreeRTOSv7.0.2" called "CORTEX_Kinetis_K60_Tower_IAR" -> Blinky.

In this case i´m not able to run it from flash directly, i have to be conected to IAR and Debugging.

I have downloaded, compiled and verified this with the Examples provieded in Freescale web "KINETIS512_SC". The configuration provided with this examples works perfectly from Flash without been conected to IAR_IDE. As it should be.

Then, i have checked al the project option from one (freertos_uip) to the other (Blinky), and just in case i have copied the "ICF" file too, but i don´t know why, but it doesn´t work.

IAR Versión - 6.30 (i have experienced problems with 6.21 and PEmicro Flash downloader)
Debugger/programmer -> The oine integrated in K60N512 board -> PEmicro OSDebug.

Does any body know smthg around this???


RE: KINETIS K60N512 - IAR Doesn´t run from Flash

Posted by Richard on November 14, 2011
Are you saying it runs from RAM, but not Flash?

If so, look at how your interrupt vectors are mapped, and how they are configured in the start up code. Also read back the flash image to ensure it is correct, and programmed into the correct locations. Look at the asm code generated and ensure it is calling functions in flash, and not RAM, in case your linker script is wrong.


RE: KINETIS K60N512 - IAR Doesn´t run from Flash

Posted by rzubillaga on November 16, 2011
Hi richard,

as i posted above, the project used is the original one. It runs from RAM and from FLASH, but from Flash only while IDE is connected ....

At the momement i cant not check all this things that you suggest. I will try to do it ASAP.

Any way, as the PRJ is the original one, i think that it shouldn´t be only a problem for me, but for the rest of the users too...


RE: KINETIS K60N512 - IAR Doesn´t run from Flash

Posted by Ander on December 2, 2011
Hello everybody:

I have the same problem that rzubillaga has.
I download both demos, blinky and full without any changes and I if the debugger is conected they work fine, but if I disconect the debugger, the demo doesn´t start.

I have tried using the icf of the freertos demo in another example and that example starts from flash correctly without the debugger. so what could I do?

When downloading the full demo I read the following message that is suspicious:

"Skipping flash loading pass because there is no data in the designated range: 0x10000000-0x13FFFFFF. "


RE: KINETIS K60N512 - IAR Doesn´t run from Flash

Posted by Richard on December 8, 2011
Search the source files for every instance of printf(), remove them all (and there are a lot in the Freescale provided start up files - which is a really weird thing to do), and it will work.

Alternatively, redirect printf() somewhere else, like a UART.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.

Free TCP/IP and file system demos for the RTOS

Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists