How do I get uvision3 to NOT put any code at the reset vector? i.e. completely leave 0-7FFh alone.
The reason is that I want to build only the application part of my program and exclude the bootloader segment that lives between 0-7FFh. The map file shows that indeed everything in the application is where it should be, except the compiler keeps trying to save me from myself and sticks an LJMP at 0x0000 - which I don't want.
How do I keep the C_STARTUP segment from being part of the build?
http://www.keil.com/support/docs/143.htm
this works if you just want to have the whole kit and kaboodle relocated.
However, in the case of a bootloader you want it located in TWO places.
What I do is use the #pragma noiv and write an assembler module that handles the switching and the app then have ljmps to the actual ISRs spaced by 4 in the beginning of the app space. IT WORKS and the only determinig factor boot/app is one bit (which, of course is located absolute). The 'vector switcher' is, of course, part of the bootloader and can thus jump directly to the bootloaders ISRs
Erik
I agree with Thiru09, because when I read this topic, At first I think by my self that great! But when I check the keyword "bootloader" use google search. bootloader: is not good to use. There was one page with details for it in JAVA. So the vector jumping is not an working solution to the problem for him.
bootloader: is not good to use. it is, if done right So the vector jumping is not an working solution to the problem for him. it is, if done right
here again a bunch of i..... have tried something that was way over their head and, instead of working it out, they publish "it is not good".
A bootloader is one of the many 'traps' a runner that has not learned to crawl may see and find simple and then jump into, it is not simple. I could whip up a bootloader in a few minutes and it would if qualified by the means many use work. A bootloader that was functional by a rigid definition would take more thought and time.
i see on google that bootloaders are not good for coding. look at http://www.google.com
The best bootloader is the BOIS with the AMD chips and are reliable.
the last answer is an id.... answer.
"i see on google that bootloaders are not good"
Nonsense! either you're misinterpreting what you found, or what you found is wrong. Can you give a specific reference?
"The best bootloader is the BOIS with the AMD chips"
What "BOIS"? What AMD chips? What nonsense!
Why dont you people learn to use a search engine?
I used http://www.google.com and got this vip.asus.com/.../view.aspx
Why code with a bug?
sit down, get yourself a Martini, and take of your helmet. if it says "PC" on it, you'll know why that software is wrong.
View all questions in Keil forum