Re: post if u have any good tutorials on How to writeBootLoa
It is hard to find a generic tutorial for a boot loader. I have been teaching porting for few years now and each case is a stand alone case. The simplest boot loader can be summarized in the following steps:
1. Jump to Reset handler
2. Disable critical I/O as watchdog and interrupts
3. Setup interrupt vector table
4. Initialize stacks
5. Initialize memory controller
6. Initialize RAM
7. Jump to C Code initialization
8. Initialize clock
9. Initialize I/O ports
10. Initialize devices
11. Initialize OS or jump to your application
I can share ARM9 booting code if you are interested.