Andes Workshop

It is currently Sat Mar 30, 2024 12:40 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Assign static library to specific address
PostPosted: Sat Aug 02, 2014 10:28 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
Here is a example.
Attachment:
sample.zip [61.29 KiB]
Downloaded 722 times


Please import the sample.zip.
There are two projects inside.
Attachment:
1.png
1.png [ 7.29 KiB | Viewed 8532 times ]


In lib.c, we put all functions in a user defined section ".rom_code".
Attachment:
2.png
2.png [ 13.71 KiB | Viewed 8532 times ]


In sag file, assign .rom_code to 0x510000
Attachment:
3.png
3.png [ 7.52 KiB | Viewed 8532 times ]


The output of project "usercode":
Attachment:
4.png
4.png [ 5.62 KiB | Viewed 8531 times ]


Last edited by cindy on Sat Aug 02, 2014 10:59 pm, edited 1 time in total.

Top
 Profile Send private message E-mail  
 
 Post subject: Re: Assign static library to specific address
PostPosted: Sat Aug 02, 2014 10:57 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
Another sample code
Attachment:
usercode2.zip [46.45 KiB]
Downloaded 776 times


Output message:
Attachment:
5.png
5.png [ 17.25 KiB | Viewed 8528 times ]


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group