electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

what is porting of code into microcontroller ?


Post new topic  Reply to topic    EDAboard.com Forum Index -> Embedded Systems and Real-Time OS -> what is porting of code into microcontroller ?
Author Message
kishorekumar_ms



Joined: 12 Nov 2006
Posts: 91
Helped: 1


Post02 Apr 2009 8:01   

what is porting of code into microcontroller ?


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.
Back to top
Google
AdSense
Google Adsense




Post02 Apr 2009 8:01   

Ads




Back to top
GetDeviceInfo



Joined: 30 Mar 2009
Posts: 103


Post04 Apr 2009 1:24   

Re: what is porting of code into microcontroller ?


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.

Quote:
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.
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Embedded Systems and Real-Time OS -> what is porting of code into microcontroller ?
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
porting of matlab source code into 'c' for blackfin procssor (1)
Porting MICROCONTROLLER (2)
Porting linux to microcontroller (1)
what is porting w.r.t device driver programming (5)
What is the exact meaning of porting (3)
what are the challenges when porting 0.18 um design to 0.13u (6)
any tool to translate verilog code into system c code ? (3)
embedding compiled code into Verilog RTL code of EEPROM (3)
Converting c++ code into fortran code? (1)
interfacing into ADC of microcontroller (8)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS