how to call a function in boot loader section from app. ?

General discussion on mikroBasic PRO for AVR.
Post Reply
Author
Message
Scorpio
Posts: 18
Joined: 06 May 2013 16:16

how to call a function in boot loader section from app. ?

#1 Post by Scorpio » 01 Aug 2013 08:52

Hi,

I run a boot loader with AES crypto engine. As the main program in application section will also use the same AES routine, I want to call the AES routine in boot loader section from app section.
My question is: how I write code in app section to call the function in boot loader section knowing its address ?
Both codes will be compiled as 2 separated projects.



Thanks for help.
regards,

User avatar
dejan.odabasic
mikroElektronika team
Posts: 2649
Joined: 30 Apr 2012 14:20

Re: how to call a function in boot loader section from app.

#2 Post by dejan.odabasic » 05 Aug 2013 14:37

Hello,

You can define function in your application project which you can position to address of the bootloader function, using the org directive.
Please take a look at explanation provided in compiler help file, for org directive.

Then when you call that function from your application, you should jump to bootloader function.

Best regards.

Scorpio
Posts: 18
Joined: 06 May 2013 16:16

Re: how to call a function in boot loader section from app.

#3 Post by Scorpio » 10 Aug 2013 07:42

Hi,

Thanks for your answer.
I will try.

regards,

Post Reply

Return to “mikroBasic PRO for AVR General”