MrLearner Posted December 6, 2023 Share Posted December 6, 2023 Hello, I have an issue trying to run the Zmod DAC 1411 demo program on the Ecylpse Z7 board. When we run it, we get an error stating that the buffer cannot be allocated. One of the issues we are having seems to be with this portion of the code: uint32_t* ZMODDAC1411::allocChannelsBuffer(size_t &length) { if(length > ZmodDAC1411_MAX_BUFFER_LEN) { length = ZmodDAC1411_MAX_BUFFER_LEN; } return (uint32_t *)ZMOD::allocDMABuffer(length * sizeof(uint32_t)); } Could anyone help us resolve this problem? Link to comment Share on other sites More sharing options...
Question
MrLearner
Hello, I have an issue trying to run the Zmod DAC 1411 demo program on the Ecylpse Z7 board. When we run it, we get an error stating that the buffer cannot be allocated.
One of the issues we are having seems to be with this portion of the code:
uint32_t* ZMODDAC1411::allocChannelsBuffer(size_t &length) {
if(length > ZmodDAC1411_MAX_BUFFER_LEN)
{
length = ZmodDAC1411_MAX_BUFFER_LEN;
}
return (uint32_t *)ZMOD::allocDMABuffer(length * sizeof(uint32_t));
}
Could anyone help us resolve this problem?
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now