This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM48L952: odd programming with Uniflash wrong even programming correct

Part Number: RM48L952
Other Parts Discussed in Thread: UNIFLASH, TMDSRM48HDK

I program the microcontroller with UNIFLASH. after first programming the program does not run and the memory seems corrupted. A new programming let the program works right and the memory is fine.

If I program with Lauterbach debugger is always fine.

The log from console and the memory reading after the first programming is:

[5/8/2020 09:17:45] [INFO] CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0
[5/8/2020 09:17:58] [INFO] CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0
[5/8/2020 09:18:50] [INFO] CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0
[5/8/2020 09:18:57] [INFO] CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0 due to System Reset
[5/8/2020 09:18:57] [INFO] CortexR4: Writing Flash @ Address 0x00000000 of Length 0x00007ff0
[5/8/2020 09:18:57] [INFO] CortexR4: Using Range Mode with the following range(s): 0x0000000-0x0009FFFF,0x180000-0x2fffff,0x00400000-0x0044FFFF
[5/8/2020 09:19:00] [INFO] CortexR4: Erasing Flash Bank 0, Sector 0
[5/8/2020 09:19:00] [INFO] CortexR4: Erasing Flash Bank 0, Sector 1
[5/8/2020 09:19:01] [INFO] CortexR4: Erasing Flash Bank 0, Sector 2
[5/8/2020 09:19:01] [INFO] CortexR4: Erasing Flash Bank 0, Sector 3
[5/8/2020 09:19:01] [INFO] CortexR4: Erasing Flash Bank 0, Sector 4
[5/8/2020 09:19:01] [INFO] CortexR4: Erasing Flash Bank 0, Sector 5
[5/8/2020 09:19:02] [INFO] CortexR4: Erasing Flash Bank 0, Sector 6
[5/8/2020 09:19:02] [INFO] CortexR4: Erasing Flash Bank 0, Sector 7
[5/8/2020 09:19:02] [INFO] CortexR4: Erasing Flash Bank 1, Sector 0
[5/8/2020 09:19:02] [INFO] CortexR4: Erasing Flash Bank 1, Sector 1
[5/8/2020 09:19:03] [INFO] CortexR4: Erasing Flash Bank 1, Sector 2
[5/8/2020 09:19:03] [INFO] CortexR4: Erasing Flash Bank 1, Sector 3
[5/8/2020 09:19:03] [INFO] CortexR4: Erasing Flash Bank 1, Sector 4
[5/8/2020 09:19:03] [INFO] CortexR4: Erasing Flash Bank 1, Sector 5
[5/8/2020 09:19:04] [INFO] CortexR4: Erasing Flash Bank 1, Sector 6
[5/8/2020 09:19:04] [INFO] CortexR4: Erasing Flash Bank 1, Sector 7
[5/8/2020 09:19:04] [INFO] CortexR4: Erasing Flash Bank 1, Sector 8
[5/8/2020 09:19:04] [INFO] CortexR4: Erasing Flash Bank 1, Sector 9
[5/8/2020 09:19:05] [INFO] CortexR4: Erasing Flash Bank 1, Sector 10
[5/8/2020 09:19:05] [INFO] CortexR4: Erasing Flash Bank 1, Sector 11
[5/8/2020 09:19:06] [INFO] CortexR4: Verifying Flash @ Address 0x00000000 of length 0x00007FF0
[5/8/2020 09:19:06] [INFO] CortexR4: Writing Flash @ Address 0x00007ff0 of Length 0x00007ff0
[5/8/2020 09:19:07] [INFO] CortexR4: Verifying Flash @ Address 0x00007FF0 of length 0x00007FF0
[5/8/2020 09:19:07] [INFO] CortexR4: Writing Flash @ Address 0x0000ffe0 of Length 0x00007ff0
[5/8/2020 09:19:08] [INFO] CortexR4: Verifying Flash @ Address 0x0000FFE0 of length 0x00007FF0
[5/8/2020 09:19:08] [INFO] CortexR4: Writing Flash @ Address 0x00017fd0 of Length 0x00007ff0
[5/8/2020 09:19:08] [INFO] CortexR4: Verifying Flash @ Address 0x00017FD0 of length 0x00007FF0
[5/8/2020 09:19:09] [INFO] CortexR4: Writing Flash @ Address 0x0001ffc0 of Length 0x00007ff0
[5/8/2020 09:19:09] [INFO] CortexR4: Verifying Flash @ Address 0x0001FFC0 of length 0x00007FF0
[5/8/2020 09:19:10] [INFO] CortexR4: Writing Flash @ Address 0x00027fb0 of Length 0x00007ff0
[5/8/2020 09:19:10] [INFO] CortexR4: Verifying Flash @ Address 0x00027FB0 of length 0x00007FF0
[5/8/2020 09:19:10] [INFO] CortexR4: Writing Flash @ Address 0x0002ffa0 of Length 0x00007ff0
[5/8/2020 09:19:11] [INFO] CortexR4: Verifying Flash @ Address 0x0002FFA0 of length 0x00007FF0
[5/8/2020 09:19:11] [INFO] CortexR4: Writing Flash @ Address 0x00037f90 of Length 0x00007ff0
[5/8/2020 09:19:12] [INFO] CortexR4: Verifying Flash @ Address 0x00037F90 of length 0x00007FF0
[5/8/2020 09:19:12] [INFO] CortexR4: Writing Flash @ Address 0x0003ff80 of Length 0x00001198
[5/8/2020 09:19:13] [INFO] CortexR4: Verifying Flash @ Address 0x0003FF80 of length 0x00001198
[5/8/2020 09:19:13] [INFO] CortexR4: Writing Flash @ Address 0x00048000 of Length 0x00007ff0
[5/8/2020 09:19:14] [INFO] CortexR4: Verifying Flash @ Address 0x00048000 of length 0x00007FF0
[5/8/2020 09:19:14] [INFO] CortexR4: Writing Flash @ Address 0x0004fff0 of Length 0x00007ff0
[5/8/2020 09:19:14] [INFO] CortexR4: Verifying Flash @ Address 0x0004FFF0 of length 0x00007FF0
[5/8/2020 09:19:15] [INFO] CortexR4: Writing Flash @ Address 0x00057fe0 of Length 0x00007ff0
[5/8/2020 09:19:15] [INFO] CortexR4: Verifying Flash @ Address 0x00057FE0 of length 0x00007FF0
[5/8/2020 09:19:16] [INFO] CortexR4: Writing Flash @ Address 0x0005ffd0 of Length 0x00007ff0
[5/8/2020 09:19:16] [INFO] CortexR4: Verifying Flash @ Address 0x0005FFD0 of length 0x00007FF0
[5/8/2020 09:19:16] [INFO] CortexR4: Writing Flash @ Address 0x00067fc0 of Length 0x00007ff0
[5/8/2020 09:19:17] [INFO] CortexR4: Verifying Flash @ Address 0x00067FC0 of length 0x00007FF0
[5/8/2020 09:19:17] [INFO] CortexR4: Writing Flash @ Address 0x0006ffb0 of Length 0x00007ff0
[5/8/2020 09:19:18] [INFO] CortexR4: Verifying Flash @ Address 0x0006FFB0 of length 0x00007FF0
[5/8/2020 09:19:18] [INFO] CortexR4: Writing Flash @ Address 0x00077fa0 of Length 0x00007ff0
[5/8/2020 09:19:19] [INFO] CortexR4: Verifying Flash @ Address 0x00077FA0 of length 0x00007FF0
[5/8/2020 09:19:19] [INFO] CortexR4: Writing Flash @ Address 0x0007ff90 of Length 0x00007ff0
[5/8/2020 09:19:20] [INFO] CortexR4: Verifying Flash @ Address 0x0007FF90 of length 0x00007FF0
[5/8/2020 09:19:20] [INFO] CortexR4: Writing Flash @ Address 0x00087f80 of Length 0x00007ff0
[5/8/2020 09:19:21] [INFO] CortexR4: Verifying Flash @ Address 0x00087F80 of length 0x00007FF0
[5/8/2020 09:19:21] [INFO] CortexR4: Writing Flash @ Address 0x0008ff70 of Length 0x00007ff0
[5/8/2020 09:19:22] [INFO] CortexR4: Verifying Flash @ Address 0x0008FF70 of length 0x00007FF0
[5/8/2020 09:19:22] [INFO] CortexR4: Writing Flash @ Address 0x00097f60 of Length 0x0000435c
[5/8/2020 09:19:22] [INFO] CortexR4: Verifying Flash @ Address 0x00097F60 of length 0x0000435C
[5/8/2020 09:19:22] [INFO] CortexR4: Writing Flash @ Address 0x0009c2c0 of Length 0x00000234
[5/8/2020 09:19:23] [INFO] CortexR4: Verifying Flash @ Address 0x0009C2C0 of length 0x00000234
[5/8/2020 09:19:23] [INFO] CortexR4: Writing Flash @ Address 0x0009c4f8 of Length 0x000005b4
[5/8/2020 09:19:23] [INFO] CortexR4: Verifying Flash @ Address 0x0009C4F8 of length 0x000005B4
[5/8/2020 09:19:24] [INFO] CortexR4: Writing Flash @ Address 0x0009cab0 of Length 0x00000080
[5/8/2020 09:19:24] [INFO] CortexR4: Verifying Flash @ Address 0x0009CAB0 of length 0x00000080
[5/8/2020 09:19:24] [INFO] CortexR4: Writing Flash @ Address 0xf0400000 of Length 0x00007ff0
[5/8/2020 09:19:24] [INFO] CortexR4: Writing Flash @ Address 0xf0407ff0 of Length 0x00007ff0
[5/8/2020 09:19:24] [INFO] CortexR4: Writing Flash @ Address 0xf040ffe0 of Length 0x00007ff0
[5/8/2020 09:19:24] [INFO] CortexR4: Writing Flash @ Address 0xf0417fd0 of Length 0x00007ff0
[5/8/2020 09:19:24] [INFO] CortexR4: Writing Flash @ Address 0xf041ffc0 of Length 0x00007ff0
[5/8/2020 09:19:24] [INFO] CortexR4: Writing Flash @ Address 0xf0427fb0 of Length 0x00007ff0
[5/8/2020 09:19:24] [INFO] CortexR4: Writing Flash @ Address 0xf042ffa0 of Length 0x00000060
[5/8/2020 09:19:24] [INFO] CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0 due to System Reset
[5/8/2020 09:19:27] [SUCCESS] Program Load completed successfully.

The log from console and the memory reading after the second programming is:

[5/8/2020 09:24:06] [INFO] CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0
[5/8/2020 09:24:12] [INFO] CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0 due to System Reset
[5/8/2020 09:24:12] [INFO] CortexR4: Writing Flash @ Address 0x00000000 of Length 0x00007ff0
[5/8/2020 09:24:12] [INFO] CortexR4: Using Range Mode with the following range(s): 0x0000000-0x0009FFFF,0x180000-0x2fffff,0x00400000-0x0044FFFF
[5/8/2020 09:24:15] [INFO] CortexR4: Erasing Flash Bank 0, Sector 0
[5/8/2020 09:24:15] [INFO] CortexR4: Erasing Flash Bank 0, Sector 1
[5/8/2020 09:24:16] [INFO] CortexR4: Erasing Flash Bank 0, Sector 2
[5/8/2020 09:24:16] [INFO] CortexR4: Erasing Flash Bank 0, Sector 3
[5/8/2020 09:24:16] [INFO] CortexR4: Erasing Flash Bank 0, Sector 4
[5/8/2020 09:24:16] [INFO] CortexR4: Erasing Flash Bank 0, Sector 5
[5/8/2020 09:24:17] [INFO] CortexR4: Erasing Flash Bank 0, Sector 6
[5/8/2020 09:24:17] [INFO] CortexR4: Erasing Flash Bank 0, Sector 7
[5/8/2020 09:24:17] [INFO] CortexR4: Erasing Flash Bank 1, Sector 0
[5/8/2020 09:24:18] [INFO] CortexR4: Erasing Flash Bank 1, Sector 1
[5/8/2020 09:24:18] [INFO] CortexR4: Erasing Flash Bank 1, Sector 2
[5/8/2020 09:24:18] [INFO] CortexR4: Erasing Flash Bank 1, Sector 3
[5/8/2020 09:24:18] [INFO] CortexR4: Erasing Flash Bank 1, Sector 4
[5/8/2020 09:24:19] [INFO] CortexR4: Erasing Flash Bank 1, Sector 5
[5/8/2020 09:24:19] [INFO] CortexR4: Erasing Flash Bank 1, Sector 6
[5/8/2020 09:24:19] [INFO] CortexR4: Erasing Flash Bank 1, Sector 7
[5/8/2020 09:24:19] [INFO] CortexR4: Erasing Flash Bank 1, Sector 8
[5/8/2020 09:24:20] [INFO] CortexR4: Erasing Flash Bank 1, Sector 9
[5/8/2020 09:24:20] [INFO] CortexR4: Erasing Flash Bank 1, Sector 10
[5/8/2020 09:24:20] [INFO] CortexR4: Erasing Flash Bank 1, Sector 11
[5/8/2020 09:24:21] [INFO] CortexR4: Verifying Flash @ Address 0x00000000 of length 0x00007FF0
[5/8/2020 09:24:21] [INFO] CortexR4: Writing Flash @ Address 0x00007ff0 of Length 0x00007ff0
[5/8/2020 09:24:23] [INFO] CortexR4: Verifying Flash @ Address 0x00007FF0 of length 0x00007FF0
[5/8/2020 09:24:23] [INFO] CortexR4: Writing Flash @ Address 0x0000ffe0 of Length 0x00007ff0
[5/8/2020 09:24:24] [INFO] CortexR4: Verifying Flash @ Address 0x0000FFE0 of length 0x00007FF0
[5/8/2020 09:24:24] [INFO] CortexR4: Writing Flash @ Address 0x00017fd0 of Length 0x00007ff0
[5/8/2020 09:24:25] [INFO] CortexR4: Verifying Flash @ Address 0x00017FD0 of length 0x00007FF0
[5/8/2020 09:24:25] [INFO] CortexR4: Writing Flash @ Address 0x0001ffc0 of Length 0x00007ff0
[5/8/2020 09:24:26] [INFO] CortexR4: Verifying Flash @ Address 0x0001FFC0 of length 0x00007FF0
[5/8/2020 09:24:26] [INFO] CortexR4: Writing Flash @ Address 0x00027fb0 of Length 0x00007ff0
[5/8/2020 09:24:27] [INFO] CortexR4: Verifying Flash @ Address 0x00027FB0 of length 0x00007FF0
[5/8/2020 09:24:27] [INFO] CortexR4: Writing Flash @ Address 0x0002ffa0 of Length 0x00007ff0
[5/8/2020 09:24:28] [INFO] CortexR4: Verifying Flash @ Address 0x0002FFA0 of length 0x00007FF0
[5/8/2020 09:24:28] [INFO] CortexR4: Writing Flash @ Address 0x00037f90 of Length 0x00007ff0
[5/8/2020 09:24:28] [INFO] CortexR4: Verifying Flash @ Address 0x00037F90 of length 0x00007FF0
[5/8/2020 09:24:29] [INFO] CortexR4: Writing Flash @ Address 0x0003ff80 of Length 0x00001198
[5/8/2020 09:24:29] [INFO] CortexR4: Verifying Flash @ Address 0x0003FF80 of length 0x00001198
[5/8/2020 09:24:29] [INFO] CortexR4: Writing Flash @ Address 0x00048000 of Length 0x00007ff0
[5/8/2020 09:24:30] [INFO] CortexR4: Verifying Flash @ Address 0x00048000 of length 0x00007FF0
[5/8/2020 09:24:30] [INFO] CortexR4: Writing Flash @ Address 0x0004fff0 of Length 0x00007ff0
[5/8/2020 09:24:31] [INFO] CortexR4: Verifying Flash @ Address 0x0004FFF0 of length 0x00007FF0
[5/8/2020 09:24:31] [INFO] CortexR4: Writing Flash @ Address 0x00057fe0 of Length 0x00007ff0
[5/8/2020 09:24:32] [INFO] CortexR4: Verifying Flash @ Address 0x00057FE0 of length 0x00007FF0
[5/8/2020 09:24:32] [INFO] CortexR4: Writing Flash @ Address 0x0005ffd0 of Length 0x00007ff0
[5/8/2020 09:24:33] [INFO] CortexR4: Verifying Flash @ Address 0x0005FFD0 of length 0x00007FF0
[5/8/2020 09:24:33] [INFO] CortexR4: Writing Flash @ Address 0x00067fc0 of Length 0x00007ff0
[5/8/2020 09:24:34] [INFO] CortexR4: Verifying Flash @ Address 0x00067FC0 of length 0x00007FF0
[5/8/2020 09:24:34] [INFO] CortexR4: Writing Flash @ Address 0x0006ffb0 of Length 0x00007ff0
[5/8/2020 09:24:34] [INFO] CortexR4: Verifying Flash @ Address 0x0006FFB0 of length 0x00007FF0
[5/8/2020 09:24:35] [INFO] CortexR4: Writing Flash @ Address 0x00077fa0 of Length 0x00007ff0
[5/8/2020 09:24:35] [INFO] CortexR4: Verifying Flash @ Address 0x00077FA0 of length 0x00007FF0
[5/8/2020 09:24:36] [INFO] CortexR4: Writing Flash @ Address 0x0007ff90 of Length 0x00007ff0
[5/8/2020 09:24:36] [INFO] CortexR4: Verifying Flash @ Address 0x0007FF90 of length 0x00007FF0
[5/8/2020 09:24:36] [INFO] CortexR4: Writing Flash @ Address 0x00087f80 of Length 0x00007ff0
[5/8/2020 09:24:37] [INFO] CortexR4: Verifying Flash @ Address 0x00087F80 of length 0x00007FF0
[5/8/2020 09:24:37] [INFO] CortexR4: Writing Flash @ Address 0x0008ff70 of Length 0x00007ff0
[5/8/2020 09:24:38] [INFO] CortexR4: Verifying Flash @ Address 0x0008FF70 of length 0x00007FF0
[5/8/2020 09:24:38] [INFO] CortexR4: Writing Flash @ Address 0x00097f60 of Length 0x0000435c
[5/8/2020 09:24:39] [INFO] CortexR4: Verifying Flash @ Address 0x00097F60 of length 0x0000435C
[5/8/2020 09:24:39] [INFO] CortexR4: Writing Flash @ Address 0x0009c2c0 of Length 0x00000234
[5/8/2020 09:24:39] [INFO] CortexR4: Verifying Flash @ Address 0x0009C2C0 of length 0x00000234
[5/8/2020 09:24:40] [INFO] CortexR4: Writing Flash @ Address 0x0009c4f8 of Length 0x000005b4
[5/8/2020 09:24:40] [INFO] CortexR4: Verifying Flash @ Address 0x0009C4F8 of length 0x000005B4
[5/8/2020 09:24:40] [INFO] CortexR4: Writing Flash @ Address 0x0009cab0 of Length 0x00000080
[5/8/2020 09:24:41] [INFO] CortexR4: Verifying Flash @ Address 0x0009CAB0 of length 0x00000080
[5/8/2020 09:24:41] [INFO] CortexR4: Writing Flash @ Address 0xf0400000 of Length 0x00007ff0
[5/8/2020 09:24:41] [INFO] CortexR4: Writing Flash @ Address 0xf0407ff0 of Length 0x00007ff0
[5/8/2020 09:24:41] [INFO] CortexR4: Writing Flash @ Address 0xf040ffe0 of Length 0x00007ff0
[5/8/2020 09:24:41] [INFO] CortexR4: Writing Flash @ Address 0xf0417fd0 of Length 0x00007ff0
[5/8/2020 09:24:41] [INFO] CortexR4: Writing Flash @ Address 0xf041ffc0 of Length 0x00007ff0
[5/8/2020 09:24:41] [INFO] CortexR4: Writing Flash @ Address 0xf0427fb0 of Length 0x00007ff0
[5/8/2020 09:24:41] [INFO] CortexR4: Writing Flash @ Address 0xf042ffa0 of Length 0x00000060
[5/8/2020 09:24:41] [INFO] CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0 due to System Reset
[5/8/2020 09:24:43] [SUCCESS] Program Load completed successfully.

Any suggestion?