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

STM32 JTAG debugging with ULINK-ME acts weird

I've been using MicroVision IDE and debugging STM32 successfully, until recently.

When starting the debugging, after loading the software the debugger gives the following:

Cannot access Memory
*** error 57: illegal address (0x08000000)

This has not happened before, and now it happens all the time. After this message I can only debug by looking at disassembly window, the C source code is not tracked anymore.

The address is the starting address of on-chip flash, so it is valid.

Parents
  • But it fails immediately, without running any code.

    The reset vector at 0x08000004 points to 0x08000165, which is not on word or doubleword boundary.

    The program counter however sets to 0x08000164 on reset.

    Should it be on word or doubleword boundary?

    The code runs perfectly on target system though.

    So what is wrong here, as I don't believe this has anything to do with my code, just some settings maybe.

Reply
  • But it fails immediately, without running any code.

    The reset vector at 0x08000004 points to 0x08000165, which is not on word or doubleword boundary.

    The program counter however sets to 0x08000164 on reset.

    Should it be on word or doubleword boundary?

    The code runs perfectly on target system though.

    So what is wrong here, as I don't believe this has anything to do with my code, just some settings maybe.

Children