Problems after trying to initialize SDRAM

Comments

3 comments

  • Avatar
    Ben Rector

    I was able to stop the debugger at a break point just before my init function, and I hit the reset icon up in the debug window, and magically all of the registers reset. I was able to work for a while, and then crossworks crashed, and now all of the registers say 0xFEFEFEFE and I can't get them to reset again?

    0
    Comment actions Permalink
  • Avatar
    Ben Rector

    When I use my cross connect it at least downloads the program and reads bad register values, but when I use my JLINK it says : cannot find debug component in ROM table. So I used the jlink tools and I get the following:

    Info: Could not measure total IR len. TDO is constant high.
    Info: Could not measure total IR len. TDO is constant high.
    No devices found on JTAG chain. Trying to find device on SWD.
    No device found on SWD.
    Did not find any core.
    Info: Could not measure total IR len. TDO is constant high.
    Info: Could not measure total IR len. TDO is constant high.
    No devices found on JTAG chain. Trying to find device on SWD.
    No device found on SWD.
    Did not find any core.

     

    The start up program still works and the LEDs chase each other, does anyone have a clue what is going on?

    0
    Comment actions Permalink
  • Avatar
    frank meyer

    Does your code reuse the JTAG/SWD pins as GPIO (or for anything else) ?

    With external SDRAM you probably refer to the FSMC (at least that is its name in the ST world, the ext. memory interface unit). I would at least try to start with a rather conservative timing. Maybe you have set it too tight.

    On one thing I quite early stumbled upon in Crossworks are stack overflows. The default value the Rowley boys are granting for Cortex M3/M4 are a meager 128 byte. That is far too few for any decent application.

    Otherwise it's quite hard to judge your problem from far...

    0
    Comment actions Permalink

Please sign in to leave a comment.