Programming OTP with JTAG

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
10 posts / 0 new
Last post
mbwjr12
Offline
Last seen: 10 months 2 weeks ago
Joined: 2015-11-05 18:33
Programming OTP with JTAG

Dear Dialog,

Are there examples for programming the OTP directly with a JTAG debugger? We have our own production setup where it is preferable to program over SWD instead of a UART download.

 

I am familiar with the OTP layout of the Smart Snippets Toolbox which is what we are currently using. I am looking for something like a JLink script to burn the hex file to OTP and set both application programmed flags to true in one quick step.

 

Thanks,

Mike

Keywords: 
Device: 
Martin.Ge
Offline
Last seen: 9 months 5 days ago
Staff
Joined: 2020-01-06 06:51
Hi mbwjr12, 

Hi mbwjr12, 

Since you are familiar with ToolBox, and if your production setup equiped with JTAG debugger like Jlink, you can choose command line implementation of SmartSnippets™ Toolbox to burn hex file to OTP :

http://lpccs-docs.dialog-semiconductor.com/UM-B-083/cli/command_line_if....

This might be helpful for your needs. 

Br 

Martin

mbwjr12
Offline
Last seen: 10 months 2 weeks ago
Joined: 2015-11-05 18:33
For others with this question

For others with this question, here is a bash script that programs a hex file to the DA14531 OTP and sets the application present headers in the OTP header correctly so it boots.

Is there a way to disable the Y/N question about programming the OTP? I tried creating a ~/properties.txt file with DISABLEVALIDATIONS=true.

 

#!/bin/bash

JTAG=504401693
SSS=/home/mike/Projects/DiaSemi/SmartSnippetsStudio2.0.14/
JAVA=${SSS}/jre/bin/java
SST=${SSS}/Toolbox/SmartSnippetsToolbox.jar
FIRMWARE=${SSS}/Toolbox/common_resources/SupportPackages/DA1453x/toolbox_resources/common/jtag_programmer_531.bin

if [ $# -eq 0 ]; then
	echo "Must supply firmware filename"
	exit
fi

#Flash Firmware to OTP
$JAVA -jar $SST -type otp -chip DA14531 -jtag ${JTAG} -firmware ${FIRMWARE} -cmd write_custom_code -file $1 

#Flash Application Present Header #1 & #2 to OTP
#Header 1: 0x7F87FC0 Header 2: 0x7F87FC4
#Starting address is 0x7F80000 so the offset is from there
$JAVA -jar $SST -type otp -chip DA14531 -jtag ${JTAG} -firmware ${FIRMWARE} -cmd write_field -offset 0x7FC0 -data 0xA5A534123412A5A5

 

PM_Dialog
Offline
Last seen: 2 days 10 hours ago
Staff
Joined: 2018-02-08 11:03
Hi mbwjr12,

Hi mbwjr12,

Thanks for accepting Martin’s answer.

>> Is there a way to disable the Y/N question about programming the OTP?

Can you please clarify this statement?

Thanks, PM_Dialog

mbwjr12
Offline
Last seen: 10 months 2 weeks ago
Joined: 2015-11-05 18:33
The command line tool asks

The command line tool asks this question when the OTP header is burned. It must be manually answered, and I would like to automate it. I could script it with the bash 'yes' command, but I would prefer to just disable the question.

 

You are going to write part of the header. Do you want to procceed? ([Y / N]?)

 

Miracle Thomas
Offline
Last seen: 11 months 3 weeks ago
Joined: 2020-12-09 15:40
Pls how do I install the

Pls how do I install the bluetooth low energy tools on a non bluetooth device for power transmission

PM_Dialog
Offline
Last seen: 2 days 10 hours ago
Staff
Joined: 2018-02-08 11:03
Hi Miracle Thomas,

Hi Miracle Thomas,

Thanks for your comment. Could you please clarify what you are trying to do? Do you mean the SmartSnippets Toolbox and Studio?

Would it be possible to create a new forum thread?

Thanks, PM_Dialog

Miracle Thomas
Offline
Last seen: 11 months 3 weeks ago
Joined: 2020-12-09 15:40
What i mean is that I have a

What i mean is that I have a non- bluetooth device that I want to use it for  low energy transmission but the problem is that it's not bluetooth enabled, so can I install a bluetooth receiver on that device so that I can use a dialog snartbond bluetooth low energy tools to transfer power from the transmitter to the new bluetooth embedded device.

PM_Dialog
Offline
Last seen: 2 days 10 hours ago
Staff
Joined: 2018-02-08 11:03
Hi Miracle Thomas,

Hi Miracle Thomas,

You could use the DA14531 TINY module for the BLE functionalities.

https://www.dialog-semiconductor.com/products/bluetooth-module-da14531-smartbond-tiny

If you have any follow-up questions, please raise a new forum ticket.

Thanks, PM_Dialog

jimsona
Offline
Last seen: 10 months 2 weeks ago
Joined: 2021-01-21 04:03
The IRMCK3xx has a single

The IRMCK3xx has a single JTAG port that can be used to either debug the embedded 8051 microprocessor or to program the OTP memory. To program the memory the controller must be put into 'Test Mode'. Once in this mode the OTP memory will be available the JTAG interface. If you need more help for calculating your birth year then click here

dopeguides.com/venus-sign-calculator/