[En-Nut-Discussion] IP Checksum calculation broken. Reenabled old algorithm for the meantime.

Ole Reinhardt ole.reinhardt at embedded-it.de
Fri Jul 6 12:04:49 CEST 2012


Hi Harald and Ulrich,

> > So why not setting it to 4 and let's fix all the other errors, Then we
> > could investigate again with the 2.
> 
> OK, we leave memory alignment for CM3 on 4. This will also keep malloc compatible to the standard alignment, the largest __alignof()__, as Bernard stated.
> 
> If changed later, we need to look into malloc too.

Yes, I agree. One point is that some _peripherals_ of the LPC needs a 4
byte alignment. e.g. the IAP (flash programmer rom code) and some other
peripherals like the EMAC too. So I strongly advice to keep at least the
malloc aligned to 4. 

But anyway for now everything seems to be ok. We just should keep this
in mind.

Bye,

Ole

-- 

Thermotemp GmbH, Embedded-IT

Embedded Hard-/ Software and Open Source Development, 
Integration and Consulting

http://www.embedded-it.de

Geschäftsstelle Siegen - Steinstraße 67 - D-57072 Siegen - 
tel +49 (0)271 5513597, +49 (0)271-73681 - fax +49 (0)271 736 97

Hauptsitz - Hademarscher Weg 7 - 13503 Berlin
Tel +49 (0)30 4315205 - Fax +49 (0)30 43665002
Geschäftsführer: Jörg Friedrichs, Ole Reinhardt
Handelsregister Berlin Charlottenburg HRB 45978 UstID DE 156329280 




More information about the En-Nut-Discussion mailing list