Skip to main content
VKost.3
Associate III
April 10, 2021
Question

Function animateToItem makes a two animationSteps and HardFault

  • April 10, 2021
  • 2 replies
  • 1812 views

I am using stm32f746 nucleo board and display with fmc!

his is how it works

void Screen1View::handleTickEvent()

{

tickCounter++;

if(tickCounter > 60){

tickCounter = 0;

scrollWheel.animateToItem(scrollWheel.getSelectedItem() + 1, 0);

// application().gotoScreen2ScreenSlideTransitionEast();

}

}

doesn't work like that! Makes a two animationSteps and HardFault!

void Screen1View::handleTickEvent()

{

tickCounter++;

if(tickCounter > 60){

tickCounter = 0;

scrollWheel.animateToItem(scrollWheel.getSelectedItem() + 1, 10);

// application().gotoScreen2ScreenSlideTransitionEast();

}

}

This topic has been closed for replies.

2 replies

VKost.3
VKost.3Author
Associate III
April 10, 2021

doesn't work like that! Makes a two animationSteps and HardFault!

void Screen1View::handleTickEvent()

{

tickCounter++;

if(tickCounter > 60){

tickCounter = 0;

scrollWheel.animateToItem(scrollWheel.getSelectedItem() + 1, 10);

// application().gotoScreen2ScreenSlideTransitionEast();

}

}

MM..1
Chief III
April 10, 2021

??? why you duplicate

??? why you dont check index over limit, you cant animate to not existed +1 on last.

VKost.3
VKost.3Author
Associate III
April 10, 2021

I gave this two options. The first one without steps, the second with steps! The first option works fine without overflow checking. I gave this two options. The first one without steps, the second with steps! The first option works fine without overflow checking. The second option with steps, redraws the first two frames and gets into HardFault!

VKost.3
VKost.3Author
Associate III
April 12, 2021

Changed the location of the buffers, from by location to by address! and it all worked)