Resume execution with GRMON 'detach'

Hi, arvid
Can the ‘detach’ command be applied to the NOEL based system?

grmon3> detach
  Unknown failure!

grmon3> attach
  CPU 0:  Interrupted!
          0x80004cb6: 10500073  wfi  <fw_platform_init+394>
  CPU 1:  Interrupted!
          0x80000436: 4289      li      t0, 2  <_wait_for_boot_hart+0>
  CPU 2:  Interrupted!
          0x80000448: 0203c3b3  div     t2, t2, zero
  CPU 3:  Interrupted!
          0x80000438: 00040317  auipc   t1, 0x40

grmon3> detach
  Unknown failure!

Hello Wei!

The detach command became broken in 3.3.8. I have already have a fix for it that will be included in the next release.

I plan to make a new release before end of may.

Best regards,
Arvid

Thank you very much. I’m so ready.

Hello Wei,

GRMON 3.3.11 is now available.

Best regards,
Arvid

Hello arvid, Thank you for the update.

I tried the new version of grmon, but it still doesn’t seem to work as expected. The following is my try, I am not sure if I have used the command correctly.

When I do the following

grmon3> lo gaisler-buildroot-2024.02-1.0/output/images/fw_payload.elf
grmon3> run

The terminal can see the correct execution information

OpenSBI v1.4
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

When I do the following

grmon3> lo gaisler-buildroot-2024.02-1.0/output/images/fw_payload.elf
grmon3> detach

grmon3> cpu
   cpu 0: detached  active
   cpu 1: detached
   cpu 2: detached
   cpu 3: detached

The command have detached GRMON successfully, but the terminal cannot see any information.

It seems that the ‘detach’ command has not resumed execution on enabled CPUs.