izmit escort escort ankara adana escort

 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: About sam-ba 3.1.4 config boot register failure
PostPosted: Sat Apr 15, 2017 2:32 am 
Offline

Joined: Thu Mar 16, 2017 12:30 pm
Posts: 19
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:
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:
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:
[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


Top
 Profile  
Reply with quote  
 Post subject: Re: About sam-ba 3.1.4 config boot register failure
PostPosted: Sat Apr 15, 2017 10:12 am 
Offline

Joined: Thu Mar 16, 2017 12:30 pm
Posts: 19
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?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron