Quality RTOS & Embedded Software

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


Loading

PIC32 linker errors

Posted by Richard on November 15, 2007
[moved from private email]

I am having linker problem in porting PIC32, but I do not
have that problem with PIC24.

I am wondering if the code size is the problem, since the
free C32 compiler has 64kB limit, but I think that should be
enough for the demo project.

Here is the error message, do you have an idea of what causing it?
[binary snipped]

RE: PIC32 linker errors

Posted by Richard on November 15, 2007
Is the demo you are compiling the one from the V4.6.1 FreeRTOS.org zip file? Did you make any changes to it?

The error messages look like there is a linker script problem. I don't think it is anything to do with the code size limit on the compiler as I would image you would get a straight forward about this were this the case, rather than the linker warnings. Having said that, I'm not sure if the compiler I have is code size limited or not.

I have tried to gauge the size of the output using pic32-size and pic32-objcopy, but with no success so far. I will try this again when I get the chance. In the mean time, if you are using the 'official' port, can you try turning the compiler optimization to 's'. The demo runs at all optimisation levels. It will be interesting to see if the linker problem persists.

Regards.

RE: PIC32 linker errors

Posted by Richard on November 15, 2007
>I have tried to gauge the size of the output using pic32-size and pic32-objcopy, but with no success so far

Looks like I was trying to do this the hard way. MPLAB is telling me the program size is approx 12K with 0 optimisation and approx 10K with s optimisation.

Regards.

RE: PIC32 linker errors

Posted by Richard on November 15, 2007
When you download the C32 compiler you get a 16K version which you then have to upgrade to the 64K version. Did you do this upgrade?

Regards.

RE: PIC32 linker errors

Posted by robot_gary on November 15, 2007
I just answer your questions below.

Is the demo you are compiling the one from the V4.6.1 FreeRTOS.org zip file? Did you make any changes to it?

Yes, it is, no, nothing is changed.


The error messages look like there is a linker script problem. I don't think it is anything to do with the code size limit on the compiler as I would image you would get a straight forward about this were this the case, rather than the linker warnings. Having said that, I'm not sure if the compiler I have is code size limited or not.

You are right, After I play around the settings, I finally got the code built. I found out, 11k code space, but data memory is nearly full, 31k something like that.

But, After I downloaded that code to the target board, never work, nothing happens, so I guess I ddi not build the code right, something is wrong.

Under PIC32 linker section, I checked the "removed unused sections" to get code built, but code is not functioning.


I have tried to gauge the size of the output using pic32-size and pic32-objcopy, but with no success so far. I will try this again when I get the chance. In the mean time, if you are using the 'official' port, can you try turning the compiler optimization to 's'. The demo runs at all optimisation levels. It will be interesting to see if the linker problem persists.

Let me find out how to do so.

RE: PIC32 linker errors

Posted by robot_gary on November 15, 2007
I did, I have 64kB, also the code size is even than 16KB.


RE: PIC32 linker errors

Posted by robot_gary on November 15, 2007

I got it working, I unchecked"removed unused section". and I saw the flashes and characters on LCD.


[ 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