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/bootloader

volt.tech Latest Questions

Alex thomas
  • 0
Alex thomas
Asked: May 3, 2023In: Wireless Connectivity

Enter download (bootloader) mode from the software on ESP32- C3?

  • 0

Hello. Is there a way to enter bootloader/ download mode by calling a certain function in the user app? For example, I am aware of a function CODE SELECT ALL esp_restart() that will only reset the CPU and it’ll boot back to the user ...Read more

Hello.

Is there a way to enter bootloader/ download mode by calling a certain function in the user app?
For example, I am aware of a function

CODE SELECT ALL
esp_restart()

that will only reset the CPU and it’ll boot back to the user app.
But what I want is another function or a number of codes that resets the CPU and makes it so that it wouldn’t jump to the user app and rather would stay in the bootloader.
I searched, but could not discover any information on that. I tried configuring GPIO9 strapping pin as an output, writing 0 to it, and calling the esp_restart() function, but that did not work, probably because strapping pins aren’t sampled after the software reset.

Thank You

Read less
bootloadercpuesp32espressifgpio9
  1. Julian White
    Added an answer on May 5, 2023 at 10:00 am

    Hello @Alex, Probably. Note that this register is typically intended for DWC- OTG use, and as the C3 doesn't have this, I am not sure if we tested the functionality there, but you can try the following CODE SELECT ALL (RTC_CNTL_OPTION1_REG,RTC_CNTL_FORCE_DOWNLOAD_BOOT); esp_restart(); Thank You JuliRead more

    Hello Alex thomas,

    Probably. Note that this register is typically intended for DWC- OTG use, and as the C3 doesn’t have this, I am not sure if we tested the functionality there, but you can try the following
    CODE SELECT ALL

    (RTC_CNTL_OPTION1_REG,RTC_CNTL_FORCE_DOWNLOAD_BOOT);
    esp_restart();

    Thank You

    Julian White

    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  • 1 Answer
Answer
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
pallavi sharma
  • 0
pallavi sharma
Asked: June 9, 2022In: Microcontroller

Steps to run a Bootloader from RAM

  • 0

For a project (using Renesas R7FA2L1AB2DFL), a bootloader which can update our firmware is needed. We have decided to copy this bootloader in RAM, and execute it from there since otherwise code flash memory cannot be programmed. We plan to ...Read more

For a project (using Renesas R7FA2L1AB2DFL), a bootloader which can update our firmware is needed. We have decided to copy this bootloader in RAM, and execute it from there since otherwise code flash memory cannot be programmed. We plan to access this bootloader by setting a certain random KEY in no init RAM (setting this is triggered by an external command) and then triggering a reset. Upon reset and before jumping into our application, we check for this KEY and whether it is set or not. If it is set, we can copy our bootloader from code flash to RAM, and proceed to flash the memory.

For me, it is still unclear what a good way would be to realize this process. There are a couple of points in particular

  • Where do I actually copy the bootloader from FLASH to RAM, can I do this best in the FSP system.c file?
  • How do I take preinitialized variables into account?
  • How do I manage that the linker takes into account that the bootloader is executed from SRAM (absolute vs relative addresses)?
Read less
bootloadercode flashflashfspR7FA2L1AB2DFLramrenesassystem.c
  1. dev krishnan
    Added an answer on July 13, 2022 at 4:19 pm

    The FSP flash driver will run from RAM if code flash programming is enabled in the configuration of the driver, for the parts of the flash driver driver that actually do the programming or erasing.

    The FSP flash driver will run from RAM if code flash programming is enabled in the configuration of the driver, for the parts of the flash driver driver that actually do the programming or erasing.

    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  • 1 Answer
Answer
Raja Singh
  • 0
Raja Singh
Asked: May 16, 2022In: Microcontroller

Renesas MUC Bootloader

  • 0

In Bootloader my UART is not working, while I have checked that all UART register is same . I got the garbage data on UART.

In Bootloader my UART is not working, while I have checked that all UART register is same . I got the garbage data on UART.

Read less
bootloaderMUCrenesasrenesas mucuart
  1. Shivali Singh
    Added an answer on May 17, 2022 at 12:43 pm

    Hi Raja, First check if your baudrate is not changed by using SPS1 Register. If SPS1 register is not changed, then Please try to check your MCU clock first , it may be changed, Not call in systeminit function because in bootloader code, cgc_create() function already call. You can comment this cgc_crRead more

    Hi Raja,

    First check if your baudrate is not changed by using SPS1 Register. If SPS1 register is not changed, then Please try to check your MCU clock first , it may be changed, Not call in systeminit function because in bootloader code, cgc_create() function already call.

    You can comment this cgc_create() function in systeminit file, then it will work.

     

    Please feel free to write us for further support.

    Thanks & Regards

    Shivali Singh

    Application Engineer

    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 418
  • Answers 405
  • 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
  • Julian White
    Julian White added an answer Hello Alex, By default, the perpetration of the drivers in… June 7, 2023 at 9:52 am
  • ashishgawade
    ashishgawade added an answer Hi, For enabling the automatic password sequencing you can write… June 2, 2023 at 11:23 am
  • ashishgawade
    ashishgawade added an answer Hello, C19 (parallel to Riseth resistor) marked as NC in… May 31, 2023 at 11:41 am
  • Alex thomas
    Alex thomas added an answer It will not. Note that the 3.3 V LDO doesn't"… May 29, 2023 at 10:15 am
  • nidhi singh
    nidhi singh added an answer Hello, Thanks for reaching out to Volt Tech Engineering Community.… May 26, 2023 at 10:30 am

Users

smartzip

smartzip

  • 0 Questions
  • 0 Answers
test10670802

test10670802

  • 0 Questions
  • 0 Answers
cocobellacb

cocobellacb

  • 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.