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 value line simulator problem

I'm using the free version of uvision 4 with a STM32F100C4. When I try to simulate my code the, simulator starts at 0x0000000. I have tried to set the program counter to 0x08000000, but every time I try to run it goes back to 0x00000000. If I change the MCU to an STM32F103, then it works without me changing anything.

There are no errors or warnings when I build the project. I'm using startup_stm32f10x_ld_vl.s as my startup file, and I have defined STM32F10X_LD_VL in stm32f10x.h.

Please help.

Thanks

Parents
  • Hello Jonathan Quenzer,

    In Options for Target - Debug - 'Simulator section' CPU DLL you can add "-REMAP" to Parameter.
    This will automatically remap the code from address 0x08000000 to address 0x00000000.

    But be aware that this device is not simulated and also the address space for the peripherals are not mapped. To map the periperal address space you need an INI file which does this mapping.

    Use command MAP.

    MAP 0x40000000, 0x40001FFF Read Write  // map peripherals
    

    Best Regards,
    Martin Guenther

Reply
  • Hello Jonathan Quenzer,

    In Options for Target - Debug - 'Simulator section' CPU DLL you can add "-REMAP" to Parameter.
    This will automatically remap the code from address 0x08000000 to address 0x00000000.

    But be aware that this device is not simulated and also the address space for the peripherals are not mapped. To map the periperal address space you need an INI file which does this mapping.

    Use command MAP.

    MAP 0x40000000, 0x40001FFF Read Write  // map peripherals
    

    Best Regards,
    Martin Guenther

Children
No data