This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

lpc3250 emc boot

hi

i am trying to boot lpc3250 from emc (static memory cs0). using 2x16 parallel sst39lf800a.
flash is programmed correctly (reading validation code 0x13579bd2 at 0xe0000000). but it is not booting. how to proceed further?

and i also had i doubt in my linker setting.

link.sct:
--------

LR_ROM1 0xE0000000 0x00008000 { ; load region size_region ER_ROM1 0xE0000000 0x00008000 { ; load address = execution address *.o (RESET, +First) *(InRoot$$Sections) .ANY (+RO) } RW_IRAM1 0x08000000 0x00040000 { ; RW data .ANY (+RW +ZI) }
}

is this correct?

  • "how to proceed further?"

    Probably best to go back a step.

    Get the Keil sample NOR bootloader code from:

    \Keil4\ARM\Boards\Phytec\LPC3250\Bootloader_NOR

    add some debug code (possibly by using a serial port) and try that.

    "and i also had i doubt in my linker setting."

    Any part in particular? If your actual scatter file looks the same as the way it appears in your post, then it's definitely wrong!

  • thanks for ur immediate response.
    yes. i am trying this bootloader (Keil\ARM\Boards\Phytec\LPC3250\Bootloader_NOR) code only. debug code also added via serial port. but not running.

    my doubt in linker setting is start address of internal ram is

    " RW_IRAM1 0x08000000 " or

    " RW_IRAM1 0x00000000 " ?

    i tried both. no improvement.

    can u tell me what is the wrong in my linker file?

    waiting for ur reply.

    thanks in advance.

  • start address of internal ram

    What does the user manual tell you?!

  • "can u tell me what is the wrong in my linker file?"

    No. The mapping will in part depend upon how you've configured the startup file - Like whether you've selected REMAP of the internal RAM.

    Chapter 34 of the LPC32x0 user manual describes the boot process very well.

    First off, you need to determine whether it's getting into the 2nd level bootstrap code at all. So consider adding some debug to the startup code and see how far it's getting.

  • by default boot_map is located to irom (0x00000000 to 0x03ffffff) .

    if the boot map reg is set to 1 then it is iram (0x00000000 to 0x03ffffff).

    arm execution starts at location 0. after reset boot map reg will be set to 1 by processor. so it

    will be iram.

    and one more iram & irom is there (0x8000000 to 0x0bffffff). here only i am confused.

    i tried both iram (0x00000000 and 0x8000000). but no result.

    finally if i set 0x8000000 "CS0 and EMC_OE" signal is continuously going to flash , but no

    output <\b>. next???

  • "arm execution starts at location 0."

    Yes it does ... But, your 2nd level bootstrap loader doesn't.

    "after reset boot map reg will be set to 1 by processor"

    Yes ... as is clearly shown in the flowchart for the boot process.

    "here only i am confused."

    Sorry, but I don't think that is the only place. The IRAM is mapped to two areas.

    "... but no output..."

    No output of what?

    "next???"

    You need to consider what might be going wrong and see if you can find any evidence of it.

    Obviously, you need to consider debug code early in the startup of your 2nd level bootloader.

  • "give some solution"

    WTF!?

    Demands like that won't work with me.

  • This forum does not have a host of payed people who works with supplying solutions.

    Answers you receive are from other end users.

    And if you do want people to help you, it's _way_ better to be polite and try to interest people in helping you. Trying to demand help is a very efficient way to get people to ignore you. What would you do if someone you meet outside your home demans that you give them the solution to a problem they may have?

  • i know that ur reply wont help. posting thread to this forum is waste of time.

    thank u. good bye. mistake is mine . sorry.

  • i am not demanding . may be the way of asking question is looks like demand. thank u.

  • am not demanding .

    Oh yes, you are. You may not have intended to (although your reaction elsewhere in this discussion rather suggests otherwise), but you are.

    may be the way of asking question is looks like demand.

    You were not asking a question. You wrote this:

    Give some solution

    No question mark, no "please", no nothing. All there is is a statement written in the imperative. Yes, that means it's a demand.

    The only ever so slightly redeeming aspect of yours is that you refrained from decorating it with the increasingly common truckload of "!" that youngsters these says seem to believe is correct spelling.

    If you really want people to tolerate being talked to like that, get ready to pay for that privilege. The consultants' data base is just a couple clicks away.