Howto use 'ORG' directive on STM8S?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-01-10 6:41 PM
Posted on January 11, 2011 at 03:41
Howto use 'ORG' directive on STM8S?
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 6:11 AM
Posted on May 17, 2011 at 15:11 What's the ''org'' for? Just remove it, and if, as you say, you link that segment at 0x8080 you will end up with the code you require. By the way, it looks like you want to jump at the beginning of the startup: the examples provided with the compiler show how to do that in C (reset vector)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 6:11 AM
Posted on May 17, 2011 at 15:11
We have a customiszed bootloader from 0x8000 ~ 0x807f, the main code is from 0x8080, and we don't use interrupt vector.
So we have to put a 'trampoline' instruction @ 8080. Seems 'org' doesn't have the same effect like others. A small (4 bytes) segment can wrap the jump instruction. It works. Thanks...