This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Function writing in Flash of ADuC841

I would like to write one function in flash location E000h and another function from 0000h.
I wanted to switch between these functions.

How could i access these locations and implement this?

  • This sounds like one of those questions where you really need to explain what you're actually trying to achieve - what you're suggesting might be a Really Bad way to do it...!

    eg, you do realise that address 0000h is the reset vector, and is immediately followed by the interrupt vectors - so putting an entire function there is likely to be a Really Bad Idea...

  • In Flash User download space is 0000H to 0DFFFH and Bootloader space is E000H to F7FFH. I want one program should start from User download space and another starts from Bootloader space.Then I want to jump between these programs when ever I want.Mainly I wanted to program the bootloader space.Default my compiler starts from 0000H.