# IAR FreeRTOS ARM Cortex A9 project blocks

**URL:** <https://forums.freertos.org/t/iar-freertos-arm-cortex-a9-project-blocks/7060>\
**Category:** Kernel\
**Created:** [March 15, 2018, 10:14am UTC](https://forums.freertos.org/t/iar-freertos-arm-cortex-a9-project-blocks/7060 "2018-03-15T10:14:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 15, 2018, 10:14am UTC](https://forums.freertos.org/t/iar-freertos-arm-cortex-a9-project-blocks/7060/1 "2018-03-15T10:14:10Z")

</div>

**[sorinl](https://sourceforge.net/u/sorinl/)** wrote on [Thursday, March 15, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/ad7d2d71/#c5b2):

Hello,

I have a blinking\_led IAR FreeRTOS project for an ARM Cortex A9 card. The project is based on the  
CORTEX\_A9\_Cyclone\_V\_SoC\_DK FreeRTOS example for DS-5 (built with GCC Toolchain) that works,  
that I addapted for IAR.

I 'm stepping with the IAR debugger and some points in the flow are :

prv\_TimerTask (in timers.c) -\> vTaskStartScheduler (in blink.c application file) -\>xPortStartScheduler  
(in port.c for ARM A9) -\> vPortRestoreTaskContext (in portASM.s).

From here it goes (in the disassebler) to :

\_\_vector:  
0x1: DC8 240  
0x2: DC16 58703  
0x4: LDR PC, [PC, #0x08]  
0x8: LDR PC, [CPC, #0x08]  
0xc: LDR PC, [CPC, #0x08]  
0x10: LDR PC, [CPC, #0x08]

and then in :

Abort\_Handler :  
FiQ\_Handler :  
Prefetch\_Handler :  
SWI\_Handler : symbols not displayed  
0x1058db : B Abort\_Handler

Here it blocks in the infinite loop (B = Branch instruction to itself.)

I have addapted the assembly language instructions and the definition for the start vector for IAR that are different than in DS-5.  
I could not find any ready to run example project for IAR, FreeRTOS and ARM Cortex A9 processor.

Please advise.  
Thank you in advance.

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [March 15, 2018, 1:32pm UTC](https://forums.freertos.org/t/iar-freertos-arm-cortex-a9-project-blocks/7060/2 "2018-03-15T13:32:29Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Thursday, March 15, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/ad7d2d71/#c5b2/75e5):

None of the vectors in your post show an infinite loop, unless the  
functions they jump to are infinite loops.

Is SWI\_Handler actually defined, and not just left at its default?  
Normally a default is implemented as an infinite loop with the  
expectation you define it yourself.

Are you sure you are using the vector table definition that you think  
you are? Can you set a break point on the vector table entry you think  
you are executing?
