Suraj Sonawane
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    ## Week 1 & 2 Updates: - [x] Studied Zephyr RTOS Basics(Layers) - [x] Completed Device Driver Developemnt Course - [x] Studied EEPROM Functions - [x] Get overview of already developed APIs. # RTOS What Is An RTOS? A Real Time Operating System, commonly known as an RTOS, is a software component that rapidly switches between tasks, giving the impression that multiple programs are being executed at the same time on a single processing core. ![image](https://hackmd.io/_uploads/HyLJGNmsp.png) ![WhatsApp Image 2024-08-28 at 13.34.45](https://hackmd.io/_uploads/ByPITLnsC.jpg) # Zephyr RTOS The Zephyr OS is based on a small-footprint kernel designed for use on resource-constrained and embedded systems: from simple embedded environmental sensors and LED wearables to sophisticated embedded controllers, smart watches, and IoT wireless applications. ![image](https://hackmd.io/_uploads/rkCp88noC.png) # EEPROM Functions * EEPROM.read(address): Reads a byte from the specified address. * EEPROM.write(address, value): Writes a byte value to the specified address. * EEPROM.update(address, value): Writes a byte value only if it differs from the current one. * EEPROM.get(address, data): Reads any data type or object from EEPROM. * EEPROM.put(address, data): Writes any data type or object to EEPROM. * EEPROM[address]: Accesses EEPROM memory as an array. * EEPROM.length(): Returns the number of cells in the EEPROM. ### The Zephyr kernel supports multiple architectures, including: * ARCv2 (EM and HS) and ARCv3 (HS6X) * ARMv6-M, ARMv7-M, and ARMv8-M (Cortex-M) * ARMv7-A and ARMv8-A (Cortex-A, 32- and 64-bit) * ARMv7-R, ARMv8-R (Cortex-R, 32- and 64-bit) * Intel x86 (32- and 64-bit) * MIPS (MIPS32 Release 1 specification) * NIOS II Gen 2 * RISC-V (32- and 64-bit) * SPARC V8 * Tensilica Xtensa ### Zephyr offers a number of familiar services for development: * **Multi-threading Services** for cooperative, priority-based, non-preemptive, and preemptive threads with optional **round robin time-slicing**. Includes POSIX pthreads compatible API support. * **Interrupt Services** for **compile-time registration** of interrupt handlers. * **Memory Allocation Services** for **dynamic allocation** and freeing of fixed-size or **variable-size memory blocks.** * **Inter-thread Synchronization Services** for **binary semaphores**, **counting semaphores**, and **mutex semaphores**. * **Inter-thread Data Passing Services** for **basic message queues**, **enhanced message** queues, and **byte streams**. * **Power Management Services** such as **overarching**, application or policy-defined, **System Power Management** and fine-grained, driver-defined, **Device Power Management**. ## TDA4VM (Dual Arm® Cortex®-A72 SoC) TDA4VM is a part of K3 multicore soc architecture platform. The SoC's are targeted for atomotive to meet complex processing needs of modern embedded products. ## Contribution guidlines ### 1. Contributor Expectations: - The Zephyr project encourages contributors to submit changes as smaller pull requests. (PR should be small.) - How to define small PR: Smaller pr contain logical changes. In case adding large feature adress only smaller part. - Multiple Commits on a Single PR: Contributors are further encouraged to break up PRs into multiple commits. For example, when introducing an extension to an API, contributors can break up the PR into multiple commits targeting these specific changes: 1. Introduce the new APIs, including shared devicetree bindings 2. Update driver implementation X, with driver specific devicetree bindings 3. Update driver implementation Y 4. Add tests for the new API 5. Add a sample using the API 6. Update the documentation ### 2. PR Requirement: 1. Follow [commit msg guidlines](https://docs.zephyrproject.org/latest/contribute/guidelines.html#commit-guidelines). 2. Ref [Linux kernel coding style](https://kernel.org/doc/html/latest/process/coding-style.html). TISCI: Texas Instruments’ System Control Interface (TISCI) defines the communication protocol between various processing entities to the System Control Entity on TI SoCs. This is a set of message formats and sequence of operations required to communicate and get system services processed from the System Control Entity in the SoC. The block diagram of the different Hosts communicating with the System Firmware or System Controller Entity is as shown below. A host uses multiple threads to communicate with the System Firmware. On the K3 devices the following threads are used for each host: High priority thread write to System Firmware Low priority thread write to System Firmware Response thread read from System Firmware Notification thread read from System Firmware Notification Response thread write to System Firmware. For messages running from MCU R5F the communication mechanism is as below: ![image](https://hackmd.io/_uploads/rknrvx_10.png) ## **firmware: ti_sci: Add support for Device control** Texas Instrument's System Control Interface (TI-SCI) Message Protocol is used in Texas Instrument's System on Chip (SoC) such as those in keystone family K2G SoC to communicate between various compute processors with a central system controller entity. TI-SCI message protocol provides support for management of various hardware entitites within the SoC. Add support driver to allow communication with system controller entity within the SoC using the mailbox client. We introduce the fundamental device management capability support to the driver protocol as part of this change. [d-gerlach@ti.com: Contributed device reset handling] Signed-off-by: Dave Gerlach <d-gerlach@ti.com> Signed-off-by: Nishanth Menon <nm@ti.com> ## **firmware: ti_sci: Add support for Clock control** Texas Instrument's System Control Interface (TI-SCI) Message Protocol is used in Texas Instrument's System on Chip (SoC) such as those in keystone family K2G SoC to communicate between various compute processors with a central system controller entity. TI-SCI message protocol provides support for management of various hardware entities within the SoC. Add support driver to allow communication with system controller entity within the SoC using the mailbox client. In general, we expect to function at a device level of abstraction, however, for proper operation of hardware blocks, many clocks directly supplying the hardware block needs to be queried or configured. Introduce support for the set of SCI message protocol support that provide us with this capability. Signed-off-by: Nishanth Menon <nm@ti.com> ## Power and Clock Management **Public APIs are provided to perform:** 1. Device Management: Enable and release a module - This configures both power and clock details for the module and keeps track of its usage. 2. Clock Management: Control the frequency of the clock to a module. 3. Device Reset Control ## **IMP** The TI-SCI node describes the Texas Instrument's System Controller entity node. This parent node may optionally have additional children nodes which describe specific functionality such as clocks, power domain, reset or additional functionality as may be required for the SoC. This hierarchy also describes the relationship between the TI-SCI parent node to the child node. ### *IMP DEFINATION* Texas Instruments’ System Control Interface (TISCI) defines the communication protocol between various processing entities to the System Control Entity on TI SoCs. This is a set of message formats and sequence of operations required to communicate and get system services processed from the System Control Entity in the SoC. TISCI protocol is used to talk to the SYSFW. ## **[IMP LINK FOR API](https://software-dl.ti.com/tisci/esd/20_08_00/2_tisci_msgs/pm/clocks.html)** ## **[IMP Working](https://e2e.ti.com/support/processors-group/processors/f/processors-forum/872281/faq-what-is-dmsc-and-system-firmware-and-how-does-my-software-depend-on-it)**

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully