title: problems while importing freeRTOS to AT32UC3A0512
body: <p>i am attempting to integrate freeRTOS to my application that run on AT32UC3A0512.
  I downloaded a freeRTOS project example for <a href="http://www.atmel.com/tools/EVK1100.aspx" rel="nofollow">EVK1100</a> (it Supports the AT32UC3A) and try to include the kernel source file
  so my application hierarchy looks like :</p>
  
  <pre><code>src
     |ASF
     |APP_FOLDER
     |freertos 
         |freertos-7.0.0
  </code></pre>
  
  <p>this hierarchy is different than the the hierarchy provided in the freeRTOS project example which looks like </p>
  
  <pre><code>  src
     |ASF
         |thirdparty
            |freertos 
                |freertos-7.0.0   /********** freertos-7.0.0 is under ASF***********/
  </code></pre>
  
  <p>1 - This has caused compilation problems(path of some file not recognized) that i have solved, and i don't think that it can lead to other issues. what do you think?</p>
  
  <p>now it seems also that i have problems with <code>exception.s</code></p>
  
  <pre><code>  /*my actual appli hierarchy*/
    src
     |ASF
        |AVR32
           |intc
                |exception.s
     |APP_FOLDER
     |freertos 
         |freertos-7.0.0
            |source
                |portable
                    |gcc
                        |avr32_uc3
                            |exception.S
  </code></pre>
  
  <p>As you see the file is redefined,i came to <a href="http://www.avrfreaks.net/forum/solved-multiple-definition-evba-compile-error" rel="nofollow">this solution</a> that consist in removing <code>exception.s</code> under <code>intc</code> folder, now the project compiles but there is calls to <code>twi_master_read</code> in my application that cause blocking, i haven't changed anything in my application(which use to work normally) i didn't call any freeRTOS api function yet, </p>
  
  <p>2- could you please help me undrestand the the purpose of <code>exception.s</code>, and what leaded to this unexpected behaviour ? </p>
  
  <p>3- Could this problem come from the non respect of the hierarchy ?</p>
  
  <p>Don't hesitate to comment on my choices or suggest better practices on importing freeRTOS kernel ?</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I removed exception.s from <code>freertos-7.0.0/source/portable/gcc/avr32_uc3/exception.S</code> and keep the exception.s file of my starting application, Now using the application hierarchy mentioned above if i exclude freertos directory from the project all works well, if i include the freertos directory <code>twi_master_read</code> causes problems, There is any pins redefinitions in the kernel files and i didn't call/include freeRTOS API at all so how the behaviour changes this way ?</p>