Giter VIP home page Giter VIP logo

rui_platform_firmware_gcc's People

Contributors

fomi-rak avatar nerodu avatar rakstory avatar zhangtao9238 avatar

Watchers

 avatar

Forkers

coredmas maswangy

rui_platform_firmware_gcc's Issues

Commit e27b455 does not compile

Here is the compilation output after cloning the repo from commit e27b455
I am not sure how to fix these issues, could you help?

Regards

Mac-mini-de-Developer:build developer$ make P=1bdfgh
Makefile:417: Cannot find source file: ../../RUI/Source/service/power/power.c
mkdir _build
cd _build && mkdir nrf52_xxaa
Compiling file: main.c
In file included from ../../components/drivers_nrf/nrf_soc_nosd/nrf_soc.h:44,
                 from ../../RUI/Source/include/FreeRTOSConfig.h:34,
                 from ../../external/freertos/source/include/FreeRTOS.h:57,
                 from ../../RUI/Source/main.c:55:
../../modules/nrfx/mdk/nrf.h:94:10: error: #error "Device must be defined. See nrf.h."
         #error "Device must be defined. See nrf.h."
          ^~~~~
In file included from ../../components/libraries/util/app_util_platform.h:57,
                 from ../../RUI/Source/include/FreeRTOSConfig.h:36,
                 from ../../external/freertos/source/include/FreeRTOS.h:57,
                 from ../../RUI/Source/main.c:55:
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:59:28: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_EnableIRQ(IRQn_Type IRQn);
                            ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:70:29: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_DisableIRQ(IRQn_Type IRQn);
                             ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:82:32: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_GetPendingIRQ(IRQn_Type IRQn, uint32_t * p_pending_irq);
                                ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:93:32: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_SetPendingIRQ(IRQn_Type IRQn);
                                ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:104:34: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_ClearPendingIRQ(IRQn_Type IRQn);
                                  ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:117:30: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_SetPriority(IRQn_Type IRQn, uint32_t priority);
                              ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:129:30: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_GetPriority(IRQn_Type IRQn, uint32_t * p_priority);
                              ^~~~~~~~~
In file included from ../../external/freertos/source/include/FreeRTOS.h:57,
                 from ../../RUI/Source/main.c:55:
../../RUI/Source/include/FreeRTOSConfig.h:184:10: error: #error "This port requires __NVIC_PRIO_BITS to be defined"
         #error "This port requires __NVIC_PRIO_BITS to be defined"
          ^~~~~
In file included from ../../external/freertos/portable/CMSIS/nrf52/portmacro_cmsis.h:31,
                 from ../../external/freertos/portable/GCC/nrf52/portmacro.h:33,
                 from ../../external/freertos/source/include/portable.h:53,
                 from ../../external/freertos/source/include/FreeRTOS.h:63,
                 from ../../RUI/Source/main.c:55:
../../components/libraries/util/app_util.h: In function 'uint32_big_encode':
../../components/libraries/util/app_util.h:1079:35: warning: implicit declaration of function '__REV' [-Wimplicit-function-declaration]
     *(uint32_t *)p_encoded_data = __REV(value);
                                   ^~~~~
In file included from ../../external/freertos/portable/GCC/nrf52/portmacro.h:33,
                 from ../../external/freertos/source/include/portable.h:53,
                 from ../../external/freertos/source/include/FreeRTOS.h:63,
                 from ../../RUI/Source/main.c:55:
../../external/freertos/portable/CMSIS/nrf52/portmacro_cmsis.h: At top level:
../../external/freertos/portable/CMSIS/nrf52/portmacro_cmsis.h:172:1: error: unknown type name '__STATIC_INLINE'
 __STATIC_INLINE uint32_t ulPortRaiseBASEPRI( void )
 ^~~~~~~~~~~~~~~
../../external/freertos/portable/CMSIS/nrf52/portmacro_cmsis.h:172:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ulPortRaiseBASEPRI'
 __STATIC_INLINE uint32_t ulPortRaiseBASEPRI( void )
                          ^~~~~~~~~~~~~~~~~~
../../RUI/Source/main.c:60:10: fatal error: ble_hci.h: No such file or directory
 #include "ble_hci.h"
          ^~~~~~~~~~~
compilation terminated.
make: *** [_build/nrf52_xxaa/main.c.o] Error 1

Softdevice header files path is wrong on makefile

When executing the make command I get
Makefile:361: Cannot find include folder: ../../components/softdevice/s132/headers/nRF52

The name of the directory is wrong , it should be ../../components/softdevice/s132/headers/nrf52

I am using Mac OS and have downloaded both RUI and SDK from your github

Why is power consumption around 0.9 mA in low power mode?

Hi,

According to NRF52 datasheet, the power consumption of the nrf52832 in system off should be around 1.9uA in low power mode.

Using RUI, the power consumption is 0.9mA . What is using so much current? I tried to fix it and cannot see what's missing.

Thanks

Device does not go to sleep

Hi,

I have set #define NRF_LOG_ENABLED 0 in the sdk_config.h to dosable debug log.

However, the device is still not going to sleep.
I measure about 16mA with my multimeter.
Is there anything else that should be done?

Error while compiling for RAK5010

Machine: Windows 10
SDK and Other tools installed successfully.

I was compiling for RAK5010 by make p="2 2 4 5 9",

error is thrown like below

Compiling file: main.c
In file included from ../../components/drivers_nrf/nrf_soc_nosd/nrf_soc.h:44,
                 from ../../RUI/Source/include/FreeRTOSConfig.h:34,
                 from ../../external/freertos/source/include/FreeRTOS.h:57,
                 from ../../RUI/Source/main.c:55:
../../modules/nrfx/mdk/nrf.h:94:10: error: #error "Device must be defined. See nrf.h."
         #error "Device must be defined. See nrf.h."
          ^~~~~
In file included from ../../components/libraries/util/app_util_platform.h:57,
                 from ../../RUI/Source/include/FreeRTOSConfig.h:36,
                 from ../../external/freertos/source/include/FreeRTOS.h:57,
                 from ../../RUI/Source/main.c:55:
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:59:28: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_EnableIRQ(IRQn_Type IRQn);
                            ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:70:29: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_DisableIRQ(IRQn_Type IRQn);
                             ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:82:32: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_GetPendingIRQ(IRQn_Type IRQn, uint32_t * p_pending_irq);
                                ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:93:32: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_SetPendingIRQ(IRQn_Type IRQn);
                                ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:104:34: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_ClearPendingIRQ(IRQn_Type IRQn);
                                  ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:117:30: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_SetPriority(IRQn_Type IRQn, uint32_t priority);
                              ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:129:30: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_GetPriority(IRQn_Type IRQn, uint32_t * p_priority);
                              ^~~~~~~~~
In file included from ../../external/freertos/source/include/FreeRTOS.h:57,
                 from ../../RUI/Source/main.c:55:
../../RUI/Source/include/FreeRTOSConfig.h:184:10: error: #error "This port requires __NVIC_PRIO_BITS to be defined"
         #error "This port requires __NVIC_PRIO_BITS to be defined"
          ^~~~~
In file included from ../../external/freertos/portable/GCC/nrf52/portmacro.h:33,
                 from ../../external/freertos/source/include/portable.h:53,
                 from ../../external/freertos/source/include/FreeRTOS.h:63,
                 from ../../RUI/Source/main.c:55:
../../external/freertos/portable/CMSIS/nrf52/portmacro_cmsis.h:172:1: error: unknown type name '__STATIC_INLINE'
 __STATIC_INLINE uint32_t ulPortRaiseBASEPRI( void )
 ^~~~~~~~~~~~~~~
../../external/freertos/portable/CMSIS/nrf52/portmacro_cmsis.h:172:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ulPortRaiseBASEPRI'
 __STATIC_INLINE uint32_t ulPortRaiseBASEPRI( void )
                          ^~~~~~~~~~~~~~~~~~
../../RUI/Source/main.c:62:10: fatal error: ble_hci.h: No such file or directory
 #include "ble_hci.h"
          ^~~~~~~~~~~
compilation terminated.
make: *** [../../components/toolchain/gcc/Makefile.common:272: _build/nrf52_xxaa/main.c.o] Error 1
PS C:\Users\Faris\Desktop\rak5010\dev\nRF5_SDK_15.0.0_a53641a\nRF5_SDK_15.0.0_a53641a\RUI\build> make p="2 2 4 5 9"
Compiling file: main.c
In file included from ../../components/drivers_nrf/nrf_soc_nosd/nrf_soc.h:44,
                 from ../../RUI/Source/include/FreeRTOSConfig.h:34,
                 from ../../external/freertos/source/include/FreeRTOS.h:57,
                 from ../../RUI/Source/main.c:55:
../../modules/nrfx/mdk/nrf.h:94:10: error: #error "Device must be defined. See nrf.h."
         #error "Device must be defined. See nrf.h."
          ^~~~~
In file included from ../../components/libraries/util/app_util_platform.h:57,
                 from ../../RUI/Source/include/FreeRTOSConfig.h:36,
                 from ../../external/freertos/source/include/FreeRTOS.h:57,
                 from ../../RUI/Source/main.c:55:
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:59:28: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_EnableIRQ(IRQn_Type IRQn);
                            ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:70:29: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_DisableIRQ(IRQn_Type IRQn);
                             ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:82:32: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_GetPendingIRQ(IRQn_Type IRQn, uint32_t * p_pending_irq);
                                ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:93:32: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_SetPendingIRQ(IRQn_Type IRQn);
                                ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:104:34: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_ClearPendingIRQ(IRQn_Type IRQn);
                                  ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:117:30: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_SetPriority(IRQn_Type IRQn, uint32_t priority);
                              ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:129:30: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_GetPriority(IRQn_Type IRQn, uint32_t * p_priority);
                              ^~~~~~~~~
In file included from ../../external/freertos/source/include/FreeRTOS.h:57,
                 from ../../RUI/Source/main.c:55:
../../RUI/Source/include/FreeRTOSConfig.h:184:10: error: #error "This port requires __NVIC_PRIO_BITS to be defined"
         #error "This port requires __NVIC_PRIO_BITS to be defined"
          ^~~~~
In file included from ../../external/freertos/portable/GCC/nrf52/portmacro.h:33,
                 from ../../external/freertos/source/include/portable.h:53,
                 from ../../external/freertos/source/include/FreeRTOS.h:63,
                 from ../../RUI/Source/main.c:55:
../../external/freertos/portable/CMSIS/nrf52/portmacro_cmsis.h:172:1: error: unknown type name '__STATIC_INLINE'
 __STATIC_INLINE uint32_t ulPortRaiseBASEPRI( void )
 ^~~~~~~~~~~~~~~
../../external/freertos/portable/CMSIS/nrf52/portmacro_cmsis.h:172:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ulPortRaiseBASEPRI'
 __STATIC_INLINE uint32_t ulPortRaiseBASEPRI( void )
                          ^~~~~~~~~~~~~~~~~~
../../RUI/Source/main.c:62:10: fatal error: ble_hci.h: No such file or directory
 #include "ble_hci.h"
          ^~~~~~~~~~~
compilation terminated.
make: *** [../../components/toolchain/gcc/Makefile.common:272: _build/nrf52_xxaa/main.c.o] Error 1
PS C:\Users\Faris\Desktop\rak5010\dev\nRF5_SDK_15.0.0_a53641a\nRF5_SDK_15.0.0_a53641a\RUI\build> make clean
rm -rf _build
PS C:\Users\Faris\Desktop\rak5010\dev\nRF5_SDK_15.0.0_a53641a\nRF5_SDK_15.0.0_a53641a\RUI\build> make p="2 2 4 5 9"
mkdir _build
cd _build && mkdir nrf52_xxaa
Compiling file: main.c
In file included from ../../components/drivers_nrf/nrf_soc_nosd/nrf_soc.h:44,
                 from ../../RUI/Source/include/FreeRTOSConfig.h:34,
                 from ../../external/freertos/source/include/FreeRTOS.h:57,
                 from ../../RUI/Source/main.c:55:
../../modules/nrfx/mdk/nrf.h:94:10: error: #error "Device must be defined. See nrf.h."
         #error "Device must be defined. See nrf.h."
          ^~~~~
In file included from ../../components/libraries/util/app_util_platform.h:57,
                 from ../../RUI/Source/include/FreeRTOSConfig.h:36,
                 from ../../external/freertos/source/include/FreeRTOS.h:57,
                 from ../../RUI/Source/main.c:55:
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:59:28: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_EnableIRQ(IRQn_Type IRQn);
                            ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:70:29: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_DisableIRQ(IRQn_Type IRQn);
                             ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:82:32: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_GetPendingIRQ(IRQn_Type IRQn, uint32_t * p_pending_irq);
                                ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:93:32: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_SetPendingIRQ(IRQn_Type IRQn);
                                ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:104:34: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_ClearPendingIRQ(IRQn_Type IRQn);
                                  ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:117:30: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_SetPriority(IRQn_Type IRQn, uint32_t priority);
                              ^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:129:30: error: unknown type name 'IRQn_Type'
 uint32_t sd_nvic_GetPriority(IRQn_Type IRQn, uint32_t * p_priority);
                              ^~~~~~~~~
In file included from ../../external/freertos/source/include/FreeRTOS.h:57,
                 from ../../RUI/Source/main.c:55:
../../RUI/Source/include/FreeRTOSConfig.h:184:10: error: #error "This port requires __NVIC_PRIO_BITS to be defined"
         #error "This port requires __NVIC_PRIO_BITS to be defined"
          ^~~~~
In file included from ../../external/freertos/portable/GCC/nrf52/portmacro.h:33,
                 from ../../external/freertos/source/include/portable.h:53,
                 from ../../external/freertos/source/include/FreeRTOS.h:63,
                 from ../../RUI/Source/main.c:55:
../../external/freertos/portable/CMSIS/nrf52/portmacro_cmsis.h:172:1: error: unknown type name '__STATIC_INLINE'
 __STATIC_INLINE uint32_t ulPortRaiseBASEPRI( void )
 ^~~~~~~~~~~~~~~
../../external/freertos/portable/CMSIS/nrf52/portmacro_cmsis.h:172:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ulPortRaiseBASEPRI'
 __STATIC_INLINE uint32_t ulPortRaiseBASEPRI( void )
                          ^~~~~~~~~~~~~~~~~~
../../RUI/Source/main.c:62:10: fatal error: ble_hci.h: No such file or directory
 #include "ble_hci.h"
          ^~~~~~~~~~~
compilation terminated.
make: *** [../../components/toolchain/gcc/Makefile.common:272: _build/nrf52_xxaa/main.c.o] Error 1

Power consumption too high after powering on OPT3001

Hi,

I am doing more tests on power consumption
My base current consumption is 0.33mA (with all the sensors off)
When I power on the OPT3001 sensor, the current consumption goes to 1.02mA, so 700uA more
When I set the sensor on power off mode then current drops back to 0.33mA

The datasheet for OPT3001 mentions that the current consumption is 1.8uA, so what can be causing this much current draw?

I know that the capacitor and pullup resistors also draw some current. However, 700uA is too much

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.