How can I put my code to RAM segment?

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

How can I put my code to RAM segment?

2,533 Views
pvi
Contributor I
I try do it with :
#pragma CODE_SEG RAM
my function.......
#pragma CODE_SEG DEFAULT
 
but it don't work - CodeWarrior put my code to ROM.
 
Labels (1)
0 Kudos
Reply
3 Replies

509 Views
CrasyCat
Specialist III
Hello
 
- Which CPU are you targeting (HC08, HC12, Coldfire, ..)
- Which version of CodeWarrior are you using?
To retrieve that info:
- Start CodeWarrior
- Select Help -> About Freescale CodeWarrior
- Click on "Install Products"
- CodeWarrior version used is displayed on top in the Installed Products dialog.
 
For CodeWarrior for HC12 or CodeWarrior for HC12:
  - take a look at TN235 for information on how to run portion of application from stack.
  - take a look at TN228 for information on how to run portion of application from RAM.
 
You can download the 8/16 bit Technical Notes from following link:
 
Then download 816TNSP.
 
I hope this helps.
 
CrasyCat
0 Kudos
Reply

509 Views
pvi
Contributor I
I use CodeWarrior V5.7.0, HCS08
0 Kudos
Reply

509 Views
CrasyCat
Specialist III
Then look at the Technical notes I specify in my earlier post
 
CrasyCat
0 Kudos
Reply