Skip to content

HW_SCE_McuSpecificInit is quite slow #413

@WestfW

Description

@WestfW

It turns out that the HW_SCE_McuSpecificInit() function is pretty slow (~97000us on an RA4m1 (Arduino Uno R4)), causing code that naively calls it every time one wants a random number (for example) to be painful.

It would be nice if the function could detect that the SCE had already been initialized, and skipped most of the code.

See https://forum.arduino.cc/t/random-function-on-r4-terribly-slow/1342877/10 for example. where the Arduino random() function takes 90ms instead of 20us. (yes, this can also be fixed on the Arduino side. But it should not need to be fixed independently in every bit of code that uses the SCE.)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions