ARMmbed / htrun

MOVED: https://github.com/ARMmbed/mbed-os-tools (Flash, reset and run host supervised tests on mbed platforms)
8 stars 37 forks source link

Using htrun while debugging device test code (in IDE) #164

Closed maiorfi closed 7 years ago

maiorfi commented 7 years ago

Hi. What is the right way to debug a test firmware (using mbedos test framework) inside a IDE (say KEIL MDK UVISION 5) while running mbed test procedure?

Is device supposed to "wait" for a sync packet through serial port? Say I would like to set breakpoints at start of test methods and run a "mbed test..." command hoping those breakpoints will be hit :)

Am I wrong or mbed test (i.e. mbedhtrun) should skip both flashing and resetting device...right?

maiorfi commented 7 years ago

...never mind...just found https://docs.mbed.com/docs/mbed-os-handbook/en/latest/advanced/testing/#debugging-tests

I'll give it a try :)