Seeed_Arduino_FreeRTOS icon indicating copy to clipboard operation
Seeed_Arduino_FreeRTOS copied to clipboard

Seeed XIAO BLE nRF52840 - Supports Seeed Arduino FreeRTOS

Open gigwegbe opened this issue 3 years ago • 6 comments
trafficstars

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

gigwegbe avatar May 31 '22 22:05 gigwegbe

Hello,

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

Thank you.

lakshanthad avatar Jun 01 '22 11:06 lakshanthad

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 avatar Jun 01 '22 18:06 gigwegbe

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.

gigwegbe avatar Jul 20 '22 21:07 gigwegbe

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

mescriche avatar Jul 26 '22 08:07 mescriche

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

marcbritten avatar Jul 31 '22 17:07 marcbritten

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.

VilleWitt avatar Jul 26 '23 20:07 VilleWitt

hello, The nRF52840 should have an os function by default if it's the mbed version not freertos

LynnL4 avatar Oct 18 '24 08:10 LynnL4

Hello,

I'm going to close this issue, feel free to re-open it if you have any other questions.

[Autocommentary]

Lesords avatar Nov 04 '24 02:11 Lesords