Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

what is porting of code into microcontroller ?

Status
Not open for further replies.

kishorekumar_ms

Member level 5
Joined
Nov 12, 2006
Messages
84
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,815
hello all,

Please answer to my questions,
what is porting of code into microcontroller or microprocessor ?
what are basic steps to port a code into microcontroller or microprocessor ?

Thanks & Regards,
M.S. Kishore Kumar.
 

Code written for one device, may not run on another due to references made to differing device hardware. The code must be changed to account for these differences. This is referred to as 'porting' the code.

If the code is intended to cross architectual platforms, it should be written in the highest level language possible. This then should allow you to simply recompile the code for the specific device. Even then, any references made to the specific architecture will have to be adjusted.

Porting is generally not used to mean physically loading code into the device.

what are basic steps to port a code into microcontroller or microprocessor ?
If you are wondering about loading code;
There are as many ways of loading code as there are devices
the most basic (but not the simplest) is the parallel load where manufacturers described signalling is applied to the device and code is clocked in to the internal memory. Luckily, manufacturers have supplied many alternatives, typically via serial interfacing. Upon a specific reset, the device will run a manufacturer's installed boot loader code which allows attachment to a programmer or PC. From there it is a simply matter of loading and verifying code, which will run on the next reset.
 
  • Like
Reactions: vreg

    vreg

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top