10
« on: April 03, 2010, 04:06:14 PM »
I'm using uTasker with MCF5282. Porting was not hard because I know from earlier very good this processor, about 3 days of work. Flash in MCF5282 is organized in 2kbyte blocks and all uTasker flash driver capabilities can be user withouth any problem, uParameterSystem and uFileSystem. I can acknowledge that flash driver operates correct without any modifications. Diferences between MCF52233, MCF52259 and MCF5282:
MCF5282 processor main specificity:
- has probably almost same FEC, UARTa, CAN, DMA timers, FLASH, SRAM, PIT, QSPI, I2C... interfaces as other ColdFire processors
- has internal 2kB cache
- has different ADC
- has different GPIO ports
- has 2 GPT timers
- has not PWM, PHY, USB, additional EdgePort
- has different power management system
- has full scale external bus interface with 7 chip-selects, 24bit address bus and 32bit data bus
- has SDRAM controller with 2 SDRAM chip selects
- has DMA controller memory map little bit different than DMA controller on MCF522XX but with almost same functionality; big disadvantage of DMA is bug in silicon because of which DMA can not be used for UART transmit directly; instead of that you need to use DMA timer with timeout period same to character send time to fire DMA controller on every character if you want DMA supported UART transmit.
To port uTasker to MCF5282 you need mainly change M5223X.h, M5223.c, app_hw_m5223x.h and config.h. You can use most of drivers withouth any changes, biggest digerence is in UART DMA, but you u can use UART in interrupt mode without any changes. In M5223X.h you need to add external bus interface registers, GPIO port registers, defin PLL frequencies, chang interrupt vector table, add PHY registers definition, add new DMA definitions, add second GPT, add SDRAM controller and defferent ADC, change interrupt vector table... Somewhere in early initialization code before any usage of uMemset, uMemcpy, uMalloc you should add this: MPARK = 0x33e100 to enable BCR24BIT and M2_P_EN.
For last few months I'm planing to send to Mark mine MCF5282 uTasker base reference project, but still I didnt, I'll send it during next week. I planed to finish it so it can be used by anybody as real reference project, but I newer finished it.
Best regards
Andrija Ersek