This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Store a binary file inside Microcontroller's internal flash along with the main application code

Hi,
I have a requirement where i need to store a binary file inside Microcontroller's internal flash, which i need to send serially to a module connected on UART later in the main application execution.

In this i came across some options where i convert my binary file in to hex, merge that hex file with main application hex file and then load it on the controller via a programmer,but i am not much clear about the option so left it aside.
ISP is Not possible due to fixed system architecture.
Can anyone suggest option by which i can achieve my requirement?

Thanks indeed,
Dixit

Parents
  • Inside the flash it won't be a file - it's just data.

    " i came across some options where i convert my binary file in to hex, merge that hex file with main application hex file and then load it on the controller via a programmer"

    Yes, that would be the obvious approach - which part(s) are you unclear about?

    Another option is to convert your binary into 'C' source, and build that as part of your project ...

    All of this is general - nothing specific to 8051, or even Keil.

Reply
  • Inside the flash it won't be a file - it's just data.

    " i came across some options where i convert my binary file in to hex, merge that hex file with main application hex file and then load it on the controller via a programmer"

    Yes, that would be the obvious approach - which part(s) are you unclear about?

    Another option is to convert your binary into 'C' source, and build that as part of your project ...

    All of this is general - nothing specific to 8051, or even Keil.

Children