Problem with system time in lpc176x bsp

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Jan 4 09:48:27 UTC 2016



On 23/12/15 22:22, Marcos Díaz wrote:
> That patch didn't work,
> one reason is that it has a mistake:
> in kern_tc.c you defined this macro:
>
> #define _Timecounter_Release(lock_context) \
> + *_ISR_lock_ISR_disable_and_acquire*(&_Timecounter_Lock, lock_context)
>
> I think you meant:
>
> *_ISR_lock_Release_and_ISR_enable*(&_Timecounter_Lock, lock_context)

Its strange, that this didn't lead to failures in Qemu.

>
> The other reason is that as I said, the driver checks for the flag 
> PENDSTSET of the ICSR register, and I think this approach is wrong, 
> because that flag goes down when the tick interrupt is attended. I 
> used the solution I proposed before, but I'm still seeing some errors. 
> I'll let you know what I find.

Would you mind testing the attached second version of the patch?

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2-0001-score-Fix-simple-timecounter-support.patch
Type: text/x-patch
Size: 11828 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20160104/edb53141/attachment-0001.bin>


More information about the devel mailing list