Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.

Have an account? Sign In
Continue with Facebook
Continue with Google
or use

What is the capital of Egypt? ( Cairo )

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people's questions & connect with other people.

Sign Up Here
Continue with Facebook
Continue with Google
or use

What is the capital of Egypt? ( Cairo )

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Volt.Tech

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Continue with Facebook
Continue with Google
or use

What is the capital of Egypt? ( Cairo )

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

volt.tech Logo volt.tech Logo
Sign InSign Up

volt.tech

volt.tech Navigation

  • Home
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Tags
  • Category
    • Amplifiers
    • Passives & Protection
    • Clocks & Timing
    • Diodes & Rectifiers
    • FPGAs & PLDs
    • Interface ICs & Transceivers
    • LEDs & Optoelectronics
    • Memories
    • MEMS & Sensors
    • Microcontroller
    • Power Management
    • RF & Microwave
    • Security & Smart Card
    • Motor Drivers
    • Wireless Connectivity
  • Groups
  • Add group
  • Badges
  • Help
  • Home
  • About Us
  • Contact Us
Home/bootable

volt.tech Latest Questions

Anonymous
  • 0
Anonymous
Asked: July 30, 2022In: Microcontroller

Reading the correct reset status from a Bootloadble project.

  • 0

In a Bootloadable project, I need to access CyResetStatus but it always says CY_RESET_SW, regardless of how the chip reset. This is caused by the  the bootloader running on startup, which exits with CySoftwareReset(). This overwrites whatever was in CyResetStatus previously. Is ...Read more

In a Bootloadable project, I need to access CyResetStatus but it always says CY_RESET_SW, regardless of how the chip reset.

This is caused by the  the bootloader running on startup, which exits with CySoftwareReset(). This overwrites whatever was in CyResetStatus previously.

Is there a way for the Bootloadable project to correctly determine the reset status as seen by the Bootloader?

Or, is there a way for the bootloader to copy that information somewhere for the Bootloadable to read? For instance, how could I create a NOINIT variable in both projects that would share the same memory location?

Read less
bootableBootloadablebootloaderCY_RESET_SWCyResetStatusCySoftwareReset()mcureset status
  1. pallavi sharma
    Added an answer on August 1, 2022 at 3:25 pm
    This answer was edited.

    A global in both projects:   CY_SECTION(".reset_info") volatile struct t_reset_info reset_info; Then in the linker script of each project:   MEMORY { rom (rx) : ORIGIN = 0x0, LENGTH = 262144 ram (rwx) : ORIGIN = 0x20000000 - (65536 / 2), LENGTH = 65536 - 128 nld (rw) : ORIGIN = 0x20000000Read more

    A global in both projects:

     

    CY_SECTION(".reset_info") volatile struct t_reset_info reset_info;

    Then in the linker script of each project:

     

    MEMORY
    {
    	rom (rx) : ORIGIN = 0x0, LENGTH = 262144
    	ram (rwx) : ORIGIN = 0x20000000 - (65536 / 2), LENGTH = 65536 - 128
        nld (rw) : ORIGIN = 0x20000000 - 128 / 2, LENGTH = 128
    }
    
    .reset_info(NOLOAD) : ALIGN(8)
    {
        KEEP(*(.reset_info))
    } > nld
    

     

     

    That way, it’s certain that the two programs will both have access to the same NOLOAD memory, and neither will corrupt it by having the memory used for anything else.

    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  • 1 Answer
Answer

Sidebar

Ask A Question

Stats

  • Questions 395
  • Answers 381
  • Comments 0
  • Best Answers 9
  • Popular
  • Answers
  • Manoj

    Configuration using .dp vision in Infineon XDPL series IC .

    • 5 Answers
  • Linto

    Renesas RL78/G14 ADC interface code

    • 4 Answers
  • ashishgawade
    ashishgawade added an answer Hello, The USB-serial-JTAG port can usually reset/put the chip into… March 30, 2023 at 11:00 am
  • ashishgawade
    ashishgawade added an answer Hi Nidhi, Thanks for reaching out to Volt.Tech Engineering Community.… March 28, 2023 at 10:13 am
  • ashishgawade
    ashishgawade added an answer Hello@vikas, It's always recommended to use a bleeder of 100 ohms. Vout of the part has an offset… March 24, 2023 at 9:55 am
  • vikas Nagpal
    vikas Nagpal added an answer Hello, The SMPS reduces the power loss when VDD is… March 22, 2023 at 10:30 am
  • nidhi singh
    nidhi singh added an answer Hello Ashish, No, sorry, that kind of setup is physically… March 20, 2023 at 10:45 am

Users

RisingLeather

RisingLeather

  • 0 Questions
  • 0 Answers
test9420030

test9420030

  • 0 Questions
  • 0 Answers
test30329068

test30329068

  • 0 Questions
  • 0 Answers

Explore

  • Tags
  • Category
    • Amplifiers
    • Passives & Protection
    • Clocks & Timing
    • Diodes & Rectifiers
    • FPGAs & PLDs
    • Interface ICs & Transceivers
    • LEDs & Optoelectronics
    • Memories
    • MEMS & Sensors
    • Microcontroller
    • Power Management
    • RF & Microwave
    • Security & Smart Card
    • Motor Drivers
    • Wireless Connectivity
  • Groups
  • Add group
  • Badges
  • Help

Footer

volt.tech

Volt.Tech

Find your spark

About Us

  • About Us
  • Contact Us
  • Groups

Legal Stuff

  • Privacy Policy
  • Faqs

Follow

© 2022 volt.tech. All Rights Reserved
With Love by volt.tech.