mainGNU Development Chain for 68HC11/68HC12 - Support: sr #102782, HC12 Bank Switching & Paging

 
 

You are not allowed to post comments on this tracker with your current authentication level.

sr #102782: HC12 Bank Switching & Paging

Submitter:  John Pietrasik <jpietrasik>
Submitted:  Fri 30 Jan 2004 05:49:42 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  None

Thu 05 Feb 2004 12:42:01 PM UTC, comment #1: 

This request can be cancelled.  I found that the logical address and the physical address for banked code can be defined separately (yielding the desired results) as follows:

MEMORY
{
  ...
  _PAGE_30 (RX) : ORIGIN = 0x0D0000, LENGTH = 0x4000;
  ...
}

SECTIONS
{
  _page_30_physical_address = 0x308000;

  ...

  .page_30 : AT (_page_30_physical_address)
  {
    * (.page_30)
  } > _PAGE_30

  ...
}

John Pietrasik <jpietrasik>
Fri 30 Jan 2004 05:49:42 PM UTC, original submission:  

Is it possible to change the values of the constants "sym_bank_base", "page_bank_size", and "page_bank_base" in the linker script file (68HC12 Tool Chain)?

The current page and address calculation is incompatible with my current Noral BDM hardware.  Ideally, I would like define the following configuration:

sym_bank_base = 0
page_bank_size = 0x10000
page_bank_base = 0

This configuration would yield the following...

%page(sym_addr) = sym_addr >> 16;
%addr(sym_addr) = sym_addr & 0xFFFF;

John Pietrasik <jpietrasik>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code