Questions tagged [hal]

Hardware abstraction layer. Use tag [cmsis] for STM and other Cortex-M hardware. Also tag [hal-json] for hypertext application language.

Hardware Abstraction Layer is a generic term generally implying a set of routines in software that emulate some platform-specific details, giving programs direct access to the hardware resources.

For HAL as in Hypertext Application Language, please use the tag .

504 questions
39
votes
1 answer

Android Studio: Hardware backing HAL too slow, could only write 0 of 720 frames

I am getting an error in Android Studio, app cannot communicate with other app and two emulators working simultaneously use almost 100% of the processor. I am not getting any errors except Hardware backing HAL too slow, could only write 0 of 720…
MattheyC
  • 391
  • 2
  • 4
32
votes
4 answers

My singleton can be called multiple times

I have implemented an singleton based on c++ 11. However the constructor can be called multiple times in some cases. The class will be compiled to static lib and used by other so lib (more than one so lib). And the system is a multi-thread system…
hismart
  • 405
  • 6
  • 15
24
votes
2 answers

How to change HAL links format using Spring HATEOAS

I'm building a Spring REST application using Spring HATEOAS (0.16.0.RELEASE) and I'd like the JSON links output to look like: _links: { self: { href: "https:///api/policies/321" } } while it renders like: "links": [{ …
Tony Arad Felik
  • 241
  • 1
  • 2
  • 3
20
votes
6 answers

STM32F4 UART HAL Driver

I'm trying to figure out how to use this new HAL driver. I want to receive data using the HAL_UART_Receive_IT() which sets up the device to run an interrupt function when data is received. Problem is that you have to specify the length of data to…
HammerFet
  • 841
  • 3
  • 10
  • 16
16
votes
3 answers

Is there a Linux radio standard?

We're about to embark upon implementing a device running Linux that (among other things) will be attached to a software defined FM/AM radio that can also receive RDS data describing playlists and other such stuff. It's a relatively stupid device…
Omnifarious
  • 54,333
  • 19
  • 131
  • 194
14
votes
1 answer

What is required to make Android use a new Audio HAL

I am writing a new Android Audio HAL, to let my App to feed audio to other apps, to allow my handheld remote microphone input to reach Google app. Essentially, a Virtual Audio Cable. Its a work in progress. I'll probably be overriding…
GPS
  • 1,322
  • 1
  • 18
  • 40
12
votes
2 answers

How to use LL (low level) drivers in CubeMX STM32?

I'm creating a blank project for a STM32F103 microcontroller using STM32CubeMX. Using HAL drivers (the default), I got a blinky example working pretty quickly, but I'd like to try out LL (low level) drivers instead of HAL. When I go to Project >…
Alex I
  • 19,689
  • 9
  • 86
  • 158
12
votes
4 answers

First project for STM32 with HAL in C++

I would like to create a project for STM32 with HAL in C++. Unfortunately, CubeMX supports only projects in C. However, HAL support C++. I have created a project in CubeMX and I was trying to import it to any of the IDEs above but without any…
unitatem
  • 131
  • 1
  • 1
  • 9
11
votes
4 answers

HAL layer vs Device driver

In Linux, HAL provides hardware abstraction and device driver too provide hardware abstraction. Can you please clarify me the difference between two ?
Waqas
  • 191
  • 3
  • 4
  • 13
9
votes
3 answers

HAL_Delay() stuck in a infinite loop

I am stuck with HAL_Delay() function. When i call this function HAL_Delay() , control stuck in infinite loop. While searching for the problem, I found this http://www.openstm32.org/forumthread2145#threadId2146 In this particular comment which states…
Devjeet Mandal
  • 345
  • 1
  • 4
  • 23
9
votes
7 answers

STM32: Implementing UART in DMA mode

I am trying to implement UART in DMA mode to transmit a simple string every time a push button is pressed. So I have used CubeMX to generate the code and I have configured UART2 TX DMA in normal (not circular) mode and also no FIFO and no…
Nixmd
  • 775
  • 5
  • 11
  • 20
9
votes
3 answers

Null id property when deserialize json with jackson and Jackson2HalModule of Spring Hateoas

My entity : public class User { private Integer id; private String mail; private boolean enabled; // getters and setters } File test.json (response from REST webservice) : { "_embedded" : { "users" : [ { "id" : 1, …
mfalaize
  • 310
  • 2
  • 9
8
votes
0 answers

HAL virtual device: how to "proxy" microphone

I`m trying to create "virtual microphone", that should work "in front" of default input device/microphone. So when user select "virtual microphone" as input (in Audacity, for example) and starts to record sound - Audacity will receive samples from…
IPv6
  • 405
  • 4
  • 17
8
votes
5 answers

STM32 HAL USART receive by interrupt

I have some trouble to receive data over the USART. What I actually want to achieve ist, that I can receive a command over USART with no specific length (only a maximum possible length). So I use the interrupt routine to check each character…
HansPeterLoft
  • 489
  • 1
  • 9
  • 28
8
votes
2 answers

Android O HIDL not available

I have problem with Android O HIDL. The failure log shows it can't find out the service. However I can see it by adb shell ps -A | grep fingerprint system 18758 1 17408 3276 pipe_wait 7c79e93e08 R…
Jack Fan
  • 2,143
  • 3
  • 18
  • 25
1
2 3
33 34