Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 03:41 26 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Olimex PIC32-T795 Linker script

Author Message
elsley
Newbie

Joined: 29/07/2012
Location: Australia
Posts: 4
Posted: 10:09pm 28 Jul 2012
Copy link to clipboard 
Print this post

I am new to using PIC32 although have used 8bit pics a little in the past.

I recently purhached a maximite and then decided to try my hand at using C instead of basic and purchased the "Olimex-T795". Can anyone help with which linker script I should use in MPLAB?

I am scared that the incorrect linker script will wipe the bootloader ?
 
donmck

Guru

Joined: 09/06/2011
Location: Australia
Posts: 1313
Posted: 10:15pm 28 Jul 2012
Copy link to clipboard 
Print this post

  elsley said   I am new to using PIC32 although have used 8bit pics a little in the past.

I recently purhached a maximite and then decided to try my hand at using C instead of basic and purchased the "Olimex-T795". Can anyone help with which linker script I should use in MPLAB?

I am scared that the incorrect linker script will wipe the bootloader ?


When I asked about this some time ago Peter, this was Tsvetan's response:

Wish to program the DuinoMite in C?
Olimex Pinguino IDE supports the DuinoMite even now. No need for a special linker script as there is one for the 795 already. Use the existing bootloader that is programmed into the board.
Tsvetan of Olimex.


Cheers Don...
https://www.dontronics.com
 
elsley
Newbie

Joined: 29/07/2012
Location: Australia
Posts: 4
Posted: 10:40pm 28 Jul 2012
Copy link to clipboard 
Print this post

Hi Don. I am still a little confused I know the MPLAB IDE has a generic linker script for the 795, is this the script Tsvetan is talking about,or is he talking about another linker script supplied with Pinguino IDE
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 04:02am 29 Jul 2012
Copy link to clipboard 
Print this post

@eisley, the linker script is your concern only - don't get stuck on that. Look at the keywords of Don.

He said: I want to program the board in C.

The answer: Use Pinguino IDE with the existing bootloader on board. Don't worry about linker script!

Pinguino IDE is working as Arduino IDE. Just write the program and hit upload button.

_________
Of course, reading the docs is a good habit (explore the Pinguino IDE package, search on Pinguino forums, etc.).Edited by vasi 2012-07-30
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
elsley
Newbie

Joined: 29/07/2012
Location: Australia
Posts: 4
Posted: 08:41am 29 Jul 2012
Copy link to clipboard 
Print this post

I have just downloaded Pinguino and tried to upload a program to the Olimex PIC32-T795 but Pinguino doesn't reconise the bootloader..

I have writen a small c program to flash leds using Microchip Mplab and the maximite.ld linker script, this program loaded ok with Olimex bootloader and run fine.

However when I try to write more complicated programs using interupts etc I get errors from the linker script.. Can I use the generic linker script ?
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 09:02am 29 Jul 2012
Copy link to clipboard 
Print this post

The last version of Pinguino is in SVN. Tried to access the site at http://pinguino.cc but it says "Access denied." . I will try again later, to actualize my data - not using Pinguino currently (I'm involved right now with some ATmega's and gcc).
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3801
Posted: 10:40pm 29 Jul 2012
Copy link to clipboard 
Print this post

elsley - Have you tried reading / asking on the Pinguino forum? The people who understand its usage of ld scripts are there.

JohnEdited by JohnS 2012-07-31
 
elsley
Newbie

Joined: 29/07/2012
Location: Australia
Posts: 4
Posted: 07:11am 30 Jul 2012
Copy link to clipboard 
Print this post

Just an update - i received a comp of the correct linker script from the technical guys @ Olimex. Tried it in Mplab and still got many errors...
I eventualy found using and older version of the c compiler fixed my problem.. I was using the new Microchip XC complier toolsuite..
 
donmck

Guru

Joined: 09/06/2011
Location: Australia
Posts: 1313
Posted: 10:26am 30 Jul 2012
Copy link to clipboard 
Print this post


let me know how it works out Peter, and I'll add any additional info to my pages to assist others.

Cheers Don...


https://www.dontronics.com
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3801
Posted: 09:37pm 30 Jul 2012
Copy link to clipboard 
Print this post

I think Microchip have changed various things (such as region aka section names). Helps get smaller and more appropriate code, probably.

John
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024