Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

AVR32 UC3 Port usable for AP7000?

Posted by Bri on April 15, 2009
Does the AVR32 UC3 port work for a AVR32 AP7000 processor? If not can someone explain why it does not work?
I know there is a port for the AVR32 AP7000 (ap7x-freertos) but the port is not supported officially. Also the interrupt handling of the UC3 port looks more "professional" to me.

RE: AVR32 UC3 Port usable for AP7000?

Posted by Richard on April 15, 2009
I have never looked at the AP7000 but I would guess as somebody started a new port for that processor then the two would not be compatible.

Regards.

RE: AVR32 UC3 Port usable for AP7000?

Posted by Bri on April 17, 2009
The development of the unofficial AP7000 port started one year before Atmel added the UC3 port to the FreeRTOS project.
I take a look at the sourcecode and I found a comment in the file exceptions.S that it supports the UC3 devices only. The other files in the directory "portable" can be used for all AVR32 devices. So I think it should be not too complicated to get FreeRTOS running on the AP7000 with the official UC3 port. I will give it a try.



RE: AVR32 UC3 Port usable for AP7000?

Posted by Jesper Vestergaard on April 27, 2009
Hi Bri

I'm also looking fo a working port for the AVR32AP7000. How is it working out?

Regards Jesper

RE: AVR32 UC3 Port usable for AP7000?

Posted by Bri on May 3, 2009
Hi Jesper,
there are only minor problems (e.g. renaming some variables) to compile the UC3 port for a AP7000. But unfortunately the RTOS crashes after starting the scheduler (vTaskStartScheduler). I tracked down the problem to the context switch code in the file "portmacro.h". Some assembler instructions used in the code work different on the UC3 and the AP7000 processor: SCALL, RETS and RETE. On the UC3 the instructions save the state of some registers to the stack automaticially. The AP7000 uses shadow registers instead.

I am not very familiar with the AVR32 because I started programming the AVR32 three weeks ago. Therefore it might take some days to get it running. It would be nice if you could help me.

RE: AVR32 UC3 Port usable for AP7000?

Posted by Jesper Vestergaard on May 4, 2009
I'm also new to the avr32 programming but maybe you could look at the ap7x-freertos project and see how they implemented the context switch.

Can you provide the updated header files so i can try compiling the port?

Regards Jesper

RE: AVR32 UC3 Port usable for AP7000?

Posted by Bri on May 5, 2009
Hi Jesper,
finally I got the FreeRTOS running on the AVR32 AP7000. Major changes in the file "portmacro.h" were needed. Espacially the context store/restore macros had to be modified. I will add my port to the FreeRTOS project within the next few days so you can checkout my changes for your project.

best regards, Torsten

RE: AVR32 UC3 Port usable for AP7000?

Posted by Jesper Vestergaard on May 6, 2009
Hi Torsten

That's great news. It would be nice if you could send the code to my email so i can start testing it right away. My email address is jesperv (at) es dot aau dot dk

I have been trying to port the ap7x-freertos to my ICnova ap7000 Base / Grasshopper but it would be better to use your contributions.

Best regards Jesper

RE: AVR32 UC3 Port usable for AP7000?

Posted by Bri on May 7, 2009
Hi Jesper,
I use the Grasshopper Board too. Hence you should be able to use my sourcecode without any modifications. I asked Richard Barry about the procedure to add my sourcecode to the project but I did not get a response till now. So I will send it to you by mail.

Best regards, Torsten


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


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

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

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner