373 views
in Embedded Wizard Studio by

Hello,

I'm developing with STM32H7 dev kit.
And have a property:

But code stucks somewhere randomly. 
I was able to track with debuging all the way to EwNotifyRefObservers after which debugging is not possible any more.


void ApplicationDeviceClass_UpdateUserScannedGui( ApplicationDeviceClass _this,  XInt32 aNewValue )
{
  if ( aNewValue != _this->userScannedGui )
  {
    _this->userScannedGui = aNewValue;
    EwNotifyRefObservers( EwNewRef( _this, ApplicationDeviceClass_OnGetuserScannedGui, 
      ApplicationDeviceClass_OnSetuserScannedGui ), 0 );
  }
}

Is there any hint what I'm doing wrong and why after call of ApplicationDeviceClass_UpdateUserScannedGui related onSet method is not executed and code stuck.

A bit more useful code:

static void addUserProc(const void* aData)
{
    int userScannedtemp = *((int*)aData);

    ApplicationDeviceClass device = EwGetAutoObject( &ApplicationDevice, ApplicationDeviceClass );
    ApplicationDeviceClass__UpdateUserScannedGui( device , userScannedtemp);
}
void addUser(uint8_t *rxBuffer)
{
    memcpy(userNameString, rxBuffer, RXBUFFERSIZE);
    userScanned = USER_PRESENT;
    brArtikala = 0; 
    EwInvoke( addUserProc, &userScanned);
}

 

addUser is called from ISR callback.

Best regards,
Miroslav

1 Answer

0 votes
by
Hello again,

So...I figured out that I need to call it, the onset method. I thought that EwNotifyRefObservers( will cause all related methods to be triggered. However seems it is not the case.
Is this true?

Best regards,
Miroslav

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...