[SOLVED] JRun and semihosting

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] JRun and semihosting

    Semihosting works perfectly using Ozone and my test results are written to the terminal window. But since we are evaluating ways to perform automated software test I need to be able to run the tests in a batch mode such as using JRun. Trying JRun, no terminal messages are shown and it appears to hang indefinitely. Is it possible to use semihosting with JRun instead of Ozone? Or perhaps J-Link?

    jrun -device "MK66FN2M0XXX18" --semihost mytest.elf

    J-Run compiled Sep 14 2021 16:09:55
    (c) 2018-2021 SEGGER Microcontroller GmbH segger.com

    Open application...OK
    Set target device to MK66FN2M0XXX18...OK
    Select SWD interface...OK
    Set interface speed to 4000 kHz...OK
    Reset target...OK
    Download 00000000-000061CF...OK
    Download 00006400-0003EE63...OK
    Download 0004EE64-0004EE87...OK
    Download 1FFF0000-2000C00B...OK
    Start target application...OK
    Reading output from target until exit command.
    ==============================================
    (Hangs here.)
  • This is better, but still not working:

    Start target application...OK
    Reading output from target until exit command.
    ==============================================



    FATAL ERROR: Target halted on unknown BKPT.