[En-Nut-Discussion] Ethernut and Yagarto with more than 256k Code and Ethernut with the new yagarto compiler

Michael Fischer fischermi at t-online.de
Sat Apr 16 22:49:55 CEST 2011


it looks that the problem is the "MC Flash Mode Register"
and the startup code of the EIR. Here the following code
will be used:

         ldr     r1, =MC_BASE
         mov     r0, #MC_FWS_2R3W
         str     r0, [r1, #MC_FMR_OFF]

Unfortunately only the "Flash Mode Register" of EFC0
will be set. But for the SE512, the EFC1 must be set too.
Please change the code like:

         ldr     r1, =MC_BASE
         mov     r0, #MC_FWS_2R3W
         str     r0, [r1, #MC_FMR_OFF]
         str     r0, [r1, #0x70]

And now it should work. The problem was that some code
was moved in the second 256K area. Even with the debugger
it takes a while to find this problem. Strange...

Best regards,

More information about the En-Nut-Discussion mailing list