Hello,
I am facing a rather odd issue when using Jlink, I have a code that I compile with two different compilers clang and gcc.
What I am observing is that if I use clang compiler and its startup script called startup_ARM_CLANG_CM7.s I get errors when trying to make break points or after the initialization as shown below
Display All
However, using the gcc compiler and the startup script called startup_ARM_GCC_CM7.S I don't see any issue there
Display All
So googling around I came across similar issue, where it is stated that Jlink has trouble with capitalization of the startup script, and files called xxx.s are not understood as those of xxx.S due to the small s as file extension. Could you let me know whether this may be an issue in my case too?
Thanks in advance,
I am facing a rather odd issue when using Jlink, I have a code that I compile with two different compilers clang and gcc.
What I am observing is that if I use clang compiler and its startup script called startup_ARM_CLANG_CM7.s I get errors when trying to make break points or after the initialization as shown below
Shell-Script
- Reading all registers
- Received monitor command: speed 4000
- Target interface speed set to 4000 kHz
- Received monitor command: flash breakpoints 1
- Flash breakpoints enabled
- Received monitor command: semihosting enable
- Semi-hosting enabled (Handle on BKPT)
- Received monitor command: semihosting IOClient 2
- Semihosting I/O set to GDB Client
- Downloading 16224 bytes @ address 0x00000000 - Verified OK
- Downloading 16256 bytes @ address 0x00003F60 - Verified OK
- Downloading 16096 bytes @ address 0x00007EE0 - Verified OK
- Downloading 16288 bytes @ address 0x0000BDC0 - Verified OK
- Downloading 16256 bytes @ address 0x0000FD60 - Verified OK
- Downloading 16256 bytes @ address 0x00013CE0 - Verified OK
- Downloading 16352 bytes @ address 0x00017C60 - Verified OK
- Downloading 11224 bytes @ address 0x0001BC40 - Verified OK
- Downloading 204 bytes @ address 0x20000000 - Verified OK
- Writing register (PC = 0x 44)
- Read 4 bytes @ address 0x00000044 (Data = 0xF802F000)
- Reading 64 bytes @ address 0x00001440
- Read 2 bytes @ address 0x0000145C (Data = 0xF240)
- Read 4 bytes @ address 0x00000286 (Data = 0xF04FD009)
- Reading 64 bytes @ address 0x20008000
- WARNING: Failed to read memory @ address 0x20008000
- WARNING: Failed to read memory @ address 0x20008024
- Reading 64 bytes @ address 0x20008000
- WARNING: Failed to read memory @ address 0x20008000
- WARNING: Failed to read memory @ address 0x20008024
- Reading 64 bytes @ address 0x20008000
- WARNING: Failed to read memory @ address 0x20008000
- WARNING: Failed to read memory @ address 0x20008024
- Reading 64 bytes @ address 0x20008000
However, using the gcc compiler and the startup script called startup_ARM_GCC_CM7.S I don't see any issue there
Shell-Script
- Reading all registers
- Setting breakpoint @ address 0x000002A6, Size = 2, BPHandle = 0x0001
- Setting breakpoint @ address 0x0000032C, Size = 2, BPHandle = 0x0002
- Starting target CPU...
- ...Breakpoint reached @ address 0x000002A6
- Reading all registers
- Removing breakpoint @ address 0x000002A6, Size = 2
- Removing breakpoint @ address 0x0000032C, Size = 2
- Read 4 bytes @ address 0x000002A6 (Data = 0x22004B60)
- Reading 64 bytes @ address 0x20007FC0
- Read 4 bytes @ address 0x000008CA (Data = 0xBD80BF00)
- Reading 64 bytes @ address 0x20007F80
- Reading 64 bytes @ address 0x20007C80
- Reading 64 bytes @ address 0x20007CC0
- Reading 64 bytes @ address 0x20007D00
- Reading 64 bytes @ address 0x20007D40
- Reading 64 bytes @ address 0x20007D80
- Reading 64 bytes @ address 0x20007DC0
- Reading 64 bytes @ address 0x20007E00
- Reading 64 bytes @ address 0x20007E40
- Reading 64 bytes @ address 0x20007E80
- Reading 64 bytes @ address 0x20007EC0
- Reading 64 bytes @ address 0x20007F00
- Reading 64 bytes @ address 0x20007F40
- Reading 64 bytes @ address 0x2000794
So googling around I came across similar issue, where it is stated that Jlink has trouble with capitalization of the startup script, and files called xxx.s are not understood as those of xxx.S due to the small s as file extension. Could you let me know whether this may be an issue in my case too?
Thanks in advance,
The post was edited 1 time, last by ndarkness ().