Advertisement
Guest User

flash_programming

a guest
Oct 12th, 2018
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1.  
  2. SYStem.LOG.off
  3. system.LOG.clear
  4. SYStem.LOG.list
  5. SYStem.LOG.OPEN /home/leroy/flash.log
  6. SYStem.LOG.on
  7.  
  8. PRINT "resetting..."
  9.  
  10. SYStem.Down
  11. TASK.RESet
  12. Break.Delete
  13. MAP.RESet
  14. sYmbol.RESet
  15. TRANSlation.RESet
  16. ; Initializing Debugger
  17. PRINT "initializing..."
  18. SYStem.CPU PXA270
  19. SYStem.Option TRST OFF ; necessary for the phyCORE board
  20. SYStem.Option WaitReset ON ; necessary for the phyCORE board
  21. SYStem.Option DACR ON ; give Debugger global write permissions
  22. SYStem.Option DynVector OFF ; automatic detection of vector table move
  23. TrOnchip.Set DABORT OFF ; used by Linux for page miss!
  24. TrOnchip.Set PABORT OFF ; used by Linux for page miss!
  25. TrOnchip.Set UNDEF OFF ; used by Linux for FPU detection
  26. SYStem.Option MMUSPACES OFF ; disable space ids to virtual addresses
  27. SYStem.JtagClock 4.0MHz ; 25.0MHz may cause troubles
  28.  
  29. SYStem.Up
  30.  
  31. ; Set Memory settings
  32. PER.Set.simple ASD:0x48000008 %Long 0x7FFC35B2 ; MSC0
  33. PER.Set.simple ASD:0x4800000C %Long 0x128C128C ; MSC1
  34. PER.Set.simple ASD:0x48000010 %Long 0x236C1281 ; MSC2
  35. PER.Set.simple ASD:0x48000000 %Long 0x08000AC9 ; MDCNFG
  36. PER.Set.simple ASD:0x48000004 %Long 0x01018018 ; MDREFR
  37. PER.Set.simple ASD:0x48000040 %Long 0x00000000 ; MDMRS
  38. PER.Set.simple ASD:0x4800001C %Long 0x00000000 ; SXCNFG
  39.  
  40. ; external bus interface
  41. FLASH.RESet
  42. ; reset the FLASH declaration
  43. FLASH.CFI 0x00000000 L
  44. ; declare FLASH sectors via
  45. ; CFI query
  46. ;FLASH.CHANGEtype ALL AM29F100
  47. ; change type to AM29F100 to use "word wise" mode
  48. FLASH.UNLOCK ALL
  49. ; unlock FLASH if required
  50. FLASH.ReProgram ALL
  51. ; enable the FLASH for programming
  52. ;Data.LOAD.auto /home/lai/devel/uboot-2017-01/u-boot.bin
  53. Data.LOAD.binary /tftpboot/u-boot-rioms-pxa270.bin D:0x00000000--0x1FFFF
  54. ; load the programming file
  55. FLASH.ReProgram off
  56. ; program the FLASH and disable
  57. ; the FLASH programming
  58.  
  59.  
  60. SYStem.LOG.off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement