Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timers register address calculation bug #45

Open
vposelt opened this issue Mar 22, 2023 · 0 comments
Open

timers register address calculation bug #45

vposelt opened this issue Mar 22, 2023 · 0 comments

Comments

@vposelt
Copy link

vposelt commented Mar 22, 2023

There is timers register calculation word TIMGn
$3ff5f000 constant TIMG_BASE
( group n = 0/1, timer x = 0/1, watchdog m = 0-5 )
: TIMGn ( n -- a ) $10000 * TIMG_BASE + ;
For group 1 it gives uncorect address $3ff6f000, corect according ESP32 documentation is $3ff60000. So correct definition should be
: TIMGn ( n -- a ) $1000 * TIMG_BASE + ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant