Skip to content

HID will not work if STM32FreeRTOS.h is included. #16

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

Closed
ogatatsu opened this issue Apr 13, 2019 · 4 comments
Closed

HID will not work if STM32FreeRTOS.h is included. #16

ogatatsu opened this issue Apr 13, 2019 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@ogatatsu
Copy link

env: Arduino 1.8.9 + Arduino_Core_STM32 + RobotDyn STM32 MINI
code:

// It does not work if there is this line.
// #include <STM32FreeRTOS.h>
#include "Keyboard.h"

void setup()
{
  Keyboard.begin();
  delay(1000);
  Keyboard.print("test");
  while (1);
}

void loop()
{
}
@fpistm fpistm self-assigned this Apr 13, 2019
@fpistm
Copy link
Member

fpistm commented Apr 13, 2019

Hi @ogatatsu
I will check that.

@fpistm
Copy link
Member

fpistm commented Apr 15, 2019

Hi @ogatatsu
It is linked to the heap management using newlib.
Using the configMEMMANG_HEAP_NB 3 and it works.
https://github.com/stm32duino/STM32FreeRTOS/blob/master/src/FreeRTOSConfig_Default.h#L92
Unfortunately, I will not be able to help on this, it was provided as several user request it.
Anyway, it's up to end user to configure properly its usage.

@ogatatsu
Copy link
Author

Thank you very much. I was able to work it.

@fpistm fpistm added the question Further information is requested label Apr 18, 2019
@fpistm fpistm closed this as completed Apr 18, 2019
@Yannick-Marietti
Copy link

Hello

Thank you very much for this reporting !

I had similar issues, I applied configMEMMANG_HEAP_NB 3 correction following your comments, and everything works fine now.

To be more precise, newlib had adverse effects on Arduino Interrupts (not working) and also on the initialization code of the SPBTLE-RF module on the Discovery IoT Node board.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants