Skip to content
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

Seeed XIAO BLE nRF52840 - Supports Seeed Arduino FreeRTOS #6

Open
gigwegbe opened this issue May 31, 2022 · 6 comments
Open

Seeed XIAO BLE nRF52840 - Supports Seeed Arduino FreeRTOS #6

gigwegbe opened this issue May 31, 2022 · 6 comments

Comments

@gigwegbe
Copy link

Hello Team Seeed-Studio,
I want to know if I can run Seeed Arduino FreeRTOS on XIO BLE nRF52840?

@lakshanthad
Copy link

lakshanthad commented Jun 1, 2022

Hello,

We have not tested this. Do you have a Seeed XIAO BLE nRF52840 board? Could you help us test?

Thank you.

@gigwegbe
Copy link
Author

gigwegbe commented Jun 1, 2022

Not yet. I ordered a couple of Seeed XIAO BLE nRF52840 boards and will definitely test them when it arrives. I just needed to confirm if it supports FreeRTOS. I will keep you posted on the test when the board arrives. Thanks for the feedback.

@gigwegbe
Copy link
Author

Hello @lakshanthad,
I tried using Seeed Arduino FreeRTOS on Seeed XIAO BLE nRF52840 board. Here's the error I got, is there any way this can be sorted out?


In file included from /Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/../FreeRTOS/Source/include/FreeRTOS.h:57:0,
                 from /Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/FreeRTOS.h:4,
                 from /Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/Seeed_Arduino_FreeRTOS.h:4,
                 from /Users/george/Documents/embedded_c/freertos_arduino_projects/xiao/02_led_freertos/02_led_freertos.ino:1:
/Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/FreeRTOSConfig.h:32:2: error: #error "Processor or architecture not support!"
 #error "Processor or architecture not support!"
  ^~~~~
In file included from /Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/../FreeRTOS/Source/include/portable.h:51:0,
                 from /Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/../FreeRTOS/Source/include/FreeRTOS.h:63,
                 from /Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/FreeRTOS.h:4,
                 from /Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/Seeed_Arduino_FreeRTOS.h:4,
                 from /Users/george/Documents/embedded_c/freertos_arduino_projects/xiao/02_led_freertos/02_led_freertos.ino:1:
/Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/portmacro.h:12:20: error: no "__CORTEX_M" definition
 #pragma GCC error  "no \"__CORTEX_M\" definition"
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/FreeRTOS.h:4:0,
                 from /Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/Seeed_Arduino_FreeRTOS.h:4,
                 from /Users/george/Documents/embedded_c/freertos_arduino_projects/xiao/02_led_freertos/02_led_freertos.ino:1:
/Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/../FreeRTOS/Source/include/FreeRTOS.h:82:6: error: #error Missing definition: configMINIMAL_STACK_SIZE must be defined in FreeRTOSConfig.h. configMINIMAL_STACK_SIZE defines the size (in words) of the stack allocated to the idle task. Refer to the demo project provided for your port for a suitable value.
     #error Missing definition:  configMINIMAL_STACK_SIZE must be defined in FreeRTOSConfig.h.  configMINIMAL_STACK_SIZE defines the size (in words) of the stack allocated to the idle task.  Refer to the demo project provided for your port for a suitable value.
      ^~~~~
In file included from /Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/FreeRTOS.h:4:0,
                 from /Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/Seeed_Arduino_FreeRTOS.h:4,
                 from /Users/george/Documents/embedded_c/freertos_arduino_projects/xiao/02_led_freertos/02_led_freertos.ino:1:
/Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/../FreeRTOS/Source/include/FreeRTOS.h:86:6: error: #error Missing definition: configMAX_PRIORITIES must be defined in FreeRTOSConfig.h. See the Configuration section of the FreeRTOS API documentation for details.
     #error Missing definition:  configMAX_PRIORITIES must be defined in FreeRTOSConfig.h.  See the Configuration section of the FreeRTOS API documentation for details.
      ^~~~~
/Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/../FreeRTOS/Source/include/FreeRTOS.h:90:6: error: #error configMAX_PRIORITIES must be defined to be greater than or equal to 1.
     #error configMAX_PRIORITIES must be defined to be greater than or equal to 1.
      ^~~~~
/Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/../FreeRTOS/Source/include/FreeRTOS.h:94:6: error: #error Missing definition: configUSE_PREEMPTION must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
     #error Missing definition:  configUSE_PREEMPTION must be defined in FreeRTOSConfig.h as either 1 or 0.  See the Configuration section of the FreeRTOS API documentation for details.
      ^~~~~
/Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/../FreeRTOS/Source/include/FreeRTOS.h:98:6: error: #error Missing definition: configUSE_IDLE_HOOK must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
     #error Missing definition:  configUSE_IDLE_HOOK must be defined in FreeRTOSConfig.h as either 1 or 0.  See the Configuration section of the FreeRTOS API documentation for details.
      ^~~~~
/Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/../FreeRTOS/Source/include/FreeRTOS.h:102:6: error: #error Missing definition: configUSE_TICK_HOOK must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
     #error Missing definition:  configUSE_TICK_HOOK must be defined in FreeRTOSConfig.h as either 1 or 0.  See the Configuration section of the FreeRTOS API documentation for details.
      ^~~~~
/Users/george/Documents/Arduino/libraries/Seeed_Arduino_FreeRTOS-master/src/../FreeRTOS/Source/include/FreeRTOS.h:106:6: error: #error Missing definition: configUSE_16_BIT_TICKS must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
     #error Missing definition:  configUSE_16_BIT_TICKS must be defined in FreeRTOSConfig.h as either 1 or 0.  See the Configuration section of the FreeRTOS API documentation for details.
      ^~~~~
exit status 1
Error compiling for board Seeed XIAO BLE Sense - nRF52840.


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@mescriche
Copy link

Hello,
I'm also interested in this topic, and willing to cooperate if needed.
I recently bought a XIAO BLE nRF52840 to take advantage of its BLE capabilities but it wasn't possible and had to come back to previous XIAO chip because it wasn't possible to use FreeRTOS.
Is it possible to do it with Segger, instead of Arduino?
Thanks
Manuel

@marcbritten
Copy link

I recently went through figuring out all the defines for the config header but now its complaining about conflicting type definitions.

@VilleWitt
Copy link

VilleWitt commented Jul 26, 2023

I would appreciate the port to nRF52840 as well. I also bought the nRF52840 because of the small size and bluetooth. Inexperienced with FreeRTOS, but ready to try stuff out.

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

No branches or pull requests

5 participants