We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I currently have a working project for the C167. I need to port this application to the st10f273. How do I convert program and setup the compiler and tools for the st10?
Ask the original programmer about recommendations when porting the code.
The standard rule is of course to know both processors. The quality of the documentation for the older processor will decide how many hidden secrets that there may be lurkin in the code that will show up and bite.
With good separation between hardware mapping and business logic, it's normally quite easy to port code when moving to a different processor - assuming that the new processor can be seen as a super-set of the older processor and doesn't miss some important hardware functionality that is critical to the function of the original code.
And both toolsets.
Also helps if you have a good understanding of microcontrollers & 'C' programming in general.
And a good understanding of the application in question.
Doesn't the Keil 166 tool chain support the ST10 directly as a target? I'd suspect you'd need to create a new project picking the correct Target device, and then using the appropriate libraries/peripherals for the ST part. As other posters have suggested porting usually expects that you have an adequate understanding of both platforms, and the key differences that need addressing. If you don't know these things now, break out the manuals and start figuring it out.
The ST10F273Z4 is also NRND (Not Recommended for New Designs), so it's choice here seems a bit dubious for a new project.
I have only hex file and i want use st10_f_273_M. you believe is it also NRND (Not Recommended for New Designs) for a new project.
You have only hex file? You need the source code if you are going to port any program.
yes. i can disassemble this hex file but this is not mean that i have .asm file. i can modify hex file and develop.
The M part seems more viable
www.st.com/.../PF115134 www.st.com/.../PF105093
But if you plan to reverse engineer and patch things, again a thorough understanding of both parts would seem to be a prerequisite.
i can disassemble this hex file but this is not mean that i have .asm file. sure, not that that is gong to do you much good
i can modify hex file and develop sure, but that is in machine code and no ARM is going to run c16x machine code
you will need to get the source or START FROM SCRATCH
>>but that is in machine code and no ARM is going to run c16x machine code
Pretty sure you'll find that the ST10 isn't ARM based.