2011-05-03 06:21:05     How is SDRAM Controller initialized when using Eclipse for Bare metal?

Document created by Aaronwu Employee on Oct 16, 2013
Version 1Show Document
  • View in full screen mode

2011-05-03 06:21:05     How is SDRAM Controller initialized when using Eclipse for Bare metal?

Prasanth Rajagopal (INDIA)

Message: 100371   

 

How is the SDC intialized? I created a simple application, went to debug mode and I saw that the SDC registers -SDGCTL, SBCTL & SDRRC are initialized properly. I tried some search, but could not find the exact place where these registers are written in to.

 

For example in VDSP, I know that the emulator programs these registers upon session initializations & emulator resets & I also know the exact XML files they are accessed from, and how to change them. I would like to understand the same in an Eclipse based setup for bare metal application.

 

- Prasanth

QuoteReplyEditDelete

 

 

2011-05-03 06:32:56     Re: How is SDRAM Controller initialized when using Eclipse for Bare metal?

Prasanth Rajagopal (INDIA)

Message: 100372   

 

Attached screenshot should explain what I meant. I would like to know from where these registers got programmed (which is basically a must before the emulator tries to put any object in to sdram locations).

 

eclipse.jpg

QuoteReplyEditDelete

 

 

2011-05-03 12:19:04     Re: How is SDRAM Controller initialized when using Eclipse for Bare metal?

Mike Frysinger (UNITED STATES)

Message: 100387   

 

the default startup objects probably initialize things

 

eclipse itself does nothing like vdsp

QuoteReplyEditDelete

 

 

2011-05-03 14:14:50     Re: How is SDRAM Controller initialized when using Eclipse for Bare metal?

Prasanth Rajagopal (INDIA)

Message: 100388   

 

Could you tell me which startup objects?

 

Thanks

QuoteReplyEditDelete

 

 

2011-05-03 14:23:07     Re: How is SDRAM Controller initialized when using Eclipse for Bare metal?

Prasanth Rajagopal (INDIA)

Message: 100389   

 

Wondering if it is the CRT start up code you mentioned. But in that case, unless that code is run, the SDC wont be initialized.

QuoteReplyEditDelete

 

 

2011-05-03 14:35:09     Re: How is SDRAM Controller initialized when using Eclipse for Bare metal?

Mike Frysinger (UNITED STATES)

Message: 100390   

 

use the -v option to see the actual final link info

QuoteReplyEditDelete

 

 

2011-05-03 14:36:31     Re: How is SDRAM Controller initialized when using Eclipse for Bare metal?

Mike Frysinger (UNITED STATES)

Message: 100391   

 

whatever is on the board is doing it then before you connect.  perhaps you have u-boot auto booting.  nothing in eclipse itself touches the hardware.

QuoteReplyEditDelete

 

 

2011-05-04 07:40:50     Re: How is SDRAM Controller initialized when using Eclipse for Bare metal?

Prasanth Rajagopal (INDIA)

Message: 100417   

 

You are right. I had made the bmode as flash boot on BF533 Kit and it was booting some other code. I changed to spi boot and the values are not initialized now.

 

Thanks

Attachments

Outcomes