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-Discovery Blinky example

Hi all,

I am trying to run the Blinky example for the STM32 Discovery board. The path is typically:

C:\Keil\ARM\Boards\ST\STM32-Discovery\Blinky\Blinky.uvproj

When I run the example project on the board I can debug and single step through the program. However, when I try to run the project on the simulator I get the following:

*** Error: invalid option '-REMAP'

*** error 65: access violation at 0x0000000C : no 'read' permission

I probably have a setting messed up but cannot track it down.

Thanks,

Trevor.

  • Note that there are (at least) 4 different "STM32 Discovery" boards.

    Which one, exactly, are you using - and are you sure you are using the correct project?

  • The documentation I have says:
    STM32F100RB microcontroller, 128 KB Flash, 8 KB RAM in 64-pin LQFP

    The Device selected when I load the Blinky project is STM32F100RB so I think I have it right. Also, I can flash the board with the example project and debug (step..).

    The problem is when I go to the Debug Tab (Project->Options) and select simulator I receive that error I stated. I just want to run the sim and do some non-peripheral debugging. I am sure I have something simple messed up since I am not experienced with these tools, but cannot find it.

    Thx,

    Trevor

  • Hello Trevor,
    the device you use is not fully simulated as you can see in the DeviceDatabase:
    http://www.keil.com/dd/chip/5086.htm

    On a Cortex-M3 device with ETM (Embedded Trace Macrocell) simulation becomes more or less unnecessary. ULINKpro (http://www.keil.com/ulinkpro) can provide almost all advanced analysis features simulation offers from a hardware target.

    Regards,
    Matthias