[PATCH 2/2] bsp/lm4f120: new BSP to support TI LM4F120 XL LaunchPad board

Eugeniy Meshcheryakov eugen at debian.org
Wed Aug 14 21:49:50 UTC 2013


Hi,

14 серпня 2013 о 16:54 +0200 Karel Gardas написав(-ла):
> What makes me more nervous about supporting older chips is addition:
> 
>   rcc &= SYSCONRCC_MOSCDIS;
>   syscon->rcc = rcc;
Ugh, wait, you are clearing all bits but SYSCONRCC_MOSCDIS in RCC? That
could not be right. Did you mean to do

  rcc &= ~SYSCONRCC_MOSCDIS;

??

> 
> ^ w/o this my code is not running at all, i.e. it probably runs on
> default 12 MHz. I'm curious how older chips worked without this.
The switching to PLL procedure for lm3s3749 does not mention MOSCDIS
bit. In fact, it is only mentioned in the register description, but not
anywhere else in the datasheet. I guess it should be safe to clear it,
but I cannot test this on the real hardware till next week.

> I've also added various waits as recommended and as used in TI's own
> StellarisWare library. This is needed as in chip spec., itself,
> there are no such details provided... :-(
In lm3s3749 datasheet there are some things like this spread all over
the datasheet:
    There must be a delay of 3 system clocks after the μDMA
    module clock is enabled before any μDMA module registers are
    accessed.

No word about any longer delays. I guess you can also remove
delay_3_clocks() from syscon.c and use your new function there.

Regards,
Eugeniy Meshcheryakov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.rtems.org/pipermail/devel/attachments/20130814/bdef8741/attachment-0001.bin>


More information about the devel mailing list