Commit Graph
46 Commits
Author SHA1 Message Date
hathach fdb4048832 fix CRYPTOCELL_IRQn prevent go to sleep causing high power 2021-06-03 15:32:51 +07:00
hathach 3984c86902 fix some warnings
remove beacon blocking wait for Serial connection
2020-10-05 19:48:10 +07:00
hathach 9a960037bb correct micro ticks 2020-08-20 23:15:40 +07:00
Ha Thach b0311d15e0 Merge branch 'master' into fix-micros 2020-08-20 22:25:35 +07:00
Petr Nejedly 2970c50775 Nenik: Fix FPU-caused power consumption issue, related to #165
Apply the workaround from the Errata 87 of nRF52832
See https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_87.html?cp=4_2_1_0_1_24
2020-08-12 22:04:37 -07:00
Petr Nejedly 3ada760cef Nenik: Re-enable SD specific sleep path, related to #165
When the SoftDevice is active (e.g. as soon as you call Bluefruit.begin()),
standby by __WFE seems to keep external Xtal oscillator running
(at least on nRF52832), increasing the standby power consumption
by 500-800uA. The SD-enabled path was apparently disabled mistakenly
by Nordic, see Nordic post for reference:
https://devzone.nordicsemi.com/f/nordic-q-a/35073/high-power-consumption-of-softdevice/136048#136048
2020-08-12 22:04:30 -07:00
Petr Nejedly a5afbec143 Nenik: Fix scheduling at the end of delay(), #537
See https://devzone.nordicsemi.com/f/nordic-q-a/63828/vtaskdelay-on-nrf52-freertos-port-wastes-cpu-power
for reference
2020-08-12 22:04:24 -07:00
hathach ccd2fe3ca3 micro() use DWT cyclecount if enabled else use rtos tick
DWT must be previously enabled by user sketch with dwt_enable()
2020-08-05 16:46:16 +07:00
hathach 5bb5b132e5 fix power usbready not handled if bluefruit begin() is called fast enough 2020-08-01 21:47:38 +07:00
Henry Gabryjelski 20b080f9a2 Control SysView by CFG_SYSVIEW
Of course, this commit ensures the following:

* Zero change to BSP defaults
* Zero change to compiled code
* Zero change to UI / menu options
2020-03-25 16:20:33 -07:00
Henry Gabryjelski 5ed66d27d1 Apply FreeRTOSV10_Core.patch
Of course, had to apply them manually, as the patch file
did not apply directly.  This is because some files were
renamed / moved relative to the original distribution,
while others were deleted because they did not apply.
2020-02-11 14:03:16 -08:00
hathach 9e75e65c5a increase timer callback task for more usage 2019-11-13 01:00:35 +07:00
hathach 64e176b7cd more warnings clean up 2019-06-07 15:27:57 +07:00
hathach ee6aa455ba clean up 2018-11-09 12:48:43 +07:00
hathach 8045b1ec74 rtos clean up, remove yield at the end of loop() 2018-10-31 17:01:53 +07:00
hathach f4dc92519b fix a cache read issue 2018-10-24 17:10:36 +07:00
hathach f90504964e clean up and remove unused files from sdk 2018-09-01 23:00:29 +07:00
hathach 18e2fb9d58 re-add rtos_realloc() since it is used by nffs 2018-08-23 22:06:46 +07:00
hathach 44996ab09b use __WFE() instead of sd_app_evt_wait when sleep with freeRTOS 2018-08-23 21:54:32 +07:00
hathach 6171cbf046 update freeRTOS port 2018-08-23 21:51:04 +07:00
hathach a0176478ab arduino core build OK with tinyusb 2018-08-23 21:07:53 +07:00
hathach 65a803bfb5 clean up freertos config, add static API support (required by tusb) 2018-08-23 20:40:42 +07:00
hathach 4c7841d55f add freeRTOS v10.0.1 2018-08-23 20:33:33 +07:00
hathach 24ab14d101 remove freeRTOS v8 2018-08-23 20:31:32 +07:00
hathach f2e1aa7fe4 SRAM enhancement 2017-10-09 15:19:47 +07:00
hathach b2e49f2fc9 Adacallback support fromISR call
- change Prioprity for loop() to LOW
- defer interrupt for both hw and sw encoder to ada callback
2017-09-15 17:56:24 +07:00
hathach ebee25d510 freeRTOS is configured as tickless
close #40
2017-09-01 19:02:19 +07:00
hathach 2b74e93fbf clean up 2017-09-01 17:06:08 +07:00
hathach 07a02fb5ec update freeRTOS port to the one in sdk14 2017-09-01 16:45:25 +07:00
hathach 55a922b3c1 close #30 add sysview realtrace support 2017-07-06 12:39:26 +07:00
hathach 117d251d4b fix RTC1 compare interrupt is not clear by bootloader 2017-04-12 12:43:33 +07:00
hathach b37b8bcb77 upgrade port_cmsis_systick.c to matches one in sdk13 for tick fix 2017-04-12 11:24:30 +07:00
hathach 3f83bb06ac move waitForEvent() to wiring, increase configMINIMAL_STACK_SIZE from 60 to 100 2017-04-10 23:52:59 +07:00
hathach d2fc54fab9 Change FreeRTOS tick source from systick to RTC for low-power mode 2017-04-10 15:23:13 +07:00
hathach 291a28b507 add waitForEvent() as macro for __WFE(). Enable Idle Hook and call wfe instruction 2017-04-08 16:59:56 +07:00
hathach f62daa12fd newline correction 2017-04-08 16:31:25 +07:00
hathach dbb8f197ac add rtos_realloc 2017-03-03 00:55:00 +07:00
hathach ecedd3d0e2 refactor linker & startup for dynamic checking stack & heap usage.
- add syscall __sbrk() for malloc function
- add dbgMemInfo() is visual format
- FreeRTOS enable : configCHECK_FOR_STACK_OVERFLOW,
configUSE_MALLOC_FAILED_HOOK, configUSE_TRACE_FACILITY,
configUSE_STATS_FORMATTING_FUNCTIONS
2017-02-17 23:07:30 +07:00
hathach f417662b83 fix OTA with freeRTOS 2017-01-10 21:40:27 +07:00
hathach 26a58c25f9 use RTOS get tick() API for millis() and micros() function. 2017-01-10 16:13:38 +07:00
hathach 525fee8aef increase rtos tick to 10000 (10x) 2017-01-09 22:12:37 +07:00
hathach c4f98edb17 clean up 2017-01-09 16:16:44 +07:00
hathach b278db8755 use counting semaphore for tx buf management 2017-01-06 23:47:29 +07:00
hathach d7bff70718 finish rtos blinky 2017-01-06 18:51:37 +07:00
hathach 11ee5666bd FreeRTOS config
- use systick instead of RTC for tick timer
- use std malloc/free from nanolib
- increase HEAP size to 24KB (TODO should be all memory that left)
2017-01-06 17:57:35 +07:00
hathach 1ca749ba04 add freeRTOS files 2017-01-06 13:32:21 +07:00