Sign in

username:

password:



Not a member?

Search 68hc12



Search tips

Subscribe to 68hc12



68hc12 by Keywords

68HC1 | 812A4 | 9S12DP256 | Bootloader | CodeWarrior | D60A | Debugger | DP256 | ECT | EEPROM | EVB | Flash | HC1 | HCS12 | I2C | IAR | ICC1 | Interrupts | LCD | M68KIT912DP256 | MC9S12DP256 | MC9S12DP256B | Metrowerks | Motor | MSCAN | Multilink | PLL | Quadrature | SDI | SPI | Transceiver | XFC

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | 68HC12 | Paging on a MC9S12

Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).

Paging on a MC9S12 - sgri...@gonzaga.edu - Mar 15 18:12:47 2009

Hello Everyone,

I am a computer engineering student at Gonzaga University, and am
working on a delivery robot with 3 other guys for our senior design
project. We are using a MC9S12DP512 processor on an Axide CMD-12DP512
board. We are using AxIDE for our coding and debugging which uses the
GNU compiler. On this processor we are running a simple multi-tasking
executive that we wrote in C to control program flow.

We have reached a very bad point. Our code has grown to take up more
room than we have in the internal flash (from 0xC000 to 0xFFFF). I
know that the MC9S12 is capable of paging, but I am at a loss as to go
about using paging. I was wondering if someone could point me in the
right direction for some documentation or some simple example code or
application notes.

I also realize that I can just code everything in Assembly to help
with the size of the code, however a lot of the information is HMI
pages, which are about the same size in C as in Assembly.

Any help would be much appreciated. If I need to provide more
information, just lat me know.

Thank you,
Scott

------------------------------------



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )


Re: Paging on a MC9S12 - Edward Karpicz - Mar 16 0:44:35 2009

Scott wrote:

> We have reached a very bad point. Our code has grown to take up more
> room than we have in the internal flash (from 0xC000 to 0xFFFF). I

You code can keep growing without using paging, while it fits between
nonpaged 0x4000 and 0xFFFF.

Edward
----- Original Message -----
From:
To: <6...@yahoogroups.com>
Sent: Monday, March 16, 2009 12:12 AM
Subject: [68HC12] Paging on a MC9S12
> Hello Everyone,
>
> I am a computer engineering student at Gonzaga University, and am
> working on a delivery robot with 3 other guys for our senior design
> project. We are using a MC9S12DP512 processor on an Axide CMD-12DP512
> board. We are using AxIDE for our coding and debugging which uses the
> GNU compiler. On this processor we are running a simple multi-tasking
> executive that we wrote in C to control program flow.
>
> We have reached a very bad point. Our code has grown to take up more
> room than we have in the internal flash (from 0xC000 to 0xFFFF). I
> know that the MC9S12 is capable of paging, but I am at a loss as to go
> about using paging. I was wondering if someone could point me in the
> right direction for some documentation or some simple example code or
> application notes.
>
> I also realize that I can just code everything in Assembly to help
> with the size of the code, however a lot of the information is HMI
> pages, which are about the same size in C as in Assembly.
>
> Any help would be much appreciated. If I need to provide more
> information, just lat me know.
>
> Thank you,
> Scott
>
> ------------------------------------



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: Paging on a MC9S12 - Nigel Johnson - Mar 16 8:12:49 2009

One relatively painless way to use expanded memory is to move functions
up there, and call them with the call directive, returning with an RTC
instead of an RTS.

I am not sure how you would do this in C, never been there.

good luck,

Nigel Johnson
ve3id/g4ajq

------------------------------------



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )