<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Benjamin,<br>
<div class="moz-cite-prefix"> <br>
On 08/25/2015 09:25 AM, Treuillard, Benjamin wrote:<br>
</div>
<blockquote
cite="mid:0B551B68E6EE5747B8C7AA3E4EA22F5F099A0106@EMSRVWIN2933.apps.edc.thyssenkrupp.com"
type="cite">
<div class="WordSection1"><span lang="EN-US">I’m currently trying
to use opus on a ST ARM (STM32F407) without any OS (bare
metal).<o:p></o:p></span>
<p class="MsoNormal"><span lang="EN-US">The aim of my project is
to transmit voice over CAN bus.</span></p>
</div>
</blockquote>
I also have a project where I use Opus on an STM32F407 + ChibiOS
(still bare metal linkage). Data is being send via bluetooth.<br>
<br>
<blockquote
cite="mid:0B551B68E6EE5747B8C7AA3E4EA22F5F099A0106@EMSRVWIN2933.apps.edc.thyssenkrupp.com"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The main issue I have is
that opus fail to allocate memory, the ALLOC macro always
return a NULL pointer.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have sure that I have
enough free space to allocate buffers.</span></p>
</div>
</blockquote>
Compile Opus by defining -DOVERRIDE_OPUS_ALLOC (I did in
Makefile.unix). Then you need to provide implementations for
opus_alloc() and opus_free() in your application. I statically
allocate the whole 64KB of fast non-DMA RAM of the STM32F407 and
manage it as a heap in my application just for the Opus codec.<br>
<br>
Best,<br>
Stephan<br>
<br>
</body>
</html>