Hi,
When I try to erase the flash of a custom CC2538NF11 board based on the CC2538EM I get a weird error saying: "The flash loader program reported an error" with no further explanation. I am using IAR and the XDS100v3 found on the SmartRF06 board to debug via JTAG. I can get it to work on the CC2538EM (which uses the CC2538SF53).
Here is the whole debug log:
Tue Jul 07, 2015 10:25:00: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.2\arm\config\debugger\TexasInstruments\
CC2538.dmac
Tue Jul 07, 2015 10:25:00: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.2\arm\config\flashloader\TexasInstruments\
FlashCC2538.mac
Tue Jul 07, 2015 10:25:01: Connecting to TI XDS100 (Probe no: 06EB12100B22)
Tue Jul 07, 2015 10:25:02: TI XDS ARM, device revision: 0x00000001, big endian: false, cache: false, board revision: 0x00000000, driver revision:
0x0B020200
Tue Jul 07, 2015 10:25:03: Initial reset was performed
Tue Jul 07, 2015 10:25:03: 416 bytes downloaded and verified (3.73 Kbytes/sec)
Tue Jul 07, 2015 10:25:03: Loaded debugee: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.2\arm\config\flashloader\TexasInstruments\
FlashCC2538RAM16K.out
Tue Jul 07, 2015 10:25:03: Target reset
Tue Jul 07, 2015 10:25:06: Unloaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.2\arm\config\flashloader\
TexasInstruments\FlashCC2538.mac
Tue Jul 07, 2015 10:25:06: The flash loader program reported an error.
I have set the device to the CC2538NF in the general options of the project and reinstalled the drivers.
Also, when I press download and debug, it seems as if it flashes correctly, no errors or anything, but when I go to debug it isn't running the program, it is just looping with random assembly instructions.
Any help would be greatly appreciated.