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
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.
which part(s) are you unclear about? I am not able to understand how to achive this. Because i have no idea about the binary file format which I want to store on controller(in form of data bytes), so how do i convert it in hex? How do my application will know that where that binary file is located on controller's flash?
Another option is to convert your binary into 'C' source, and build that as part of your project .. No, we can not do that. Because this file is 3rd party module's configuration file for us, we don't have its source code. Kindly guide through the option where i can store file in data bytes form on controller's flash?
Thanks and Regards, Dixit