+ Post New Thread
Results 1 to 5 of 5
  1. #1
    Full Member level 4
    Points: 4,285, Level: 15
    Achievements:
    7 years registered

    Join Date
    Dec 2006
    Posts
    215
    Helped
    33 / 33
    Points
    4,285
    Level
    15

    SRAM WR pin is not anabled

    Hello,

    I'm working with 80c32 micro and I have a AM29F010 Flash and a HM6264 SRAM. I have this problem that when I turn on the circuit, the SRAM WR pin which comes from micro WR pin, is not enabled at all.

    What is the problem?

    Thank you.

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 76,326, Level: 67
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    15,478
    Helped
    3521 / 3521
    Points
    76,326
    Level
    67

    Re: SRAM WR pin is not anabled

    Hi,

    There are two primary causes: hardware or software.

    * hardware: not wired correctly
    * software: the software you use is not accessing the SRAM

    How can we know without useful information?

    Klaus
    Please don´t contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



    •   AltAdvertisement

        
       

  3. #3
    Full Member level 4
    Points: 4,285, Level: 15
    Achievements:
    7 years registered

    Join Date
    Dec 2006
    Posts
    215
    Helped
    33 / 33
    Points
    4,285
    Level
    15

    Re: SRAM WR pin is not anabled

    Quote Originally Posted by KlausST View Post
    Hi,

    There are two primary causes: hardware or software.

    * hardware: not wired correctly
    * software: the software you use is not accessing the SRAM

    How can we know without useful information?

    Klaus
    Thanks Klaus,

    Hardware I'm pretty sure about wiring, cuz at the startup the SRAM WR pin gets a few enable pulses but after that I don't see anything.
    About the software: I have a FLASH which has the program on it cuz 80c32 is ROMless. At the startup some instructions are loaded from FLASH to micro and I can see this clearly. After that the SRAM should start to get the rest of the program, but this doesn't happen since its WR pin is not enabled by micro at all.

    FYI, I have not written the program and I'm just testing it and I don't have the source code. The only thing I have is the HEX code.



    •   AltAdvertisement

        
       

  4. #4
    Super Moderator
    Points: 80,586, Level: 69
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    13,205
    Helped
    4410 / 4410
    Points
    80,586
    Level
    69

    Re: SRAM WR pin is not anabled

    It seems the initial code (the bootloader) is being loaded but from there it either isn't configuring the SRAM interface pins or it isn't starting the program loader for some reason. My first suspicion is a software problem but without the source code it would be difficult to track down.

    Assuming the SRAM bootloader is intact, the only other likely cause is the wiring between the 80C32 and SRAM is wrong, not necessarily defective but the pins are swapped over.

    A bootloader will almost certainly be written in machine code so disassembling it to verify its integrity should be fairly easy. The code must execute from the reset address so the entry point should be obvious.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



  5. #5
    Super Moderator
    Points: 258,547, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    45,138
    Helped
    13723 / 13723
    Points
    258,547
    Level
    100

    Re: SRAM WR pin is not anabled

    I would assume that the code is executed out of the flash memory rather moved to RAM. In this case, the RAM #WR signal won't be pulled low before a write access to XRAM memory happens in the code.

    To allow usage of the RAM as code memory, it must be read selected by #PSEN with some kind of banking logic switching between flash and RAM. Not impossible but rather unusual.

    If you want to discuss this in detail, you should provide a schematic of actual flash and RAM connections to 8032.



--[[ ]]--