About sam-ba 3.1.4 config boot register failure

For SAMA5D2 Xplained, SAMA5D3 Xplained and SAMA5D4 Xplained

Moderator: nferre

xzp114
Posts: 23
Joined: Thu Mar 16, 2017 12:30 pm

About sam-ba 3.1.4 config boot register failure

Sat Apr 15, 2017 2:32 am

hi,
I used sam-ba_3.1.4 to config my board boot register, the hyperterminal display successful, but when i show boot config,obviously not yet.As fllow,

Code: Select all

CMD line:
sam-ba -p serial -d sama5d2 -a bootconfig -c writecfg:bscr:valid,bureg0 -c writecfg:bureg0:QSPI0_IOSET3,QSPI1_DISABLED,SPI0_DISABLED,SPI1_DISABLED,NFC_DISABLED,SDMMC0,SDMMC1_DISABLED,EXT_MEM_BOOT

sam-ba -x show-boot-config.qml

Code: Select all

hyperterminal Windows:
Applet 'BootConfig' from softpack 2.5 (v2.5).
Writing 0x00000004 to BSC CR
Writing 0x00040bfe to BUREG[0]

Applet 'BootConfig' from softpack 2.5 (v2.5).
BSCR: 0x00000004 -> BUREG_VALID BUREG_0
BUREG0: 0x00000000 -> QSPI_0_IOSET_1 QSPI_1_IOSET_1 SPI_0_IOSET_1 SPI_1_IOSET_1 NFC_IOSET_1 SDMMC_0 SDMMC_1 CONSOLE_UART1_IOSET_1 JTAG_IOSET_1
BUREG1: 0x00000000 -> QSPI_0_IOSET_1 QSPI_1_IOSET_1 SPI_0_IOSET_1 SPI_1_IOSET_1 NFC_IOSET_1 SDMMC_0 SDMMC_1 CONSOLE_UART1_IOSET_1 JTAG_IOSET_1
BUREG2: 0x00000000 -> QSPI_0_IOSET_1 QSPI_1_IOSET_1 SPI_0_IOSET_1 SPI_1_IOSET_1 NFC_IOSET_1 SDMMC_0 SDMMC_1 CONSOLE_UART1_IOSET_1 JTAG_IOSET_1
BUREG3: 0x00000000 -> QSPI_0_IOSET_1 QSPI_1_IOSET_1 SPI_0_IOSET_1 SPI_1_IOSET_1 NFC_IOSET_1 SDMMC_0 SDMMC_1 CONSOLE_UART1_IOSET_1 JTAG_IOSET_1
FUSE: 0x00040000 -> QSPI_0_IOSET_1 QSPI_1_IOSET_1 SPI_0_IOSET_1 SPI_1_IOSET_1 NFC_IOSET_1 SDMMC_0 SDMMC_1 CONSOLE_UART1_IOSET_1 JTAG_IOSET_1 EXT_MEM_BOOT*

Code: Select all

[quote]
show-boot-config.qml
[/quote]
import QtQuick 2.3
import SAMBA 3.1
import SAMBA.Connection.Serial 3.1
import SAMBA.Device.SAMA5D2 3.1

AppletLoader {
	connection: SerialConnection {
		//port: "ttyACM0"
		//port: "COM85"
		//baudRate: 57600
	}

	device: SAMA5D2 {
	}

	onConnectionOpened: {
		// initialize boot config applet
		appletInitialize("bootconfig")

		// read and display current BSCR/BUREG/FUSE values
		print("-- boot config --")
		printBootConfig()
	}

	// read and display current BSCR/BUREG/FUSE values
	function printBootConfig() {
		var bscr = appletReadBootCfg(BootCfg.BSCR)
		print("BSCR=" + Utils.hex(bscr, 8) + " / " + BSCR.toText(bscr))
		var bureg0 = appletReadBootCfg(BootCfg.BUREG0)
		print("BUREG0=" + Utils.hex(bureg0, 8) + " / " + BCW.toText(bureg0))
		var bureg1 = appletReadBootCfg(BootCfg.BUREG1)
		print("BUREG1=" + Utils.hex(bureg1, 8) + " / " + BCW.toText(bureg1))
		var bureg2 = appletReadBootCfg(BootCfg.BUREG2)
		print("BUREG2=" + Utils.hex(bureg2, 8) + " / " + BCW.toText(bureg2))
		var bureg3 = appletReadBootCfg(BootCfg.BUREG3)
		print("BUREG3=" + Utils.hex(bureg3, 8) + " / " + BCW.toText(bureg3))
		var fuse = appletReadBootCfg(BootCfg.FUSE)
		print("FUSE=" + Utils.hex(fuse, 8) + " / " + BCW.toText(fuse))
	}
}
Why? And my board cannot boot normally,it just printf"RomBOOT"

HW:Sama5d2 Xplained
xzp114
Posts: 23
Joined: Thu Mar 16, 2017 12:30 pm

Re: About sam-ba 3.1.4 config boot register failure

Sat Apr 15, 2017 10:12 am

I have solved this phenomenon, i found that it was something about the VDDBU (in sama5d2-Xplained board jumper JP6). When i open this jumper ,i found the boot register was lost. So i connected it and reset the boot register , the BUREG was right value i setted.I didnot know why? And my custom board must design a button cell like Evaluation Board?

Return to “SAMA5 Xplained”

Who is online

Users browsing this forum: Baidu [Spider] and 0 guests