I bought the JLink EDU because I'm interested in learning how to write my own bootloader. I'm running Linux and have installed the JLink utilities from the .deb provided by Segger.
I purchased an Aruduino clone with a Cortex M0 on it. I'm able to connect to it, read registers, halt it. etc. However anytime I try to load a firmware to it all I get is "Unspecified error -1". This isn't very helpful unfortunately and I can't seem to find a way to get more verbose output.
Here's an example from invoking JLinkeExe on my command line:
Display All
Any thoughts? Things to try? This is a known working .hex file, I just wanted to confirm I can flash anything at all.
I purchased an Aruduino clone with a Cortex M0 on it. I'm able to connect to it, read registers, halt it. etc. However anytime I try to load a firmware to it all I get is "Unspecified error -1". This isn't very helpful unfortunately and I can't seem to find a way to get more verbose output.
Here's an example from invoking JLinkeExe on my command line:
Shell-Script
- Connecting to target via SWD
- Found SW-DP with ID 0x0BC11477
- Scanning AP map to find all available APs
- AP[1]: Stopped AP scan as end of AP map has been reached
- AP[0]: AHB-AP (IDR: 0x04770031)
- Iterating through AP map to find AHB-AP to use
- AP[0]: Core found
- AP[0]: AHB-AP ROM base: 0x41003000
- CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)
- Found Cortex-M0 r0p1, Little endian.
- FPUnit: 4 code (BP) slots and 0 literal slots
- CoreSight components:
- ROMTbl[0] @ 41003000
- ROMTbl[0][0]: E00FF000, CID: B105100D, PID: 000BB4C0 ROM Table
- ROMTbl[1] @ E00FF000
- ROMTbl[1][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
- ROMTbl[1][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
- ROMTbl[1][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
- ROMTbl[0][1]: 41006000, CID: B105900D, PID: 001BB932 MTB-M0+
- Cortex-M0 identified.
- J-Link>loadfile baremetal.hex
- Downloading file [baremetal.hex]...
- Unspecified error -1
- J-Link>
Any thoughts? Things to try? This is a known working .hex file, I just wanted to confirm I can flash anything at all.
The post was edited 2 times, last by satisfied_ghost ().