examples/AVR/Slave/AVR-Studio/slaveavr.aws
author fbeaulier
Mon, 29 Aug 2011 17:44:49 +0200
changeset 666 9febdd6fdc71
parent 413 57c7a451c671
permissions -rw-r--r--
patch from Stefan Kratochwil <entwicklung@inovel.de> : canfestival-3-fm3_698.patch
Bug:
If an object dictionary entry was requested whose size exceeds
SDO_MAX_LENGTH_TRANSFERT, the memcpy() call at line 139 of objacces.c overwrites
the memory after *pDestData which causes stack corruption.
-> Bugfix:
The bug was corrected by size checking the requested data. An 'Out of
memory' error message will be generated if the requested data exceeds
SDO_MAX_LENGTH_TRANSFERT.

Additional changes:
Added dynamic buffer allocation for the SDO transfer. This feature can be used
if SDO_DYNAMIC_BUFFER_ALLOCATION is defined in config.h. The size of the
dynamically allocated buffer is controlled with
SDO_DYNAMIC_BUFFER_ALLOCATION_SIZE.
-> Note:
This change removes the detection of OD_LENGTH_DATA_INVALID errors!
413
57c7a451c671 New named folder, first DS401 profile module, Makefile
peter
parents:
diff changeset
     1
<AVRWorkspace><IOSettings><CurrentRegisters/></IOSettings><part name="AT90CAN128"/><Files><File00000 Name="I:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\main.c" Position="332 160 1009 573" LineCol="47 0" State="Maximized"/><File00001 Name="I:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\Makefile" Position="262 71 1119 661" LineCol="18 46" State="Maximized"/><File00002 Name="I:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\AVR-Studio\default\Makefile" Position="266 94 939 481" LineCol="0 0" State="Maximized"/></Files></AVRWorkspace>