# Moving from XmegaAD256D3 to ARM Cortex D3 processor

**URL:** <https://forums.freertos.org/t/moving-from-xmegaad256d3-to-arm-cortex-d3-processor/7123>\
**Category:** Kernel\
**Created:** [April 10, 2018, 9:10pm UTC](https://forums.freertos.org/t/moving-from-xmegaad256d3-to-arm-cortex-d3-processor/7123 "2018-04-10T21:10:23Z")\
**Posts on this page:** 4\
**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:** [April 10, 2018, 9:10pm UTC](https://forums.freertos.org/t/moving-from-xmegaad256d3-to-arm-cortex-d3-processor/7123/1 "2018-04-10T21:10:23Z")

</div>

**[guggech](https://sourceforge.net/u/guggech/)** wrote on [Tuesday, April 10, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/8954eb10/#0e9b):

I need to convert code from a xmega256d3 with FreeRTOS 6.0 to a ARM Cortex D3 processor with FreeRTOS 10.0 using ATmel Studio. Any advice on how to do it painlessly as possible?

---

<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:** [April 10, 2018, 9:26pm UTC](https://forums.freertos.org/t/moving-from-xmegaad256d3-to-arm-cortex-d3-processor/7123/2 "2018-04-10T21:26:30Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, April 10, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/8954eb10/#0e9b/07af):

What is the D3? Is that one of Atmel (now Microchip) Cortex-A5 parts,  
or a Cortex-M part?

In any case, I would suggest the following steps:

1. Get a basic project running on the D3 (whatever that is) first.  
Don’t worry about FreeRTOS or anything else, just ensure you have the  
project set up correctly for the part, can download code to the part,  
and can run into and past main() with no issues.

2. Next add in the FreeRTOS code - if you tell me the core in the D3 I  
can tell you which port layer to include. Just get the code compiling  
for now.

3. Once the code is compiling create a simple task that allows you to  
check the scheduler is running as expected. Just a loop that toggles an  
LED at a fixed period that enables you to check the period is as expected.

for( ;; )  
{  
vTaskDelay( whatever );  
ToggleLED( 0 );  
}

1. Once the scheduler is running with the correct timing, go ahead and  
add in your application code too. No down the chip set stuff will need  
to be completely changed, but the rest of the code should be fairly easy  
to move across.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [April 11, 2018, 2:40pm UTC](https://forums.freertos.org/t/moving-from-xmegaad256d3-to-arm-cortex-d3-processor/7123/3 "2018-04-11T14:40:03Z")

</div>

**[guggech](https://sourceforge.net/u/guggech/)** wrote on [Wednesday, April 11, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/8954eb10/#a4a0):

Thank you for the suggestions. Sorry, the correct part is actually ther ATSAMD51J20A wich is the Cortex M4F type family.

---

<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:** [April 11, 2018, 3:04pm UTC](https://forums.freertos.org/t/moving-from-xmegaad256d3-to-arm-cortex-d3-processor/7123/4 "2018-04-11T15:04:51Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Wednesday, April 11, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/8954eb10/#a4a0/67db):

In which case use the port files from FreeRTOS/source/portable/GCC/ARM\_CM4F
