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

Loading Two Projects in one Debug mode for Boot loader Simulation

Is it possible to load two project in one debug mode to simulate Boot loader and Application simulation

Parents
  • Simulate one of the projects - the one you are not currently debugging.

    use the debug "save" command to write a hex file for the appropriate program addresses for the project. Trim this to only the used memory.

    Simulate the other project.
    In the simulator .INI file, "load" the saved hex file.

    You may be able to just load the compiler's hex output but you need to insure you don't overwrite the boot / IRQ vectors.

    For a uart bootloader, use the map function to connect the simulator's uart to a PC's real uart. This works but you may need to spit bytes out of your reflash software byte by byte with a delay as the simulator ( uvision 3, have not simulated it in v4) tends to miss bytes when they come at it quickly.

    Chad

Reply
  • Simulate one of the projects - the one you are not currently debugging.

    use the debug "save" command to write a hex file for the appropriate program addresses for the project. Trim this to only the used memory.

    Simulate the other project.
    In the simulator .INI file, "load" the saved hex file.

    You may be able to just load the compiler's hex output but you need to insure you don't overwrite the boot / IRQ vectors.

    For a uart bootloader, use the map function to connect the simulator's uart to a PC's real uart. This works but you may need to spit bytes out of your reflash software byte by byte with a delay as the simulator ( uvision 3, have not simulated it in v4) tends to miss bytes when they come at it quickly.

    Chad

Children