Hi!
Ich hab da zwei Fragen bzgl. des in Xilinx FPGAs integrierten PowerPCs.
Zum einen möchte ich, dass meine Software in Form eines Bootloaders an
einem gewissen Punkt eine andere Software aufruft. Zwar hab ich schon
was gefunden in der XAPP482, das folgendermaßen aussieht:
1 | //declare before main()
|
2 | // Function point that is used at the end of the program
|
3 | // to jump to the address location stated by PROG_START_ADDR
|
4 | #define PROG_START_ADDR 0x80180000
|
5 | int (*func_ptr) ();
|
6 |
|
7 | // declare after main()
|
8 | // function point that is set to point to the address of
|
9 | // PROG_START_ADDR
|
10 | func_ptr = PROG_START_ADDR;
|
11 | // jump to start execution code at the address
|
12 | // PROG_START_ADDR
|
13 | func_ptr();
|
Nur kann ich das nicht so ganz testen, da ich nicht genau weiß, wie ich
en Programm in den Speicher kriegen soll. Der Bootloader startet aus
einem BRAM und ich hab noch einen DSBRAM und ISBRAM ... wie kann ich die
am Anfang initialisieren? Also quasi ein anderes Programm hochladen, an
welches ich dann später springen möchte.
Dann noch etwas: Kann ich in C einen Reset des PowerPC ausführen?! Das
ganze System soll quasi neu starten.
Gruß & Danke!