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

Amperometric Hardfault #15

Open
sebastian-schneider-eng opened this issue Dec 6, 2021 · 1 comment
Open

Amperometric Hardfault #15

sebastian-schneider-eng opened this issue Dec 6, 2021 · 1 comment

Comments

@sebastian-schneider-eng
Copy link

sebastian-schneider-eng commented Dec 6, 2021

I have successfully integrated your examples into a STM32H7 and can perform the Amperometric measurement. I however realized, that if I am breaking the SW execution with the debugger, that a hardfault exception is occurring. The reason for that is that your Amperometric.c file is writing into memory areas which is not within the passed buffer. Possible work around:

  1. Add a size check here:
    FifoCnt = AD5940_FIFOGetCnt();
  2. Changing APPBUFF_SIZE to 1024 which is reflecting the internal fifo size:
@ajowsey
Copy link

ajowsey commented Oct 3, 2022

I'd second this:
https://ez.analog.com/data_converters/precision_adcs/f/q-a/562507/fifo-count-rollover/473138

Read at the comment: "Another piece of useful information: "

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

2 participants