Reply
Posts: 3
Registered: ‎06-23-2017

Incorrect jump

Hi All,

i'm using the EFM8UB2-SLSTK2001A starter kit with Simplicity Studio 4 just for a few days .

This is my problem:

 

  mov  a,p3
  jb      acc.3,ini2
  orl     pcon0,#2
   jmp     $
ini2:   setb    ie_ex1

 

P3 = 0xFF (so ACC = 0xFF)

but after the instruction jb acc.3,ini2 the program doesn't jumnps to ini2 location (see the attached screenshot).

Thanks!

Posts: 8,081
Registered: ‎08-13-2003

Re: Incorrect jump

is that 'every time'?

is acc saved at all ISRs?

if you stop on jmp $ what does acc show?

erik
Posts: 3
Registered: ‎06-23-2017

Re: Incorrect jump

Hi Erik,

untill Yesterday the jump was correct.

No int is enabled (this is the beginning of the code).

As you can see in the picture the ACC value is really 0ffh.

And now i'm no able to download the code in the target mpu unless holding the reset button!

Thak you!

Posts: 8,081
Registered: ‎08-13-2003

Re: Incorrect jump

As you can see in the picture the ACC value is really 0ffh.

 

if I had a 36" monitor, I probably could

 

I recall from a previous version of SS  that the register/sfr display was unstable

 

what happens if you replace mov a,P3 with mov a,#oxff

erik
Posts: 3
Registered: ‎06-23-2017

Re: Incorrect jump

Erik,

unfortunately i can't copy any code to the target mpu.

It seems that the control mpu has not the "control" of the board: if i connect the USB cable with the target mpu powered on, nothing appear on the lcd but the display is correct doing the same with the target mpu not running...

Do you know any other mode to clear the contents of the target mpu?

 

Highlighted
Posts: 454
Registered: ‎02-21-2014

Re: Incorrect jump

Hi Toby,

 

We've identified issues with the debugger and jump instructions while debugging (mostly when single-stepping). These will be fixed in the next release of Studio.

 

MCUDT-12992, MCUDT-11828