Hello!
I am working off of a custom board that has eeprom connected to it. I am trying to get debugging enabled on this board but am hitting some roadblocks. Hope you can help me out.
I erased my eeprom. Followed the same steps outlined in the document to start debugging but I see these errors:
Target info:
------------
Device: ARMCM0
VTarget = 2.995V
State of Pins:
TCK: 0, TDI: 1, TDO: 1, TMS: 1, TRES: 1, TRST: 1
Hardware-Breakpoints: 4
Software-Breakpoints: 8192
Watchpoints: 2
JTAG speed: 2000 kHz
No Algorithm found for: 20000000H - 2000009FH
No Algorithm found for: 20000160H - 20000323H
No Algorithm found for: 20000340H - 200003E3H
No Algorithm found for: 20000440H - 20005CDFH
Erase skipped!
Error: Flash Download failed - "Cortex-M0"
I am able to debug the sample example(proximity reporter) on my custom board after erasing eeprom and the scatter files I use are the same. So I am not very sure what is missing here. I scanned the project options and all configurations are the same for my app vs an example app. I dont why the debugger is trying to hit 20000000H when according to the scatterfile its supposed to be 20008000H. Any hints?
Hi vmore,
Regarding the error that you see is because you haven't specified in Keil that you will "Use External Tool for Flash Programming. In keil, go to the "Options for Target" in the "Utilities" tab and uncheck the "Use Target Driver for Flash programming" and check the "Use External Tool for flash programming".
Thanks, PM_Dialog
Ah, good catch!
OK... I understand. The error goes away if you select "Use External Tool..."
Can you please provide details as to what that external tool should be?
My initial guess is it would be something from the folder ~\SEGGER\JLink_v512e\ There are 20-something .EXE files in that folder.
外部工具应该规范ified, and what command-line parameters (if any)?
Should this have been included in the project setup?
Hi MarkJBina,
According to Keil environment, the Use External Tool for Flash Programming configuration is to enter options for third-party command-line based utilities that are not in the list of target drivers. Be aware that you will not be able to program our chips using Keil, so I am not able to suggest you any external tools. For programming either an internal or external SPI flash, it is highly recommended to use Smart Snippets toolbox and you can download it from our support page. Could you please clarify if you have designed a custom board with DA14580 or you are using any of our development kits?
Thanks, PM_Dialog