Building BSP returns error: Link error : Overflow in segment: vectorrom from section: .vectors

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Building BSP returns error: Link error : Overflow in segment: vectorrom from section: .vectors

Jump to solution
5,397 Views
CarlFST60L
Senior Contributor II

I have followed the steps on page 138 of the MQXUG to create my new BSP (mybsp) for release 3.1. I had previously done this in MQX3.0 and had no major problems.

Here is a brief overview of what i have done to get the error:

1. I follow all the steps in the UG pg 138 and get the mybsb.cw output files (which I believe both psp/bsb compile as expected, there are certainly no errors or warnings, paths are all updated, files all renamed, files all exist and appear normal).

2. I then create a new project in codewarrior where I want to use my new bsp/psp/lib. There is no way to select your own BSP or libraries from the list, so I am forced to choose the MQX library using the 52259EVB bsp (codewarrior only lists the default BSP's instead of looking in the output directory to give you all the available options). So this part is manually performed which is likely to be part of our problem.

3. I then remove all files in the "MQX Libraries" and reset to same files found in mybsp.cw

4. I change all the paths to match in the project options

5. I reset project entry paths and research for files

5. I go to build and i get the following two errors:

Link error : Overflow in segment: vectorrom from section: .vectors

Segment reserved size is: 0x0000000400 -- Overflow of: 0x0x0000000400

 

Link error : Overflow in segment: cfmprotorom from section: .cfmprotect

Segment reserved size is: 0x0000000400 -- Overflow of: 0x0x0000000400

 
I have not modified a single thing inside any file, just changed the names and paths...

 

Not sure what to do now, I have spent a couple of hours experimenting to see if I could work it out but have had no luck with something which should be very simple.

Message Edited by CarlFST60L on 2009-04-28 07:01 AM
0 Kudos
Reply
1 Solution
2,482 Views
CarlFST60L
Senior Contributor II

I have created a full step by step HOW TO for building a custom BSP. I dont have time to stuff around with FTP right now (lost password bla bla bla), but if someone wants to host it and post it up in the forums I will send you the PDF.

 

The document has full steps, pics and everything you need to get it working 100%. 

View solution in original post

0 Kudos
Reply
8 Replies
2,482 Views
jhmrd
Contributor III
I found that they changed the linker files (*.lcf) in the new 3.1 release, but did not mention that in their release notes. I had to mess around with getting the new linker files into my old projects to get them to link properly. Maybe that is your problem, too.
0 Kudos
Reply
2,483 Views
CarlFST60L
Senior Contributor II

I have created a full step by step HOW TO for building a custom BSP. I dont have time to stuff around with FTP right now (lost password bla bla bla), but if someone wants to host it and post it up in the forums I will send you the PDF.

 

The document has full steps, pics and everything you need to get it working 100%. 

0 Kudos
Reply
2,482 Views
jhmrd
Contributor III

I can put your PDF in an accessible place if you want to send it to me, thanks.

you can email it to: james 'at' jhmrd.com

0 Kudos
Reply
2,482 Views
CarlFST60L
Senior Contributor II
Email sent
0 Kudos
Reply
2,482 Views
jhmrd
Contributor III

You can download Carl's excellent BSP build instuctions by clicking on this link: MQX Step by Step Build

 

Or by cutting and pasting into your browser if the link is not active:

http://jhmrd.com/MQX_Step_by_Step_Build.pdf

 

0 Kudos
Reply
2,482 Views
tomaszk
Contributor II
I'm trying to build my own BSP. Unfortunately the MQXUG steps are not clear for me (I'm new in coldfire). The Carl's instruction could be very helpful but I can't  open your link.  Can you make this pdf accessible again, please. Thanks in advance.
0 Kudos
Reply
2,482 Views
jhmrd
Contributor III
My site provider does not allow anonymous ftp, so I have created a guest account. You should be able to access this PDF file by connecting to ftp.jhmrd.com, userID guest@jhmrd.com, and password guest. Let me know if this does not work for you.
0 Kudos
Reply
2,482 Views
CarlFST60L
Senior Contributor II

Thanks for posting it. Just remeber this was intended as an 'internal document' for us so we have put no real effort into it other than showing the minimum steps required. This document is intended as our 'refresher' so when we come back to the project later down the road we can pick it up and use it. If anyone wants to make it better, add new steps or just fix the steps, I pm me and I will supply the orginal word doc.

 

The main point is, this document does work and includes every single step.

0 Kudos
Reply