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: AustraliaPosts: 4 |
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: AustraliaPosts: 1313 |
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: AustraliaPosts: 4 |
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: RomaniaPosts: 1697 |
@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.). Hobbit name: Togo Toadfoot of Frogmorton Elvish name: Mablung Miriel Beyound Arduino Lang |
||||
elsley Newbie Joined: 29/07/2012 Location: AustraliaPosts: 4 |
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: RomaniaPosts: 1697 |
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 KingdomPosts: 3801 |
elsley - Have you tried reading / asking on the Pinguino forum? The people who understand its usage of ld scripts are there. John |
||||
elsley Newbie Joined: 29/07/2012 Location: AustraliaPosts: 4 |
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: AustraliaPosts: 1313 |
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 KingdomPosts: 3801 |
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 |