piazzare delle "go to"

Jul 24, 2012 2 Replies

in un'AN microchip leggo questo: "Once the application is compiled and sized, place unconditional branch instructions (such as, =93GOTO .=94) throughout the unused area of program memory. If something should happen that makes the code =93run away=94 by branching into unused code space, the GOTO instructions can bring the microcontroller back to your code, where the WDT can help bring the application back under control"



domanda: come faccio a scrivere l'op-code della goto in tutta la flash non = utilizzata?


-ice-


Il 24/07/2012 10.27, ice ha scritto:

utilizzata?

boh; con una direttiva dell' asm o del linker ?

oppure, in un programmer, prima fai un fill del' area flash con il codice del goto, poi carichi il tuo file, poi salvi l' area flash con nome.

saluti lowcost

Il giorno marted=EC 24 luglio 2012 13:17:19 UTC+2, lowcost ha scritto:

ma prima di programmare il dispositivo non viene fatta una bulk-erase? sto usando l'ide di microchip non uno standalone che permette di decidere c= osa (programmare e cosa no)

-ice-

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required