The Godfather talking
You think I am funny guy huh?
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 01, 2024, 12:31:43 00:31


Login with username, password and session length


Pages: [1]
Print
Author Topic: STM32-CUBE-AUDIO on STM32H7 family  (Read 5384 times)
0 Members and 1 Guest are viewing this topic.
schisanoa
Newbie
*
Offline Offline

Posts: 10

Thank You
-Given: 3
-Receive: 5


« on: May 15, 2022, 02:24:41 14:24 »

Hi guys,

I am working to port the STM32 CUBE AUDIO library (made for STM32F4-F7 series) to the STM32H7 mcu, but I am experiencing lot of problem and the documentation is not useful to debug the problem, for 2 reason, no detail about the error code reported, and library provided as compiled, so no source code. In particulare, testing the SVC library while executing the code it report me the error "BAD_HARDWARE", is there someone more expert than me in STM32 that maybe has some good advice? If I at the end made it working I will provide and share the project made for test in order to be helpful to other who will made the same porting.

Thanks in advance
Logged
schisanoa
Newbie
*
Offline Offline

Posts: 10

Thank You
-Given: 3
-Receive: 5


« Reply #1 on: May 20, 2022, 11:04:44 23:04 »

Problem solved, if someone need in the future this is what I have done to fix the problem:

Enable the CRC before calling any function of the library with this:

__HAL_RCC_CRC_CLK_ENABLE();
    CRC->CR = CRC_CR_RESET;

Then check the alignement of the buffers, otherwise the memcpy function will cause an hardfault.

Doing these now it is working
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC