How to mock in the 21st century

Notes


Source of Slides & additional Infos
github

to move forward just Press [Space]

Special

Function

Registers

Keynote
Meeting Embedded 2018

Dan Saks

Abstraction

  • prevents fails
  • more maintainable
  • unit test possible

  • zero runtime-cost
  • more benefits later

Testing

&

Debugging

Just get the code to compile, so you can get to the real work ...
debugging - Dan Saks

Kvasirs SFR mods


int main()
{
    std::cout << "\nread modify write something (set clock) \n";
    apply(write(Kvasir::SimScgc5::PortcValC::v1));

    std::cout << "\nread something (adc) \n";
    uint32_t readvalue = apply(read(Kvasir::Adc0Ra::d));

    std::cout << "\nwrite something (timer) \n";
    apply(write(Kvasir::Ftm0C0v::val,3));
}
				

Kvasirs SFR mods

OpenOCD

Wait a minute

measurements

API Frequence
Vendor (KSDK) 1.760.000 Hz
Kvasir 2.110.000 Hz
mocked Kvasir 472 Hz

what does that mean?

Paul Targosz

  • twitter.com/Sickeroni
  • github.com/Sickeroni
  • linkedin.com/in/paul-targosz
  • xing.com/profile/Paul_Targosz
  • paultargosz86@gmail.com