TOP
SSV Software Systems Register  Register
Log in to check your private messages  Log in to check your private messages
Startseite FAQ Search Mitglieder Profile  Log in 
SSV Support-Forum
internes FLASH im DNP/5282

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/5280
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
fba



Joined: 06 Apr 2007
Posts: 1
Location: 1030 Wien

PostPosted: 27.04.2007, 12:05    Post subject: internes FLASH im DNP/5282 Reply with quote

Hallo,
ich benutze den DIL/NetPC DNP/5282 auf den EVA6 und möchte das interne FLASH mit dem
BDI2000 BDM Debug Interface von ABATRON programmieren.
Leider bekomme ich immer die Fehlermeldung:

BDI>prog 0 xpoll elf
Programming xpoll , please wait ....
- File offset 0x00002000 to address 0x00010000 size 98241
# Programming flash memory failed at 0x00000000

auch beim Löschen erhalte ich die Fehlermeldung
BDI>erase
Erasing flash at 0x00000000
# Erasing flash memory failed

Mein System auf dem EVA6 Board sieht folgendermaßen aus:
Mit Redbooot lade ich eine Applikation die im externene RAM läuft.
Diese Applikation programmiert in das interne FLASH eine weitere
Applikation und schaltet auf diese um. Dies funktioniert, aber
versuche ich das internen FLASH mit dem BDI2000 zu programmieren
habe ich keinen Erfolg.
Ich verwende dazu folgendes Konfigurationsfile:

; the initialistion list used to setup the target system
[INIT]
;
; Init SCM/Clock Module
WCREG 0xC05 0x20000001 ;RAMBAR: Internal SRAM at 0x20000000
WM16 0x40140000 0x000E ;WCR : Disable watchdog timer
WM16 0x40120000 0x2000 ;SYNCR : Speed-up PLL to 64MHz
DELAY 10 ;delay after changing the PLL
;
; Init Flash Module
;WCREG 0xC04 0xF0000121 ;FLASHBAR: Internal Flash at 0xf0000000
WCREG 0xC04 0x00000121 ;FLASHBAR: Internal Flash at 0x00000000
;WM8 0x401D0002 0x4A ;CFMCLKD : Flash clock divider for 32MHz
WM8 0x401D0002 0x54 ;CFMCLKD : Flash clock divider for 64MHz
WM32 0x401D0010 0x00000000 ;CFMPROT : disable flash protection
;
; Init Parallel Port
WM8 0x40100050 0xC0 ;PBCDPAR: Port B,C,D for D[23:0]
;
; Init Chip-Select Module
WM16 0x40000080 0xFFE0 ;CSAR0: Flash at 0xFFE00000 // for SSV EVA6 Board
WM16 0x4000008A 0x1580 ;CSCR0: Flash 5 waits, 16bit,
WM32 0x40000084 0x001F0001 ;CSMR0: Flash 2MB, R/W, valid
;
; Init SDRAM Controller (same as dBug)
WM16 0x40000040 0x023c ;DCR: // for SSV EVA6 Board
WM32 0x40000048 0x00001300 ;DACR0: base=0x00000000
WM32 0x4000004C 0x00FC0001 ;DMR0: mask=16MB; enable
WM32 0x40000048 0x00001308 ;DACR0: Initiate Precharge All Command
WM32 0x00000000 0xa5a59696 ;Execute PALL command
WM32 0x40000048 0x00009300 ;DACR0: enable refresh
DELAY 20 ;Delay for Refresh
WM32 0x40000048 0x00009340 ;DACR0: Initiate Mode Register Set Command
WM32 0x00000400 0xa5a59696 ;Execute MRS command
;
WAREG 7 0x000ffff0 ;set initial SP
WAREG 6 0x000ffff0 ;set initial FP
;
; === Define the valid memory map ===
MMAP 0x00000000 0x00FFFFFF ;Memory range for 16MB SDRAM
MMAP 0x10000000 0x100004FF ;Memory map for Internal Register
MMAP 0x20000000 0x2000FFFF ;Memory map for On-chip SRAM
MMAP 0x00000000 0x0007FFFF ;Memory map for On-chip FLASH
MMAP 0xFFE00000 0xFFFFFFFF ;Memory range for Flash ROM at CS0



[TARGET]
CPUTYPE MCF5282
CPUCLOCK 66000000 ;the CPU clock rate after processing the init list
BREAKMODE SOFT ;SOFT or HARD
VECTOR CATCH ;catch unhandled exceptions

[HOST]
;IP 10.10.1.100 ;Keytronix local for PC-20/1
IP 10.10.6.2 ;Keytronix local for PC-20/2
FILE c:/MCF/tmp
FORMAT ELF
LOAD MANUAL ;load code MANUAL or AUTO after reset

[FLASH]
WORKSPACE 0x20000000 ;workspace in target RAM for fast programming algorithm
CHIPTYPE CFM ;MCF5282 internal flash
CHIPSIZE 0x80000
BUSWIDTH 32 ;The width of the flash memory bus in bits (8 | 16 | 32)

FILE $xpoll
FORMAT ELF
ERASE 0x00000000 MASS
ERASE 0x04000000 MASS

;FILE E:\cygwin\home\bdidemo\coldfire\system.map
;FORMAT BIN 0x44040000
;ERASE 0x44040000 MASS

[REGS]
DMM1 0x40000000
FILE $reg5282.def

Kann mir bitte jemand helfen? Very Happy
Gruß, Franz
_________________
Franz Brandstätter
Keytronix
1030 Wien
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/5280 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum

SSV Software Systems GmbH

Dünenweg 5
30419 Hannover

Fon: +49(0)511  ·  40 000-0
Fax: +49(0)511  ·  40 000-40

sales@ssv-embedded.de


Impressum    ·    Datenschutz    ·    AGB

© 2023 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015