EmbeddedRelated.com
Forums

Paged Memory with Cosmic/WINidea in BDM

Started by MARC Erwan August 2, 2006
Hello,

We are working on a board with a S12DJ64 CPU.
Till now, we have been able to work in the 'normal memory space' using
only up to 32k for code.
Now, adding new functions, we would like to use the paged memory area to
get more space.
We use WINIdea with Cosmic compiler (and linker), with BDM link to
board.
I've configured the source files, compiler and linker to get correct
.map file (no more 'cross bank call') and, I assume, correct .695 file.
After Flash program of CPU, I download file to Emulator and get error
'Code out of emulation area'...
How can I configure emulator to work with paged memory? I'm not sure it
is possible in BDM :-(
Does any one has an example or a guide to do that?

Thanks

MARC Erwan

This electronic transmission (and any attachments thereto) is intended
solely for the use of the addressee(s). It may contain confidential or
legally privileged information. If you are not the intended recipient of
this message, you must delete it immediately and notify the sender.
Any unauthorized use or disclosure of this message is strictly prohibited.
Faurecia does not guarantee the integrity of this transmission and shall
therefore never be liable if the message is altered or falsified nor for any
virus, interception or damage to your system.
MARC Erwan wrote:

[...]

> use the paged memory area to get more space. We use WINIdea with
> Cosmic compiler (and linker), with BDM link to board. I've configured
> the source files, compiler and linker to get correct .map file (no
> more 'cross bank call') and, I assume, correct .695 file. After Flash
> program of CPU, I download file to Emulator and get error 'Code out of
> emulation area'... How can I configure emulator to work with paged
> memory?

do you use a recent version of winIDEA? Then I suggest to complain at
iSYSTEM support, else their documentation stays so bad.

> I'm not sure it is possible in BDM :-( Does any one has an

It is possible, at least with winIDEA 2005 which I'm using.

Tell me if you don't get support from iSYSTEM.

Oliver
--
Oliver Betz, Muenchen
> MARC Erwan wrote:

> [...]

> > use the paged memory area to get more space. We use WINIdea with
> > Cosmic compiler (and linker), with BDM link to board. I've
configured
> > the source files, compiler and linker to get correct .map file (no
> > more 'cross bank call') and, I assume, correct .695 file. After
Flash
> > program of CPU, I download file to Emulator and get error 'Code out
of
> > emulation area'... How can I configure emulator to work with paged
> > memory?

> do you use a recent version of winIDEA?

Yes, WINIdea 2005, last version (2006) not installed yet.

> Then I suggest to complain at
> iSYSTEM support, else their documentation stays so bad.

Yes I'll do.
After my message, I've found on iSystem website a recent version of
Starting guide for BDM.
I've checked the options (mainly activate Expanded Memory in CPU Setup)
and now, at DL time, the 'out of map' errors are not only for pages $3E
and $EF but also for $3C and $3D (that were previously not mentioned!).
I must check line by line and option by option the link file and the
configuration of WINIdea and after that rebuild all the whole project.
I'll keep you informed of the results.

>> I'm not sure it is possible in BDM :-( Does any one has an

> It is possible, at least with winIDEA 2005 which I'm using.

Thanks a lot for this positive information: I've just to find the
location of the error :-)

> Tell me if you don't get support from iSYSTEM.

> Oliver
> --
> Oliver Betz, Muenchen

Thank you

Erwan

This electronic transmission (and any attachments thereto) is intended
solely for the use of the addressee(s). It may contain confidential or
legally privileged information. If you are not the intended recipient of
this message, you must delete it immediately and notify the sender.
Any unauthorized use or disclosure of this message is strictly prohibited.
Faurecia does not guarantee the integrity of this transmission and shall
therefore never be liable if the message is altered or falsified nor for any
virus, interception or damage to your system.
Hi,
I've been able to set functions in Paged Memory, combining @far in .c
code and adapted .lkf link file.
Thanks for your advices.
Now, I've more precise questions, to optimize usage of paged memory:
I'll send another message to generate a separate thread.
Regards

MARC Erwan

This electronic transmission (and any attachments thereto) is intended
solely for the use of the addressee(s). It may contain confidential or
legally privileged information. If you are not the intended recipient of
this message, you must delete it immediately and notify the sender.
Any unauthorized use or disclosure of this message is strictly prohibited.
Faurecia does not guarantee the integrity of this transmission and shall
therefore never be liable if the message is altered or falsified nor for any
virus, interception or damage to your system.