7 posts / 0 new
Last post
andrewk
Offline
Last seen:6 years 2 months ago
加入:2014-01-22 15:13
Programming Algorithm

What should be used as the JLink programming algorithm in Keil?

Can't get programming to work using any existing algorithms. Flash programming always times out.

Using Keil 4.72 and J-Link ARM 4.80c.

AK_Dialog
Offline
Last seen:1 day 20 hours ago
工作人员
加入:2013-12-16 15:49
Programming Algorithm

Hi Andrew,

What are you trying to program? The internal PROM (OTP) inside the DA14580 BLE chip?
Our chip has a fuse based OTP on board and cannot be programmed with a flash programming algorithm.
With our SDK we deliver a tool, called 'SmartSnippets'. This (multifunctional) tool can be used to program the OTP.

Best regards,

Dialog Support Team.

andrewk
Offline
Last seen:6 years 2 months ago
加入:2014-01-22 15:13
Programming Algorithm

I am attempting to program the DA14580 motherboard and daughter board via the instructions specified in the ES4 user guide. What specific section of memory is being programmed is unclear to me at the moment.

I am an experienced programmer by trade and have used keil tools extensively in the past. The Cortex-M0 core can be seen by the J-link, but Keil appears to be missing the correct algorithm necessary to program the chip. It is the recommended environment in your dev kit, so it has to be possible.

We are doing development, so, correct me if I am wrong, but I do not believe I would want to write to a 'one-time' programmable section of memory.

AK_Dialog
Offline
Last seen:1 day 20 hours ago
工作人员
加入:2013-12-16 15:49
Programming Algorithm

Hi Andrew,

During the development phase the software is downloaded to the DA14580 SRAM area by the J-Link debugger. I assume that you are trying the 'peripheral' example.
Can you share with me the symptoms you experience? When you start the Keil debugger what is the value of the Program Counter (R15) and Stackpointer (R13).
Do you see output in the terminal window?

andrewk
Offline
Last seen:6 years 2 months ago
加入:2014-01-22 15:13
I cannot start the debugger.

I cannot download code at all, let alone start the debugger.

Does Keil work for you? If so, can you tell me what version of Keil you are using? In addition, can you go to:
Flash -> Configure Flash Tools -> Settings -> Flash Download Tab

And tell me what is listed under "Programming Algorithm" and the Start/Size of the RAM for the algorithm.

Thanks,
Andrew

andrewk
Offline
Last seen:6 years 2 months ago
加入:2014-01-22 15:13
Just talked on the phone to a

Just talked on the phone to a contact at dialog semi.

They mentioned that their programming algorithm window is empty. This is implied as well in the ES4 User guide.

Here is my output when trying to load code:

JLink info:
------------
DLL: V4.76e, compiled Sep 20 2013 16:06:28
Firmware: J-Link ARM Lite V8 compiled Jul 8 2013 18:37:55
Hardware: V8.00
S/N : 228203018
Feature(s) : GDB

* JLink Info: Found SWD-DP with ID 0x0BB11477
* JLink Info: Found Cortex-M0 r0p0, Little endian.
* JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
ROMTableAddr = 0xE00FF003

Target info:
------------
Device: Cortex-M0
VTarget = 2.976V
State of Pins:
TCK: 0, TDI: 0, TDO: 1, TMS: 1, TRES: 1, TRST: 1
Hardware-Breakpoints: 4
Software-Breakpoints: 8192
Watchpoints: 2
JTAG speed: 2000 kHz

No Algorithm found for: 00021000H - 00022B93H
No Algorithm found for: 20000000H - 20000167H
Erase skipped!
Error: Flash Download failed - "Cortex-M0"

AK_Dialog
Offline
Last seen:1 day 20 hours ago
工作人员
加入:2013-12-16 15:49
Programming Algorithm

For loading the code you cannot use the 'load' button in the Keil IDE. If you changed the setting in the IDE according the DA14580_ES4_User_Guide.pdf (6.4.1.3 - 6.4.1.5), build the code (F7) and start the debugger (CTRL+F5) then the code will be loaded into the SRAM of the DA14580 and you can start running the code (F5).

Dialog Support Team.

Topic locked