CN0359 build source code

Hello,

I am working on building the CN0359 source code and am having issues. I have been able to program the board using j-trace with the provided bin file from the ADI website, but when I try to build the source code and program with the generated bin file the LCD stays blank and the excitation waveform is 10s of volts instead of the 1V when I program with the supplied bin file.

My development env is as follows.

Below is pretty old at this point. Current status is I have everything building in ubuntu on virtualbox and I can get a bin file to generate, but when I load it onto the CN0359 and reboot it the LCD stays blank and nothing happens. I have no idea how to debug this or what settings I should try to change. 

========================================================================================================================

Output from CDT Build Console

10:12:57 **** Incremental Build of configuration Release for project CN0359 ****
make -j4 all
'Building target: CN0359.elf'
'Invoking: Cross ARM C++ Linker'
arm-none-eabi-g++ -mcpu=cortex-m3 -mthumb -O3 -ffreestanding -fsingle-precision-constant -flto -g3 -T gcc_arm.ld -Xlinker --gc-sections -L"../ldscripts" -Wl,-Map,"CN0359.map" --specs=nano.specs -u _printf_float -u _scanf_float -o "CN0359.elf" ./source/system/cmsis/startup_ADuCM360.o ./source/system/cmsis/system_ADuCM360.o ./source/hal/drivers/ad8253.o ./source/hal/drivers/adc.o ./source/hal/drivers/buzzer.o ./source/hal/drivers/dac.o ./source/hal/drivers/dma.o ./source/hal/drivers/encoder.o ./source/hal/drivers/flash.o ./source/hal/drivers/lcd.o ./source/hal/drivers/pwm.o ./source/hal/drivers/uart.o ./source/hal/Exceptions.o ./source/hal/RTD.o ./source/hal/devices.o ./source/hal/syscalls.o ./source/hal/timer.o ./source/applications/dialog/AddressDialog.o ./source/applications/dialog/BaudRateDialog.o ./source/applications/dialog/CellConstantDialog.o ./source/applications/dialog/CoefficientDialog.o ./source/applications/dialog/ContrastDialog.o ./source/applications/dialog/Dialog.o ./source/applications/dialog/FirmwareDialog.o ./source/applications/dialog/FrequencyDialog.o ./source/applications/dialog/HoldTimeDialog.o ./source/applications/dialog/HomeDialog.o ./source/applications/dialog/SettingDialog.o ./source/applications/dialog/SetupTimeDialog.o ./source/applications/dialog/SplashDialog.o ./source/applications/dialog/VoltageDialog.o ./source/applications/command/cmd_cellconstant.o ./source/applications/command/cmd_coefficient.o ./source/applications/command/cmd_frequency.o ./source/applications/command/cmd_holdtime.o ./source/applications/command/cmd_poll.o ./source/applications/command/cmd_setuptime.o ./source/applications/command/cmd_voltage.o ./source/applications/main.o ./source/applications/message.o ./source/applications/uart_exec.o
'Finished building target: CN0359.elf'
' '
'Invoking: Cross ARM GNU Create Flash Image'
arm-none-eabi-objcopy -O binary "CN0359.elf" "CN0359.bin"
'Invoking: Cross ARM GNU Print Size'
arm-none-eabi-size --format=berkeley "CN0359.elf"
text data bss dec hex filename
76300 496 4116 80912 13c10 CN0359.elf
'Finished building: CN0359.siz'
'Finished building: CN0359.bin'
' '
' '

10:13:02 Build Finished. 0 errors, 0 warnings. (took 4s.331ms)

Also when I try to clean the project I get this error

10:27:39 **** Clean-only build of configuration Release for project CN0359 ****
make -j4 clean
rm -rf ./source/system/cmsis/startup_ADuCM360.o ./source/system/cmsis/system_ADuCM360.o ./source/hal/drivers/ad8253.o ./source/hal/drivers/adc.o ./source/hal/drivers/buzzer.o ./source/hal/drivers/dac.o ./source/hal/drivers/dma.o ./source/hal/drivers/encoder.o ./source/hal/drivers/flash.o ./source/hal/drivers/lcd.o ./source/hal/drivers/pwm.o ./source/hal/drivers/uart.o ./source/hal/Exceptions.o ./source/hal/RTD.o ./source/hal/devices.o ./source/hal/syscalls.o ./source/hal/timer.o ./source/applications/dialog/AddressDialog.o ./source/applications/dialog/BaudRateDialog.o ./source/applications/dialog/CellConstantDialog.o ./source/applications/dialog/CoefficientDialog.o ./source/applications/dialog/ContrastDialog.o ./source/applications/dialog/Dialog.o ./source/applications/dialog/FirmwareDialog.o ./source/applications/dialog/FrequencyDialog.o ./source/applications/dialog/HoldTimeDialog.o ./source/applications/dialog/HomeDialog.o ./source/applications/dialog/SettingDialog.o ./source/applications/dialog/SetupTimeDialog.o ./source/applications/dialog/SplashDialog.o ./source/applications/dialog/VoltageDialog.o ./source/applications/command/cmd_cellconstant.o ./source/applications/command/cmd_coefficient.o ./source/applications/command/cmd_frequency.o ./source/applications/command/cmd_holdtime.o ./source/applications/command/cmd_poll.o ./source/applications/command/cmd_setuptime.o ./source/applications/command/cmd_voltage.o ./source/applications/main.o ./source/applications/message.o ./source/applications/uart_exec.o CN0359.bin CN0359.siz ./source/system/cmsis/startup_ADuCM360.d ./source/system/cmsis/system_ADuCM360.d ./source/hal/drivers/ad8253.d ./source/hal/drivers/adc.d ./source/hal/drivers/buzzer.d ./source/hal/drivers/dac.d ./source/hal/drivers/dma.d ./source/hal/drivers/encoder.d ./source/hal/drivers/flash.d ./source/hal/drivers/lcd.d ./source/hal/drivers/pwm.d ./source/hal/drivers/uart.d ./source/hal/Exceptions.d ./source/hal/RTD.d ./source/hal/devices.d ./source/hal/syscalls.d ./source/hal/timer.d ./source/applications/dialog/AddressDialog.d ./source/applications/dialog/BaudRateDialog.d ./source/applications/dialog/CellConstantDialog.d ./source/applications/dialog/CoefficientDialog.d ./source/applications/dialog/ContrastDialog.d ./source/applications/dialog/Dialog.d ./source/applications/dialog/FirmwareDialog.d ./source/applications/dialog/FrequencyDialog.d ./source/applications/dialog/HoldTimeDialog.d ./source/applications/dialog/HomeDialog.d ./source/applications/dialog/SettingDialog.d ./source/applications/dialog/SetupTimeDialog.d ./source/applications/dialog/SplashDialog.d ./source/applications/dialog/VoltageDialog.d ./source/applications/command/cmd_cellconstant.d ./source/applications/command/cmd_coefficient.d ./source/applications/command/cmd_frequency.d ./source/applications/command/cmd_holdtime.d ./source/applications/command/cmd_poll.d ./source/applications/command/cmd_setuptime.d ./source/applications/command/cmd_voltage.d ./source/applications/main.d ./source/applications/message.d ./source/applications/uart_exec.d CN0359.elf
makefile:82: recipe for target 'clean' failed
process_begin: CreateProcess(NULL, rm -rf ./source/system/cmsis/startup_ADuCM360.o ./source/system/cmsis/system_ADuCM360.o ./source/hal/drivers/ad8253.o ./source/hal/drivers/adc.o ./source/hal/drivers/buzzer.o ./source/hal/drivers/dac.o ./source/hal/drivers/dma.o ./source/hal/drivers/encoder.o ./source/hal/drivers/flash.o ./source/hal/drivers/lcd.o ./source/hal/drivers/pwm.o ./source/hal/drivers/uart.o ./source/hal/Exceptions.o ./source/hal/RTD.o ./source/hal/devices.o ./source/hal/syscalls.o ./source/hal/timer.o ./source/applications/dialog/AddressDialog.o ./source/applications/dialog/BaudRateDialog.o ./source/applications/dialog/CellConstantDialog.o ./source/applications/dialog/CoefficientDialog.o ./source/applications/dialog/ContrastDialog.o ./source/applications/dialog/Dialog.o ./source/applications/dialog/FirmwareDialog.o ./source/applications/dialog/FrequencyDialog.o ./source/applications/dialog/HoldTimeDialog.o ./source/applications/dialog/HomeDialog.o ./source/applications/dialog/SettingDialog.o ./source/applications/dialog/SetupTimeDialog.o ./source/applications/dialog/SplashDialog.o ./source/applications/dialog/VoltageDialog.o ./source/applications/command/cmd_cellconstant.o ./source/applications/command/cmd_coefficient.o ./source/applications/command/cmd_frequency.o ./source/applications/command/cmd_holdtime.o ./source/applications/command/cmd_poll.o ./source/applications/command/cmd_setuptime.o ./source/applications/command/cmd_voltage.o ./source/applications/main.o ./source/applications/message.o ./source/applications/uart_exec.o CN0359.bin CN0359.siz ./source/system/cmsis/startup_ADuCM360.d ./source/system/cmsis/system_ADuCM360.d ./source/hal/drivers/ad8253.d ./source/hal/drivers/adc.d ./source/hal/drivers/buzzer.d ./source/hal/drivers/dac.d ./source/hal/drivers/dma.d ./source/hal/drivers/encoder.d ./source/hal/drivers/flash.d ./source/hal/drivers/lcd.d ./source/hal/drivers/pwm.d ./source/hal/drivers/uart.d ./source/hal/Exceptions.d ./source/hal/RTD.d ./source/hal/devices.d ./source/hal/syscalls.d ./source/hal/timer.d ./source/applications/dialog/AddressDialog.d ./source/applications/dialog/BaudRateDialog.d ./source/applications/dialog/CellConstantDialog.d ./source/applications/dialog/CoefficientDialog.d ./source/applications/dialog/ContrastDialog.d ./source/applications/dialog/Dialog.d ./source/applications/dialog/FirmwareDialog.d ./source/applications/dialog/FrequencyDialog.d ./source/applications/dialog/HoldTimeDialog.d ./source/applications/dialog/HomeDialog.d ./source/applications/dialog/SettingDialog.d ./source/applications/dialog/SetupTimeDialog.d ./source/applications/dialog/SplashDialog.d ./source/applications/dialog/VoltageDialog.d ./source/applications/command/cmd_cellconstant.d ./source/applications/command/cmd_coefficient.d ./source/applications/command/cmd_frequency.d ./source/applications/command/cmd_holdtime.d ./source/applications/command/cmd_poll.d ./source/applications/command/cmd_setuptime.d ./source/applications/command/cmd_voltage.d ./source/applications/main.d ./source/applications/message.d ./source/applications/uart_exec.d CN0359.elf, ...) failed.
make (e=2): The system cannot find the file specified.

make: [clean] Error 2 (ignored)
' '

10:27:40 Build Failed. 1 errors, 0 warnings. (took 510ms)

Should I be using a different IDE? Should I have specific settings in place? 

Any help would be appreciated!



Updated with current status
[edited by: rwatson at 10:21 PM (GMT -4) on 10 Sep 2020]
Parents
  • So I missed that in the instructions for setting up the debugger the startup initialization commands said

    monitor flash device = ADuCM362

    so I changed it to 

    monitor flash device = ADuCM360

    Not sure if that impacted why it seems to be programming over j-link now, but it does seem to be and gets into the debug screen.

    However once there

    It states "Target not available"

    Log from JlinkGDBServer

    Removing breakpoint @ address 0x0001C894, Size = 2
    Removing breakpoint @ address 0x00024B20, Size = 2
    WARNING: Failed to read memory @ address 0xDEADBEEE
    WARNING: Failed to read memory @ address 0xDEADBEEE
    GDB closed TCP/IP connection (Socket 220)
    Connected to 127.0.0.1
    Reading all registers
    ERROR: Cannot read register 0 (R0) while CPU is running
    ERROR: Cannot read register 1 (R1) while CPU is running
    ERROR: Cannot read register 2 (R2) while CPU is running
    ERROR: Cannot read register 3 (R3) while CPU is running
    ERROR: Cannot read register 4 (R4) while CPU is running
    ERROR: Cannot read register 5 (R5) while CPU is running
    ERROR: Cannot read register 6 (R6) while CPU is running
    ERROR: Cannot read register 7 (R7) while CPU is running
    ERROR: Cannot read register 8 (R8) while CPU is running
    ERROR: Cannot read register 9 (R9) while CPU is running
    ERROR: Cannot read register 10 (R10) while CPU is running
    ERROR: Cannot read register 11 (R11) while CPU is running
    ERROR: Cannot read register 12 (R12) while CPU is running
    ERROR: Cannot read register 13 (R13) while CPU is running
    ERROR: Cannot read register 14 (R14) while CPU is running
    ERROR: Cannot read register 15 (R15) while CPU is running
    ERROR: Cannot read register 16 (XPSR) while CPU is running
    ERROR: Cannot read register 17 (MSP) while CPU is running
    ERROR: Cannot read register 18 (PSP) while CPU is running
    ERROR: Cannot read register 24 (PRIMASK) while CPU is running
    ERROR: Cannot read register 25 (BASEPRI) while CPU is running
    ERROR: Cannot read register 26 (FAULTMASK) while CPU is running
    ERROR: Cannot read register 27 (CONTROL) while CPU is running
    WARNING: Failed to read memory @ address 0x000118A4
    WARNING: Failed to read memory @ address 0x0001BB1C
    WARNING: Failed to read memory @ address 0xDEADBEEE
    Received monitor command: flash device = ADuCM360
    Selecting device: ADuCM360
    Received monitor command: flash download=1
    Flash download enabled
    Received monitor command: flash breakpoints = 1
    Flash breakpoints enabled
    Received monitor command: clrbp
    Received monitor command: endian little
    Target endianess set to "little endian"
    Received monitor command: reset
    ERROR: Failed to halt CPU.
    Resetting target
    Received monitor command: halt
    Halting target CPU...
    ERROR: Cannot read register 15 (R15) while CPU is running
    ...Target halted (PC = 0x00000000)
    Received monitor command: sleep 10
    Sleep 10ms
    Received monitor command: speed auto
    Select auto target interface speed (2000 kHz)
    Downloading 12 bytes @ address 0x00008000
    Downloading 16208 bytes @ address 0x00008010
    Downloading 16080 bytes @ address 0x0000BF60
    Downloading 16080 bytes @ address 0x0000FE30
    Downloading 15936 bytes @ address 0x00013D00
    Downloading 16032 bytes @ address 0x00017B40
    Downloading 16064 bytes @ address 0x0001B9E0
    Downloading 15888 bytes @ address 0x0001F8A0
    Downloading 5236 bytes @ address 0x000236B0
    ERROR: Failed to prepare for programming.
    Could not preserve target memory.
    Cannot read register 16 (XPSR) while CPU is running
    Cannot read register 20 (CFBP) while CPU is running
    e CPU is running
    Cannot read register 20 (CFBP) while CPU is running
    e CPU is running
    Cannot read register 20 (CFBP) while CPU is running
    Cannot read register 0 (R0) while CPU is running
    Cannot read register 1 (R1) while CPU is running
    Cannot read register 2 (R2) while CPU is running
    Cannot read register 3 (R3) while CPU is running
    Cannot read register 4 (R4) while CPU is running
    Cannot read register 5 (R5) while CPU is running
    Cannot read register 6 (R6) while CPU is running
    Cannot read register 7 (R7) while CPU is running
    Cannot read register 8 (R8) while CPU is running
    Cannot read register 9 (R9) while CPU is running
    Cannot read register 10 (R10) while CPU is running
    Cannot read register 11 (R11) while CPU is running
    Cannot read register 12 (R12) while CPU is running
    Cannot read register 14 (R14) while CPU is running
    Cannot read regist
    Downloading 12 bytes @ address 0x00024B24
    Downloading 16352 bytes @ address 0x00024B30
    Downloading 3509 bytes @ address 0x00028B10
    Downloading 44 bytes @ address 0x00029A00
    Downloading 2424 bytes @ address 0x00029A2C
    Downloading 2304 bytes @ address 0x0002A3A4
    Downloading 4 bytes @ address 0x0002ACA4
    Downloading 76 bytes @ address 0x0003ACA8
    Downloading 4 bytes @ address 0x0003ACF4
    Downloading 2496 bytes @ address 0x0003ACF8
    Writing register (PC = 0x 80ac)
    Writing register (XPSR = 0xdfadbeef)
    WARNING: Failed to read memory @ address 0x000118A4
    WARNING: Failed to read memory @ address 0x0001BB1C
    WARNING: Failed to read memory @ address 0x000080AC
    Reading 64 bytes @ address 0x0001C880
    WARNING: Failed to read memory @ address 0x0001C880
    WARNING: Failed to read memory @ address 0x0001C894
    WARNING: Failed to read memory @ address 0x0001C894
    Reading 64 bytes @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BCA8
    WARNING: Failed to read memory @ address 0x0000BCA4
    Reading 64 bytes @ address 0x00024B00
    WARNING: Failed to read memory @ address 0x00024B00
    WARNING: Failed to read memory @ address 0x00024B20
    WARNING: Failed to read memory @ address 0x00024B20
    Reading 64 bytes @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BCA8
    Reading 64 bytes @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BCA8
    WARNING: Failed to read memory @ address 0x0000BCA4
    Setting breakpoint @ address 0x0000BCA4, Size = 2, BPHandle = 0x0160
    Setting breakpoint @ address 0x0001C894, Size = 2, BPHandle = 0x0161
    Setting breakpoint @ address 0x00024B20, Size = 2, BPHandle = 0x0162
    Starting target CPU...
    ERROR: CPU is not halted
    ERROR: Cannot read register 15 (R15) while CPU is running
    ...Target halted (DBGRQ, PC = 0x00000000)
    Reading all registers
    ERROR: Cannot read register 0 (R0) while CPU is running
    ERROR: Cannot read register 1 (R1) while CPU is running
    ERROR: Cannot read register 2 (R2) while CPU is running
    ERROR: Cannot read register 3 (R3) while CPU is running
    ERROR: Cannot read register 4 (R4) while CPU is running
    ERROR: Cannot read register 5 (R5) while CPU is running
    ERROR: Cannot read register 6 (R6) while CPU is running
    ERROR: Cannot read register 7 (R7) while CPU is running
    ERROR: Cannot read register 8 (R8) while CPU is running
    ERROR: Cannot read register 9 (R9) while CPU is running
    ERROR: Cannot read register 10 (R10) while CPU is running
    ERROR: Cannot read register 11 (R11) while CPU is running
    ERROR: Cannot read register 12 (R12) while CPU is running
    ERROR: Cannot read register 13 (R13) while CPU is running
    ERROR: Cannot read register 14 (R14) while CPU is running
    ERROR: Cannot read register 15 (R15) while CPU is running
    ERROR: Cannot read register 16 (XPSR) while CPU is running
    ERROR: Cannot read register 17 (MSP) while CPU is running
    ERROR: Cannot read register 18 (PSP) while CPU is running
    ERROR: Cannot read register 24 (PRIMASK) while CPU is running
    ERROR: Cannot read register 25 (BASEPRI) while CPU is running
    ERROR: Cannot read register 26 (FAULTMASK) while CPU is running
    ERROR: Cannot read register 27 (CONTROL) while CPU is running
    Removing breakpoint @ address 0x0000BCA4, Size = 2
    Removing breakpoint @ address 0x0001C894, Size = 2
    Removing breakpoint @ address 0x00024B20, Size = 2
    WARNING: Failed to read memory @ address 0xDEADBEEE
    Received monitor command: reg r13 = (0x00000000)
    Failed to read memory from address 0x00000000
    Received monitor command: reg pc = (0x00000004)
    Failed to read memory from address 0x00000004
    Reading 64 bytes @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BCA8
    Reading 64 bytes @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BCA8
    WARNING: Failed to read memory @ address 0x0000BCA4
    Setting breakpoint @ address 0x0000BCA4, Size = 2, BPHandle = 0x0163
    Setting breakpoint @ address 0x0001C894, Size = 2, BPHandle = 0x0164
    Setting breakpoint @ address 0x00024B20, Size = 2, BPHandle = 0x0165
    Starting target CPU...
    ERROR: CPU is not halted
    ERROR: Cannot read register 15 (R15) while CPU is running
    ...Target halted (DBGRQ, PC = 0x00000000)
    Debugger requested to halt target...
    Reading all registers
    ERROR: Cannot read register 0 (R0) while CPU is running
    ERROR: Cannot read register 1 (R1) while CPU is running
    ERROR: Cannot read register 2 (R2) while CPU is running
    ERROR: Cannot read register 3 (R3) while CPU is running
    ERROR: Cannot read register 4 (R4) while CPU is running
    ERROR: Cannot read register 5 (R5) while CPU is running
    ERROR: Cannot read register 6 (R6) while CPU is running
    ERROR: Cannot read register 7 (R7) while CPU is running
    ERROR: Cannot read register 8 (R8) while CPU is running
    ERROR: Cannot read register 9 (R9) while CPU is running
    ERROR: Cannot read register 10 (R10) while CPU is running
    ERROR: Cannot read register 11 (R11) while CPU is running
    ERROR: Cannot read register 12 (R12) while CPU is running
    ERROR: Cannot read register 13 (R13) while CPU is running
    ERROR: Cannot read register 14 (R14) while CPU is running
    ERROR: Cannot read register 15 (R15) while CPU is running
    ERROR: Cannot read register 16 (XPSR) while CPU is running
    ERROR: Cannot read register 17 (MSP) while CPU is running
    ERROR: Cannot read register 18 (PSP) while CPU is running
    ERROR: Cannot read register 24 (PRIMASK) while CPU is running
    ERROR: Cannot read register 25 (BASEPRI) while CPU is running
    ERROR: Cannot read register 26 (FAULTMASK) while CPU is running
    ERROR: Cannot read register 27 (CONTROL) while CPU is running
    Removing breakpoint @ address 0x0000BCA4, Size = 2
    Removing breakpoint @ address 0x0001C894, Size = 2
    Removing breakpoint @ address 0x00024B20, Size = 2
    WARNING: Failed to read memory @ address 0xDEADBEEE
    Reading 64 bytes @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BCA8
    WARNING: Failed to read memory @ address 0x0000BCA4
    Setting breakpoint @ address 0x0000BCA4, Size = 2, BPHandle = 0x0166
    Setting breakpoint @ address 0x0001C894, Size = 2, BPHandle = 0x0167
    Setting breakpoint @ address 0x00024B20, Size = 2, BPHandle = 0x0168
    Starting target CPU...
    ERROR: CPU is not halted
    ERROR: Cannot read register 15 (R15) while CPU is running
    ...Target halted (DBGRQ, PC = 0x00000000)
    Reading all registers
    ERROR: Cannot read register 0 (R0) while CPU is running
    ERROR: Cannot read register 1 (R1) while CPU is running
    ERROR: Cannot read register 2 (R2) while CPU is running
    ERROR: Cannot read register 3 (R3) while CPU is running
    ERROR: Cannot read register 4 (R4) while CPU is running
    ERROR: Cannot read register 5 (R5) while CPU is running
    ERROR: Cannot read register 6 (R6) while CPU is running
    ERROR: Cannot read register 7 (R7) while CPU is running
    ERROR: Cannot read register 8 (R8) while CPU is running
    ERROR: Cannot read register 9 (R9) while CPU is running
    ERROR: Cannot read register 10 (R10) while CPU is running
    ERROR: Cannot read register 11 (R11) while CPU is running
    ERROR: Cannot read register 12 (R12) while CPU is running
    ERROR: Cannot read register 13 (R13) while CPU is running
    ERROR: Cannot read register 14 (R14) while CPU is running
    ERROR: Cannot read register 15 (R15) while CPU is running
    ERROR: Cannot read register 16 (XPSR) while CPU is running
    ERROR: Cannot read register 17 (MSP) while CPU is running
    ERROR: Cannot read register 18 (PSP) while CPU is running
    ERROR: Cannot read register 24 (PRIMASK) while CPU is running
    ERROR: Cannot read register 25 (BASEPRI) while CPU is running
    ERROR: Cannot read register 26 (FAULTMASK) while CPU is running
    ERROR: Cannot read register 27 (CONTROL) while CPU is running
    Removing breakpoint @ address 0x0000BCA4, Size = 2
    Removing breakpoint @ address 0x0001C894, Size = 2
    Removing breakpoint @ address 0x00024B20, Size = 2

Reply
  • So I missed that in the instructions for setting up the debugger the startup initialization commands said

    monitor flash device = ADuCM362

    so I changed it to 

    monitor flash device = ADuCM360

    Not sure if that impacted why it seems to be programming over j-link now, but it does seem to be and gets into the debug screen.

    However once there

    It states "Target not available"

    Log from JlinkGDBServer

    Removing breakpoint @ address 0x0001C894, Size = 2
    Removing breakpoint @ address 0x00024B20, Size = 2
    WARNING: Failed to read memory @ address 0xDEADBEEE
    WARNING: Failed to read memory @ address 0xDEADBEEE
    GDB closed TCP/IP connection (Socket 220)
    Connected to 127.0.0.1
    Reading all registers
    ERROR: Cannot read register 0 (R0) while CPU is running
    ERROR: Cannot read register 1 (R1) while CPU is running
    ERROR: Cannot read register 2 (R2) while CPU is running
    ERROR: Cannot read register 3 (R3) while CPU is running
    ERROR: Cannot read register 4 (R4) while CPU is running
    ERROR: Cannot read register 5 (R5) while CPU is running
    ERROR: Cannot read register 6 (R6) while CPU is running
    ERROR: Cannot read register 7 (R7) while CPU is running
    ERROR: Cannot read register 8 (R8) while CPU is running
    ERROR: Cannot read register 9 (R9) while CPU is running
    ERROR: Cannot read register 10 (R10) while CPU is running
    ERROR: Cannot read register 11 (R11) while CPU is running
    ERROR: Cannot read register 12 (R12) while CPU is running
    ERROR: Cannot read register 13 (R13) while CPU is running
    ERROR: Cannot read register 14 (R14) while CPU is running
    ERROR: Cannot read register 15 (R15) while CPU is running
    ERROR: Cannot read register 16 (XPSR) while CPU is running
    ERROR: Cannot read register 17 (MSP) while CPU is running
    ERROR: Cannot read register 18 (PSP) while CPU is running
    ERROR: Cannot read register 24 (PRIMASK) while CPU is running
    ERROR: Cannot read register 25 (BASEPRI) while CPU is running
    ERROR: Cannot read register 26 (FAULTMASK) while CPU is running
    ERROR: Cannot read register 27 (CONTROL) while CPU is running
    WARNING: Failed to read memory @ address 0x000118A4
    WARNING: Failed to read memory @ address 0x0001BB1C
    WARNING: Failed to read memory @ address 0xDEADBEEE
    Received monitor command: flash device = ADuCM360
    Selecting device: ADuCM360
    Received monitor command: flash download=1
    Flash download enabled
    Received monitor command: flash breakpoints = 1
    Flash breakpoints enabled
    Received monitor command: clrbp
    Received monitor command: endian little
    Target endianess set to "little endian"
    Received monitor command: reset
    ERROR: Failed to halt CPU.
    Resetting target
    Received monitor command: halt
    Halting target CPU...
    ERROR: Cannot read register 15 (R15) while CPU is running
    ...Target halted (PC = 0x00000000)
    Received monitor command: sleep 10
    Sleep 10ms
    Received monitor command: speed auto
    Select auto target interface speed (2000 kHz)
    Downloading 12 bytes @ address 0x00008000
    Downloading 16208 bytes @ address 0x00008010
    Downloading 16080 bytes @ address 0x0000BF60
    Downloading 16080 bytes @ address 0x0000FE30
    Downloading 15936 bytes @ address 0x00013D00
    Downloading 16032 bytes @ address 0x00017B40
    Downloading 16064 bytes @ address 0x0001B9E0
    Downloading 15888 bytes @ address 0x0001F8A0
    Downloading 5236 bytes @ address 0x000236B0
    ERROR: Failed to prepare for programming.
    Could not preserve target memory.
    Cannot read register 16 (XPSR) while CPU is running
    Cannot read register 20 (CFBP) while CPU is running
    e CPU is running
    Cannot read register 20 (CFBP) while CPU is running
    e CPU is running
    Cannot read register 20 (CFBP) while CPU is running
    Cannot read register 0 (R0) while CPU is running
    Cannot read register 1 (R1) while CPU is running
    Cannot read register 2 (R2) while CPU is running
    Cannot read register 3 (R3) while CPU is running
    Cannot read register 4 (R4) while CPU is running
    Cannot read register 5 (R5) while CPU is running
    Cannot read register 6 (R6) while CPU is running
    Cannot read register 7 (R7) while CPU is running
    Cannot read register 8 (R8) while CPU is running
    Cannot read register 9 (R9) while CPU is running
    Cannot read register 10 (R10) while CPU is running
    Cannot read register 11 (R11) while CPU is running
    Cannot read register 12 (R12) while CPU is running
    Cannot read register 14 (R14) while CPU is running
    Cannot read regist
    Downloading 12 bytes @ address 0x00024B24
    Downloading 16352 bytes @ address 0x00024B30
    Downloading 3509 bytes @ address 0x00028B10
    Downloading 44 bytes @ address 0x00029A00
    Downloading 2424 bytes @ address 0x00029A2C
    Downloading 2304 bytes @ address 0x0002A3A4
    Downloading 4 bytes @ address 0x0002ACA4
    Downloading 76 bytes @ address 0x0003ACA8
    Downloading 4 bytes @ address 0x0003ACF4
    Downloading 2496 bytes @ address 0x0003ACF8
    Writing register (PC = 0x 80ac)
    Writing register (XPSR = 0xdfadbeef)
    WARNING: Failed to read memory @ address 0x000118A4
    WARNING: Failed to read memory @ address 0x0001BB1C
    WARNING: Failed to read memory @ address 0x000080AC
    Reading 64 bytes @ address 0x0001C880
    WARNING: Failed to read memory @ address 0x0001C880
    WARNING: Failed to read memory @ address 0x0001C894
    WARNING: Failed to read memory @ address 0x0001C894
    Reading 64 bytes @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BCA8
    WARNING: Failed to read memory @ address 0x0000BCA4
    Reading 64 bytes @ address 0x00024B00
    WARNING: Failed to read memory @ address 0x00024B00
    WARNING: Failed to read memory @ address 0x00024B20
    WARNING: Failed to read memory @ address 0x00024B20
    Reading 64 bytes @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BCA8
    Reading 64 bytes @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BCA8
    WARNING: Failed to read memory @ address 0x0000BCA4
    Setting breakpoint @ address 0x0000BCA4, Size = 2, BPHandle = 0x0160
    Setting breakpoint @ address 0x0001C894, Size = 2, BPHandle = 0x0161
    Setting breakpoint @ address 0x00024B20, Size = 2, BPHandle = 0x0162
    Starting target CPU...
    ERROR: CPU is not halted
    ERROR: Cannot read register 15 (R15) while CPU is running
    ...Target halted (DBGRQ, PC = 0x00000000)
    Reading all registers
    ERROR: Cannot read register 0 (R0) while CPU is running
    ERROR: Cannot read register 1 (R1) while CPU is running
    ERROR: Cannot read register 2 (R2) while CPU is running
    ERROR: Cannot read register 3 (R3) while CPU is running
    ERROR: Cannot read register 4 (R4) while CPU is running
    ERROR: Cannot read register 5 (R5) while CPU is running
    ERROR: Cannot read register 6 (R6) while CPU is running
    ERROR: Cannot read register 7 (R7) while CPU is running
    ERROR: Cannot read register 8 (R8) while CPU is running
    ERROR: Cannot read register 9 (R9) while CPU is running
    ERROR: Cannot read register 10 (R10) while CPU is running
    ERROR: Cannot read register 11 (R11) while CPU is running
    ERROR: Cannot read register 12 (R12) while CPU is running
    ERROR: Cannot read register 13 (R13) while CPU is running
    ERROR: Cannot read register 14 (R14) while CPU is running
    ERROR: Cannot read register 15 (R15) while CPU is running
    ERROR: Cannot read register 16 (XPSR) while CPU is running
    ERROR: Cannot read register 17 (MSP) while CPU is running
    ERROR: Cannot read register 18 (PSP) while CPU is running
    ERROR: Cannot read register 24 (PRIMASK) while CPU is running
    ERROR: Cannot read register 25 (BASEPRI) while CPU is running
    ERROR: Cannot read register 26 (FAULTMASK) while CPU is running
    ERROR: Cannot read register 27 (CONTROL) while CPU is running
    Removing breakpoint @ address 0x0000BCA4, Size = 2
    Removing breakpoint @ address 0x0001C894, Size = 2
    Removing breakpoint @ address 0x00024B20, Size = 2
    WARNING: Failed to read memory @ address 0xDEADBEEE
    Received monitor command: reg r13 = (0x00000000)
    Failed to read memory from address 0x00000000
    Received monitor command: reg pc = (0x00000004)
    Failed to read memory from address 0x00000004
    Reading 64 bytes @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BCA8
    Reading 64 bytes @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BCA8
    WARNING: Failed to read memory @ address 0x0000BCA4
    Setting breakpoint @ address 0x0000BCA4, Size = 2, BPHandle = 0x0163
    Setting breakpoint @ address 0x0001C894, Size = 2, BPHandle = 0x0164
    Setting breakpoint @ address 0x00024B20, Size = 2, BPHandle = 0x0165
    Starting target CPU...
    ERROR: CPU is not halted
    ERROR: Cannot read register 15 (R15) while CPU is running
    ...Target halted (DBGRQ, PC = 0x00000000)
    Debugger requested to halt target...
    Reading all registers
    ERROR: Cannot read register 0 (R0) while CPU is running
    ERROR: Cannot read register 1 (R1) while CPU is running
    ERROR: Cannot read register 2 (R2) while CPU is running
    ERROR: Cannot read register 3 (R3) while CPU is running
    ERROR: Cannot read register 4 (R4) while CPU is running
    ERROR: Cannot read register 5 (R5) while CPU is running
    ERROR: Cannot read register 6 (R6) while CPU is running
    ERROR: Cannot read register 7 (R7) while CPU is running
    ERROR: Cannot read register 8 (R8) while CPU is running
    ERROR: Cannot read register 9 (R9) while CPU is running
    ERROR: Cannot read register 10 (R10) while CPU is running
    ERROR: Cannot read register 11 (R11) while CPU is running
    ERROR: Cannot read register 12 (R12) while CPU is running
    ERROR: Cannot read register 13 (R13) while CPU is running
    ERROR: Cannot read register 14 (R14) while CPU is running
    ERROR: Cannot read register 15 (R15) while CPU is running
    ERROR: Cannot read register 16 (XPSR) while CPU is running
    ERROR: Cannot read register 17 (MSP) while CPU is running
    ERROR: Cannot read register 18 (PSP) while CPU is running
    ERROR: Cannot read register 24 (PRIMASK) while CPU is running
    ERROR: Cannot read register 25 (BASEPRI) while CPU is running
    ERROR: Cannot read register 26 (FAULTMASK) while CPU is running
    ERROR: Cannot read register 27 (CONTROL) while CPU is running
    Removing breakpoint @ address 0x0000BCA4, Size = 2
    Removing breakpoint @ address 0x0001C894, Size = 2
    Removing breakpoint @ address 0x00024B20, Size = 2
    WARNING: Failed to read memory @ address 0xDEADBEEE
    Reading 64 bytes @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BC80
    WARNING: Failed to read memory @ address 0x0000BCA8
    WARNING: Failed to read memory @ address 0x0000BCA4
    Setting breakpoint @ address 0x0000BCA4, Size = 2, BPHandle = 0x0166
    Setting breakpoint @ address 0x0001C894, Size = 2, BPHandle = 0x0167
    Setting breakpoint @ address 0x00024B20, Size = 2, BPHandle = 0x0168
    Starting target CPU...
    ERROR: CPU is not halted
    ERROR: Cannot read register 15 (R15) while CPU is running
    ...Target halted (DBGRQ, PC = 0x00000000)
    Reading all registers
    ERROR: Cannot read register 0 (R0) while CPU is running
    ERROR: Cannot read register 1 (R1) while CPU is running
    ERROR: Cannot read register 2 (R2) while CPU is running
    ERROR: Cannot read register 3 (R3) while CPU is running
    ERROR: Cannot read register 4 (R4) while CPU is running
    ERROR: Cannot read register 5 (R5) while CPU is running
    ERROR: Cannot read register 6 (R6) while CPU is running
    ERROR: Cannot read register 7 (R7) while CPU is running
    ERROR: Cannot read register 8 (R8) while CPU is running
    ERROR: Cannot read register 9 (R9) while CPU is running
    ERROR: Cannot read register 10 (R10) while CPU is running
    ERROR: Cannot read register 11 (R11) while CPU is running
    ERROR: Cannot read register 12 (R12) while CPU is running
    ERROR: Cannot read register 13 (R13) while CPU is running
    ERROR: Cannot read register 14 (R14) while CPU is running
    ERROR: Cannot read register 15 (R15) while CPU is running
    ERROR: Cannot read register 16 (XPSR) while CPU is running
    ERROR: Cannot read register 17 (MSP) while CPU is running
    ERROR: Cannot read register 18 (PSP) while CPU is running
    ERROR: Cannot read register 24 (PRIMASK) while CPU is running
    ERROR: Cannot read register 25 (BASEPRI) while CPU is running
    ERROR: Cannot read register 26 (FAULTMASK) while CPU is running
    ERROR: Cannot read register 27 (CONTROL) while CPU is running
    Removing breakpoint @ address 0x0000BCA4, Size = 2
    Removing breakpoint @ address 0x0001C894, Size = 2
    Removing breakpoint @ address 0x00024B20, Size = 2

Children
No Data