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

code works in debug mode on target but fails in stand alone from flash

We are working on a project in which we write some data on to a dual port RAM and we read back the same during various instants of time.

When we run the program in debug mode it works perfectly fine. But when we flash the same to the board and power on the board we get only zeroes while reading from Dual port RAM.

We couldnot understand the reason for this peculiar problem. We would be greatly obliged if you help up to come out of this critical issue.

  • So - you haven't really given us any information for us to ponder.

    We do not know what hardware you have.

    We do not know how you have configured that hardware - is that dual-ported memory always available or does it require some initialization, i.e. setting of mode bits or similar?

    You say "debug mode", but don't really tell us what that is. But since you later talk about flashing, we could assume that "debug mode" is simulation of the hardware. But it could just as well be that you with "debug mode" means running on the real hardware, but just download the program into RAM. There is obviously a big difference between simulating and running the program in the real hardware.

    Always supply enough information so a reader will actually know what you are doing.