Probably has to do with structure alignment. Not sure what the packing
options/pragmas are for that situation.

On Thu, Dec 9, 2010 at 4:54 AM, Sébastien MENNETRIER <smennetr...@epsi.fr>wrote:

> Hello,
>
> I work on a MCF5235 coldfire and with "uClinux-dist-20101026". I try to use
> the eTPU.
> I have install the driver and dowload the application to use eTPU on
> freescale website.
> When I start the programme, there are an error : "Access Error Exception
> 12: Error on data read".
>
> So I modify the file :
> "uClinux-dist/linux-2.6.x/arch/m68knommu/platform/523x/config.c".
> I have modify "*gpacr" and all "*pacrx" to obtain the access to the
> register.
>
> uint8_t *gpacr = (uint8_t *) (MCF_IPSBAR + MCF523x_GPACR);
> uint8_t *pacr1 = (uint8_t *) (MCF_IPSBAR + MCF523x_PACR1);
>  uint8_t *pacr4 = (uint8_t *) (MCF_IPSBAR + MCF523x_PACR4);
> uint8_t *pacr7 = (uint8_t *) (MCF_IPSBAR + MCF523x_PACR7);
>  uint8_t *pacr8 = (uint8_t *) (MCF_IPSBAR + MCF523x_PACR8);
>
> //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> // *gpacr = 0x04;
> // *pacr1 = 0x40; /* EIM required for Chip Select access */
> // *pacr4 = 0x40; /* I2C */
> // *pacr7 = 0x44; /* INTC0 & 1 handy for debug */
> // *pacr8 = 0x40; /* FEC MAC */
> //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>                 *gpacr = 0x0C;
> *pacr1 = 0x44; /* EIM required for Chip Select access */
>  *pacr4 = 0x44; /* I2C */
> *pacr7 = 0x44; /* INTC0 & 1 handy for debug */
> *pacr8 = 0x44; /* FEC MAC */
>
>
> But  this change did not solve the problem.
>
> Can you help me please?
>
>
> MENNETRIER Sébastien
> FRANCE
>
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev@uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev@uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
>
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to