Hello Eduardo,
This sounds like the watchdog, which is enabled by default, and even the flash is empty. You need to flash an aplication inside, that handles or disables the watchdog. When using the debuggers flash scripts, then they disable the watchdog before flashing. This is done by the block:
DisableWatchdog:
Data.Set VM:0x20000000++0x2F %Long 0
Data.Assemble VMT:0x20000000 adr r0,0x20000014
Data.Assemble , ldm r0,{r0-r4}
Data.Assemble , movs r5,0
Data.Assemble , strb r5, [r0, #1]
Data.Assemble , strh r1, [r0, #2]
Data.Assemble , strh r2, [r0, #2]
Data.Assemble , strh r3, [r0, #4]
Data.Assemble , strh r4, [r0, #0]
Data.Assemble , bkpt #0x0
Data.Set VM:0x20000014 %Long 0x40052000
Data.Set VM:0x20000018 %Long 0x20c5
Data.Set VM:0x2000001C %Long 0x28D9
Data.Set VM:0x20000020 %Long 0xFFFF
Data.Set VM:0x20000024 %Long 0x20
Data.COPY SD:0x20000000++0x2F VM:0x20000030
Data.COPY VM:0x20000000++0x2F SD:0x20000000
Register.Set PC 0x20000000
Go.direct
WAIT !RUN()
Data.COPY VM:0x20000030++0x2F SD:0x20000000
RETURN
SYStem.Up should work even with the enabled watchdog. If SYStem.Up is not working, then you have a different problem. In that case the error message would be interesting.
The standard way to call the flash script is calling it directly after SYStem.Up in the following way:
...
SYStem.Up
DO ~~/demo/arm/flash/mke0.cmm PREPAREONLY
...
The the WDOG will be disabled.
Best Regards,
Steffen.