Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: RE: MSP430F5325 - Computational Limitations - Multiplications, Divisions, Cosine, Sine - How to Run on RAM instead of FLASH?

$
0
0
[quote]Other than the (silly) suggestion from CCS to put functions in RAM, why do you think this would solve your problem? FLASH execution is zero-wait-state on the MSP430.[/quote] I agree. And mindlessly following those "hints" would be equally silly. I suspect the code causing the 'issues' is a somehow unhandy implementation, done by directly translating equations into C language expressions - and libm calls. I see the following options: use another, faster math library use tables for trigonometric functions (sin, cos, ...) partition the code, call the watchdog in between Fast libs for small MCUs (8 bit, 16 bit) most often imply the second point.

Viewing all articles
Browse latest Browse all 62309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>