Author Topic: inherited project for freescale MCF52258 with M5223x hardware file  (Read 44 times)

Offline Genisuvi

  • Newbie
  • *
  • Posts: 7
    • View Profile
As I said in other post I have inherited a uTasker 1.3 based project for M52258 coldifre V2 MCU.
Currently the board is programmed with the fw generated by this project and execution seems to be working as expected for years. But looking at the file project organization I have some doubts.
I have no documentation about some decissions. I hope someone can bring me some light to my darkness and clarify if it is all correct and why doing on that way. I share an image:



Linker command files has M5225x Icf extensions file whereas Hardware files compile the M5223X.c file. 
I would like to know if there could be some reason for that. Does it mean that this file is compliant with M522XX device family?

Thanks in advance.
« Last Edit: March 07, 2019, 09:13:53 AM by Genisuvi »

Offline Genisuvi

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: inherited project for freescale MCF52258 with M5223x hardware file
« Reply #1 on: March 07, 2019, 11:41:42 AM »
I can answering myself.

I have just found that M5223x supports M5225x subfamily too.
It seems to be another hardware file app_hw_m5223x.h that defines M5225x.
Now, I understand yet.

Regards.


Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2955
    • View Profile
    • uTasker
Re: inherited project for freescale MCF52258 with M5223x hardware file
« Reply #2 on: March 07, 2019, 08:06:17 PM »
Hi

Originally there was the M5223x but not M5225x, which explains the name of the HW file.
When the M5225x came along the same file was used for it (with new options), rather than adding a new one or renaming it.

Regards

Mark