Frank Posted May 20, 2003 Report Posted May 20, 2003 Hi TK,If you could help me out a little on this, i would be grateful.Its a question regarding bootloaders and apps that use them. If an app was wriiten to use a bootloader can you recode the program memory start location and run the app without a bootloader.Take a look at this : -;; ---------------------; YOUR CODE BEGINS HERE; ---------------------; org 0x0003;UCode goto Start;; ------------------; ERROR MESSAGE DATA; ------------------;errMessDt clrf PCLATH movf MessPt,W addwf PCL DT "EEPROM ERROR";and at the very last of the code is this :-;; -----------------------; BOOT CODE START ADDRESS; -----------------------; DO NOT PLACE ANY CODE PAST THIS POINT; org 0x1F00MonCode org 0x1FFFEnterBoot;; endSo will changing to org 0x0000 and the end bit allow the app to work without the bootoader.If its possible, can you clue me in to what to do.PeaceFrank
Frank Posted May 20, 2003 Author Report Posted May 20, 2003 Hi TK,If you could help me out a little on this, i would be grateful.Its a question regarding bootloaders and apps that use them. If an app was wriiten to use a bootloader can you recode the program memory start location and run the app without a bootloader.Take a look at this : -;; ---------------------; YOUR CODE BEGINS HERE; ---------------------; org 0x0003;UCode goto Start;; ------------------; ERROR MESSAGE DATA; ------------------;errMessDt clrf PCLATH movf MessPt,W addwf PCL DT "EEPROM ERROR";and at the very last of the code is this :-;; -----------------------; BOOT CODE START ADDRESS; -----------------------; DO NOT PLACE ANY CODE PAST THIS POINT; org 0x1F00MonCode org 0x1FFFEnterBoot;; endSo will changing to org 0x0000 and the end bit allow the app to work without the bootoader.If its possible, can you clue me in to what to do.PeaceFrank
TK. Posted May 25, 2003 Report Posted May 25, 2003 Hi Frank,if the application has been written on a proper way, so that it doesn't rely on previous initializations which are made by the bootstrap loader, you could bypass the bootloader by overwriting address 0x0000-0x0002 with "NOP" instructions. Do you have access to the source code? If not, you could also patch the hex fileBest Regards, Thorsten.
TK. Posted May 25, 2003 Report Posted May 25, 2003 Hi Frank,if the application has been written on a proper way, so that it doesn't rely on previous initializations which are made by the bootstrap loader, you could bypass the bootloader by overwriting address 0x0000-0x0002 with "NOP" instructions. Do you have access to the source code? If not, you could also patch the hex fileBest Regards, Thorsten.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now