µC/OS-III Release Notes

Version 3.05.00

Release date : 2015-05-29

Requirements

  • µC/LIB V1.36.02 or more recent
  • µC/CPU V1.30.00 or more recent

New features & improvements

  • Dynamic tick: Dynamic tick mode is now available to further reduce power and cpu usage
  • Stack Redzone: An optional stack redzone can be enabled to detect stack overflow while debugging
  • Monitors: New synchronization construct offering functionality similar to condition variables
  • Debugging: Improved debugging with a new check for invalid calls before the kernel is started
  • Idle Task: To reduce footprint the idle task is now optional
  • Tick Task: For very low footprint application that do not require a time base the tick task is now optional
  • Performance and Footprint: Various performance improvements and ram usage reduction
  • C28x: Added support for the Texas Instrument C28x family of 32 bit MCUs

API Changes

  • Task registers are now 64 bits wide by default on 64 bit platforms
  • Task registers are now available before the kernel is started
  • The following functions can now be used before the kernel is started : OS_TaskChangePrio(), OSSemSet(), OSTaskSuspend()
  • New function OSTmrSet() to set/reset a timer without having to delete it
  • OSTaskCreate() will now return an error if the given stack is too small for even a context stack frame
  • OSStart() will now return an error if no user task are created
  • OSSafetyCriticalStart() is now embedded withing the OSStart() code

Deprecated Features

  • Multi-Pend: The multi pend feature is now deprecated and not recommended for new designs. It remains fully supported for the 3.05 release series.
  • Deferred interrupts: Deferred interrupt processing is now deprecated and not recommended for new designs. This feature remains fully supported for the 3.05 release series.

Bug fixes

  • OSMutexPend(): Check for overflow with nested pending
  • OSTaskSuspend(): Check for overflow of the suspend nesting counter

Ports

  • ARM-Cortex-A9: Deprecated port permanently removed from the distribution use ARM-Cortex-A instead
  • Renesas RX: Removed multiple deprecated ports in favor of the generic RX port suitable for all rxv1 and rxv2 architectures
  • MicroBlaze: Fixed capitalization of the assembly file
  • ARM-Cortex-A: Big endian support for all the supported toolchains
     

Version 3.04.05

Release date : 2015-02-16

Requirements

  • µC/LIB V1.36.02 or more recent
  • µC/CPU V1.30.00 or more recent

New features & improvements

  • ARM-Cortex-A: Endianness is now detected at compile time to support big endian ARMV7 A and R architectures
  • ARM-Cortex-A50: RealView port updated for ARM Compiler 6
  • ARM-Cortex-A50: GNU-like toolchain support
  • ARM-Cortex-M4: New port for TI Code Composer Studio
  • POSIX: New port for POSIX like system using the gnu toolchain
  • RL78: Port for the GNU toolchain
  • Timers: New function OSTmrSet() to set/reset a timer

API Changes

  • N/A

Bug fixes

  • Mutex: Check for overflow with nested pending
  • Statistics: Fixed 0% cpu usage sometime reported as 100%
  • Timers: Fixed a race condition when creating and deleting a timer at about the same time
  • Timers: Reduced some critical section length

Ports

  • ARM-Cortex-A: Fixed interworking linking issues under the GNU toolchain
  • ARM-Cortex-A: Properly restore FPEXC on a context switch
  • ARM-Cortex-A50: Fixed inconsistent saving of ELR and LR on a context switch
  • ARM-Cortex-M0,3 & 4: Missing call to the task switch hook added in OSStartHighRdy
  • ARM-Cortex-M0 & 3: Stacks are now forced to be aligned to 8 byte for AAPCS compliance
  • MicroBlaze: Fix port name capitalization which could cause issues under case sensitive OS
  • Renesas RX: Fixed overwriting some user enabled interrupts when initializing the port
  • Win32: Invalid access to a TCB's NamePtr fixed when debug is disabled
  • Win32: Return a valid stack address even if unneeded to prevent errors and warnings
  • Win32: Removed the space in the Visual Studio path component

Version 3.04.04

Release date : 2014-03-12

Requirements

  • µC/LIB V1.36.02 or more recent
  • µC/CPU V1.30.00 or more recent

New features & improvements

  • N/A

API Changes

  • N/A

Bug fixes

  • OSMutexDel(): Deleting a mutex not owned by any tasks with the option OS_OPT_DEL_NO_PEND would cause a null pointer access. This issue was introduced in version 3.04.03.
  • os.h, os_tmr.c: Fixed a few local include directives which were using brackets <> instead of quotes ""
  • Minor corrections to some function comment headers

Ports

  • ARM-Cortex-M4: Fixed an assembler warning with the RealView port.
  • ARM-Cortex-A50: Default exception level changed to EL1. The option to switch to EL1 now selects EL3 instead.
  • ARM-Cortex-A50: Handling of the SIMD register bank can now be disabled at compile time.
  • ARM-Cortex-A50: Performance improvements for task-to-task context switches.

Version 3.04.03

Release date : 2014-02-21

Requirements

  • µC/LIB V1.36.02 or more recent
  • µC/CPU V1.30.00 or more recent

New features & improvements

  • ARM-Cortex-A50: New port for the 64-bit series of Cortex-A50 cpu core implementing the ARMv8-A architecture. The following features are included.
    • Support for the ARM Compiler Toolchain and GNU toolchain.
    • AArch64 support (AArch32 may be supported by our 32-bit ARM-Cortex-A port in the future if there's enough interest)
    • Support for the embedded FPU and SIMD extensions
  • Mutex priority inheritance: Improved the robustness of the priority inheritance feature of µC/OS-III:
    • Deleting and Pend aborting mutexes are now guaranteed not to cause priority inversion.
    • Deleting a task will now automatically release all the mutexes owned by that task.
    • Priority inheritance is correctly and deterministically applied in the case of intentional deadlocks. (Two or more tasks pending on mutexes owned by each other.)
    • Breaking a deadlock using OSMutexPendAbort() or OSMutexDel() won't create priority inversion even if other mutexes are still actively owned. Please note that while the kernel will correctly prevent priority inversion, breaking a deadlock using OSMutexPendAbort() is NOT a recommended coding practice.

API Changes

  • N/A

Bug fixes

  • os.h: Removed double "??" characters in a comment that could be confounded for a trigraph by some preprocessors.
  • OSFlagPendAbort() will now, as documented, abort the highest pending task when called with the OS_OPT_PEND_ABORT_1 option.
  • The declaration of OSSemDel() is now correctly preprocessed out when OS_CFG_SEM_DEL_EN is disabled (MISRA compliance)
  • Minor performance improvement to the tick task by removing an unneeded check.
  • Minor improvements to MISRA compliance
  • Various corrections to the comments.

Ports

  • MIPS32-4k: Various bugfixes and improvements
  • ARM-Cortex-A: GNU assembly files extension changed from .s to .S
  • ARM-Cortex-M: Various improvements to MISRA compliance
  • ARM-Cortex-M: Added an instruction barrier after triggering a context switch to prevent issues with highly optimized code. This could only affect usage of the internal API for benchmarking purposes, no user applications should have been affected by this issue.

Version 3.04.02

Release date : 2013-12-20

Requirements

  • µC/LIB V1.36.02 or more recent
  • µC/CPU V1.30.00 or more recent

New features & improvements

  • ARM-Cortex-A: Added a global variable OS_CPU_ARM_DRegCnt to hold the number of VFP/NEON registers present in the context switch stack frame. This is meant to help kernel aware debugger decode a task's stack.
  • ARM-Cortex-M3 & M4: Various performance improvements on all supported toolchains.
  • Online Documentation: Reference manuals now available online. Please visit doc.micrium.com for the latest versions. This will be the last release of uC/OS-III to include the PDF manual within the source package.
  • Renesas RX: Various improvements:
    • Performance improvements on all supported toolchains.
    • Compatibility fix for IAR EWRX 2.50.
    • Functionalities of the RX-FPU port are now merged into the generic RX port.
    • OS_KA_IPL_Boundary can be left undefined without causing a compilation error in the IAR port.

API Changes

  • N/A

Bug fixes

  • IAR TLS: Fixed compilation errors in os_tls.c when building with the full implementation of DLIB.
  • M14K: Correctly restore the special purpose register on a context switch.
  • os_core.c, os_task.c: Deleting a task pending on an object without timeout or deleting the object itself may have caused a null pointer access. This issue only affected version 3.04.00 and later of the kernel.
  • os_mutex.c: Aborting a mutex pend in certain conditions left the mutex owner at an elevated priority.
  • Various typos and formatting fixes.

Ports

  • M14K: Correctly restore the special purpose register on a context switch.
  • Renesas RX: Fixed compilation error when OS_KA_IPL_Boundary was left undefined in the IAR port.

Deprecated features

  • The following ports are now supported by the generic Renesas RX port and will be removed in a future release.
    • RX200
    • RX600
    • RX-FPU
  • The following ports are now supported by the generic ARM-Cortex-A port and will be removed in a future release.
    • ARM-Cortex-A9
    • ARM-Cortex-A8 - Unreleased, may have been distributed in some demonstration projects.

Version 3.04.01

Release date : 2013-10-17

Requirements

  • µC/LIB V1.36.02 or more recent
  • µC/CPU V1.29.01 or more recent

New features & improvements

  • Footprint: Reduced overall RAM usage when some features like debugging are disabled.

API Changes

  • N/A

Bug fixes

  • Timers: Fixed a bug where a timer that expires may cause some of the other timers to miss one tick. This issue only affected version V3.04.00 of the kernel.
  • Timers: To be consistent the behavior of previous versions the scheduler is now locked again when calling a timer's callback function. The modifications to the timer list for V3.04.00 had the potential to cause a deadlock if a user application attempted to acquire a resource from within the callback.
  • OS_IntQTaskInit(), OS_IntQPost(): Unecessary checks of p_err removed. The validation is already done by the callers.
  • Various corrections to the comments.

Version 3.04.00

Release date : 2013-09-19

Requirements

  • µC/LIB V1.36.02 or more recent
  • µC/CPU V1.29.01 or more recent

New features & improvements

  • Tick and Timer wheels: Removed the tick and timer wheels. Those features were re-implemented using lighter and faster delta and linear lists respectively. This result in even better performance and reduced maximum interrupt disable time. See chapters 5 & 12 of the user manual for details.
  • C++ compilation: Better support for building in C++.
  • ARM Cortex-A: New port for the entire 32-bits ARM Cortex-A family. Support for the following compilers/toolchains is included:
    • ARM Compilation Tools (DS-5)
    • GNU
    • IAR EWARM
    • TMS470 Compiler Toolchain (TI Code Composer Studio)

API Changes

  • N/A

Bug fixes

  • os_stat.c, OSStatTaskCPUUsageInit(): OSTaskSuspend() could be referenced even with OS_CFG_TASK_SUSPEND_EN disabled.
  • os_core.c, OS_IdleTask(): Unused argument p_arg now referenced using '(void)&p_arg' instead of 'p_arg = p_arg' to prevent a warning from static analysis tools.
  • os.h, Comment about os_tcb.TickRemain now properly name the statistic task.

Ports

  • Cortex-M4: Fixed FPU support for the ARMCC/RealView port.
  • Cortex-M4: GNU port now properly included in the release package.

Version 3.03.01

Release date : 2012-05-17

Requirements

  • µC/LIB V1.36.02 or more recent
  • µC/CPU V1.29.01 or more recent

New features & improvements

  • Removed OS_MsgPoolCreate() to remove calling a function used by a single other function, OS_MsgPoolInit().
  • Changed the macro name OS_CRITICAL_ENTER_CPU_CRITICAL_EXIT() to OS_CRITICAL_ENTER_CPU_EXIT() to make the macro less than 32 significant characters.
  • Made some improvements to satisfy more MISRA-C:2004 rules.

API Changes

  • N/A

Bug fixes

  • os_msg.c, OS_MsgQPut(): Added missing 'p_msg->NextPtr = (OS_MSG *)0;' when adding first entry in queue.

Version 3.03.00

Release date : 2012-02-14

Requirements

  • µC/LIB V1.36.02 or more recent
  • µC/CPU V1.29.01 or more recent

New features & improvements

  • Added Thread Local Storage (TLS) support. See chapter 20 of the User's Manual.
  • Added OSTaskRegGetID() to assign task register IDs dynamically.
  • Now able to Suspend and Resume tasks from ISRs.
  • Added option 'OS_OPT_TASK_NO_TLS' to OSTaskCreate() to specify that a task will not require TLS.
  • Removed OSMsgPoolExtend() since it was not documented and not used.
  • Added global OSStatTaskCPUUsageMax to keep track of peak CPU usage. This value is reset by OSStatReset().
  • Added per task .CPUUsageMax which tracks the peak CPU usage of each task.
  • Added .NbrUsedMax entry to the message pool manager to keep track of maximum OS_MSG usage.
  • Computation of CPU usage has now a resolution of 1/100th of a percent.

API Changes

  • N/A

Bug fixes

  • N/A

Version 3.02.00

Release date : 2011-08-01

Requirements

  • µC/LIB V1.26.00 or more recent
  • µC/CPU V1.25.00 or more recent

New features & improvements

  • Added note to clarify use of OS_OPT_LINK_DLY option on OS_TmrLink() at OSTmrStart().
  • Adjusted order of operation on Tick Wheel during insert (OS_TickListInsert) to first set link pointers on new object, then add it to the linked-list.
  • Changed default OS_CYCLES to 32-bits.
  • Adjusted version to new format Vx.yy.zz.
  • Re-arranged order of data structure members on OS_TCB to keep non-optional items at the beginning of the structure.
  • Changed error codes to enum.
  • Converted OS object types to use CPU_TYPE_CREATE.
  • Reworked check to not allow to create multiple tasks at idle task priority.
  • Added changes to priority handling to allow word addressable architectures.
  • Adjusted copyright in file headers for source available distribution.

API Changes

  • N/A

Bug fixes

  • Initialize Interrupt Queue Handler Task before any other task to prevent usage of 'OSIntQNbrEntries' uninitialized.
  • Corrected use of disabled variable 'OSCfg_ISRStk'.
  • Corrected per task CPU usage statistics computation.
  • Removed OS_TMR_TICK datatype; converted OSTmrTickCtr to OS_TICK to be consistent with other OS_TMR structure fields.
  • Prevent OSSchedLock/Unlock() to be called from ISR.
  • Corrected alignment check on OSMemCreate() to handle cases where sizeof(void *) == 1.

Version 3.01.02

Release date : 2010-05-14

Requirements

  • µC/LIB
  • µC/CPU

New features & improvements

  • Added error checking for time stamp configuration #defines.
  • Removal of some MISRA C 2004 errors.
  • Moved OSInitHook() to beginning of OSInit() to be consistent with documentation section about differences between µC/OS-II and µC/OS-III port functions.
  • Removed duplicate call to OS_TickListRemove() in OS_TickListUpdate().
  • Added OSStatResetFlag into OS_StatTask to force reset of the computed statistics.
  • Added OSIntQMaxNbrEntries into computed statistics.

API Changes

  • N/A

Bug fixes

  • Corrected OS_MEM structure definition for field FreeListPtr.
  • Corrected OS_TmrLink() where number of entries in spoke was incremented twice for a particular case, and timer previous pointer was alwyas being cleared before exit the function.
  • Corrected OSTaskChangePrio() to update task priority if task is pending on Task Queue, Task Sem or Flag.
  • Corrected OSTaskDel() TCB clean up where it could potentially be skipped if context switch happened before OSSched().
  • Corrected sections of code conditional on OS_CFG_Q_EN & OS_CFG_TASK_Q_EN.
  • Corrected DbgListRemove procedures where it did not clear the DbgPrevPtr of the first object when the head of the list was removed.
  • Removed sections where TimeQuantaCtr was incorrectly reset.
  • Corrected NULL pointer de-reference on OSMutexDel() with OS_OPT_DEL_ALWAYS option when Mutex created and deleted right away.
  • Reordered DbgListAdd/Remove to prevent a still linked object from being cleared.
  • Corrected DbgList removal in OSTmrDel().
  • Added critical section in OSMemCreate().
  • Removed access to uninitialized kernel objects (p_obj->Type).
  • Corrected port's OSTaskSwHook where OSSchedLockTimeMaxCur was not always cleared between context switch.
  • Corrected NULL pointer de-reference of p_tcb on OS_SchedRoundRobin(), if no TCB in the ready list.
  • Adjusted check for nesting interrupts on OSSched() by removing conditional compilation based on OS_CFG_CALLED_FROM_ISR_CHK_EN.
  • Adjusted formatting & function descriptions.

Version 3.01.01

Release date : 2010-01-11

Requirements

  • µC/LIB
  • µC/CPU

New features & improvements

  • Added PERIODIC and MATCH modes to OSTimeDlyHMSM().
  • Improved the performance of the scheduler lock time measurement.
  • Added OS_CFG_TS_EN in OS_CFG.H which is used to enable/disable time stamping.

API Changes

  • N/A

Bug fixes

  • OSTaskStkChk() now returns the number of free and used 'ELEMENTS' instead of 'BYTES'. This is done for consistency.
  • Fixed a bug with OS_PendListRemove1() which removes a task from a wait list.
  • Fixed a bug when pend-aborting a object where a task has multi-pended on the same object multiple times.
  • Fixed a bug when posting to an event flag group where there are no task(s) pending on the event flag group.

Version 3.01.00

Release date : 2009-12-07

Requirements

  • µC/LIB
  • µC/CPU

New features & improvements

  • We removed OS_AppInitHookPtr because it was impossible to initialize this pointer prior to dereferncing it. OSInit() set the pointer to NULL and didn't allow the user to change its value before using it.
  • Added a new operating mode to OSTimeDly(), i.e. OS_OPT_TIME_PERIODIC
  • Added the function OSSafetyCriticalStart() which, when called will prevent further kernel objects from being created. In other words, after calling this function, you will no longer be allowed to create tasks, semaphores, mutexes, etc. In some safety critical systems, it's not allowed to create kernel objects once initialization has completed.
  • Replaced: 'for (;;)' to 'while (DEF_ON)' for tasks to represent that the loop runs while power is applied
  • The timestamp is now read when a task is created to determine when the task starts. This is used to compute the per task CPU usage.

API Changes

  • The API for OSTaskCreate() changed. The seventh argument changed from: 'CPU_STK *p_stk_limit' to 'CPU_STK_SIZE stk_limit'. This argument now represents the number of CPU_STK elements left before the stack is empty. This is used when the CPU supports stack limit checking.

Bug fixes

  • Fixed a bug when an object was pend aborted when using OSPendMulti().
  • Fixed a bug when an object was deleted when using OSPendMulti().
  • Statistics are reset after determining CPU usage capacity.
  • Fixed a bug in OSPendMulti(). The scheduler was locked during a critical region that should have been protected by disabling/enabling interrupts.
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值