Hans-Erik Floryd
d96f7cefef
Declare rxpdo, txpdo as arrays
...
Rxpdo/txpdo were declared as external pointers if MAX_MAPPINGS2/3 were
0. However they must be declared as arrays for an external unit to be
able to use them as such.
Change-Id: I4bd547ae809ccfcb2dc1761f0f511f7e6088b712
2022-06-02 13:59:43 +02:00
nakarlsson
fa0d6bf4d6
Merge pull request #116 from lrsdnlssn/master
...
Add support for Explicit Device Identification
2022-05-31 06:48:38 +02:00
Lars Danielsson
69b1049970
Add support for Explicit Device Identification
...
Change-Id: Idbf636f37c02923d251742cc5f49ff1579eaebc6
2022-05-30 15:51:20 +02:00
Hans-Erik Floryd
3c5af65be6
Merge pull request #109 from OpenEtherCATsociety/fix/download_segmented_completeaccess
...
Fix errornous segmented download CompleteAccess
2021-12-16 14:06:50 +01:00
andreas karlsson
df0d169eef
Fix errornous segmented download CompleteAccess
...
On the final segment the SDO shoud be written using the
pre-allocated buffer used to store segments during transfer.
When completed the pre-allocated buffer is written to the SDO.
This fix change to correct complete_access_subindex_loop
- buffer, ESCvar.mbxdata
- to use the lookup indexes for ESCVar.index -> nidx and
ESCvar.subindex -> nsub.
2021-12-16 10:36:54 +01:00
nakarlsson
311977e47a
Merge pull request #105 from Joanle/fix-eeprom-command-def
...
correct eeprom command
2021-10-26 16:02:15 +02:00
Juan Leyva
da33a714a1
Merge branch 'fix-eeprom-command-def' of https://github.com/Joanle/SOES into fix-eeprom-command-def
2021-10-26 08:50:04 -05:00
Juan Leyva
cd12c0d156
correct eeprom command
...
change reload command to the correct value
2021-10-26 08:49:41 -05:00
nakarlsson
ff6be22c80
Merge pull request #106 from hefloryd/master
...
Bump build platform and fix GCC9 warnings
2021-10-26 15:35:44 +02:00
Hans-Erik Floryd
2808e95668
Bump cmake version
...
Specifying a minimum cmake version 0f 2.8.4 triggers a warning with
never cmake, due to backwards compatibility issue. Bump to 2.8.12
which is the oldest version without the warning.
2021-10-26 09:36:04 +02:00
Hans-Erik Floryd
097477035d
Fix address-of-packed-member warnings
...
GCC9 introduced an address-of-packed-member warning that triggers in
esc_coe.c. The issue is that a packed struct has an overall alignment
of 1, and taking the address of a member in a packed struct is not
guaranteed to have any particular alignment. However, in esc_coe these
structs are always overlayed on aligned memory so in practice there is
no problem.
Fix the problem by explicitly setting the minimum alignment for the
structs used in this manner. Also fix an instance where an unaligned
pointer was used but never dereferenced (by changing the type of the
pointer from uint32_t* to void*).
2021-10-26 09:36:04 +02:00
Hans-Erik Floryd
4d9da268be
Bump build platform
...
Ubuntu 16.04 is now deprecated. Build using latest LTS.
2021-10-25 09:57:18 +02:00
Juan Leyva
5e94f0bb81
correct eeprom command
...
change reload command to the correct value
2021-10-15 23:32:20 -05:00
Hans-Erik Floryd
4549d0af9a
Merge pull request #103 from MechaMagpie/etherberry
...
Etherberry support
2021-09-06 16:44:29 +02:00
MechaMagpie
98a90d61ea
Add simple demo for Raspberry Pi
...
Add a demo application for Raspberry Pi with a LAN9252-based EtherCat hat,
such as with the SG Electronics Systems EtherBerry.
2021-09-02 16:40:40 +02:00
iwoodsawyer
b3e2a0a2c1
Add HAL for Raspberry Pi / LAN9252
...
Add support for EtherCAT slave HAT with LAN9252 chip (like EasyCAT or
EtherC/EtherBerry) for Raspberry Pi using the BCM2835 library.
2021-08-31 13:40:21 +02:00
nakarlsson
2fd5088fea
Merge pull request #100 from m-dema/patch-1
...
Fix inconsistent function name
2021-05-10 14:16:23 +02:00
m-dema
c84a3ffb4d
Fix inconsistent function name
...
the function is different in header declaration (EOE_ecat_get_mac)
2021-05-06 17:05:46 +02:00
nakarlsson
1f24b72c5c
Merge pull request #99 from lrsdnlssn/master
...
Fix segmented download using complete access
2021-04-06 14:23:36 +02:00
Lars Danielsson
e40d95cc1e
Fix segmented download using complete access
...
Change-Id: If6060fb5bb1084c88c4159e2bcd38ba9b8eb3d40
2021-04-01 11:05:28 +02:00
nakarlsson
f244ea522d
Merge pull request #98 from hefloryd/feature/gh-actions
...
Migrate to Github Actions
2021-02-17 16:45:26 +01:00
Hans-Erik Floryd
0d6f7de0e6
Migrate to Github Actions
2021-02-17 16:33:17 +01:00
Hans-Erik Floryd
591d08d474
Merge pull request #97 from hefloryd/master
...
Regenerate rtl_xmc4_dynpdo
2021-02-11 17:09:34 +01:00
Hans-Erik Floryd
85319b8524
Regenerate rtl_xmc4_dynpdo
...
Regenerate source and artifacts from slave.esx using EtherCAT Slave
Editor.
2021-02-11 16:40:22 +01:00
Hans-Erik Floryd
eb1848a9a3
Merge pull request #92 from lrsdnlssn/master
...
Let hook modify size, and also fix handling of large objects
2021-02-10 16:12:33 +01:00
Lars Danielsson
8d5afc9b2d
Convert bits to bytes in the correct place
2021-02-10 14:58:15 +01:00
Lars Danielsson
87b2c1eb93
Fix for very large objects (with Complete Access)
...
Change-Id: I95c7b0f73e581ef6dace14e9b8f02ceff50f38ca
2020-10-26 10:57:51 +01:00
Lars Danielsson
48772707a6
Fix handling of large objects in SDO Upload with Complete Access
...
Change-Id: I64471e2ac1ac1865db43c48fd15b0e1d44651a66
2020-10-19 14:22:02 +02:00
Lars Danielsson
c814d2dacf
Allow the pre_object_upload_hook to modify size
...
Change-Id: Ia95a1e8e3ba7e6bde3286f4eb15f8ba7f0cb85b2
2020-10-19 14:21:09 +02:00
Hans-Erik Floryd
71bb37091f
Merge pull request #89 from lrsdnlssn/master
...
Allow Download Complete Access data size to be less than full size
2020-09-29 15:39:39 +02:00
Lars Danielsson
74d710b8b7
Add more data types which may have flexible length
...
Change-Id: Ia78d89adfb4017e970ace7fdf0b1bccffc8ac357
2020-09-28 15:41:27 +02:00
Lars Danielsson
a6f45c308f
Allow Download Complete Access data size to be less than full size
...
Change-Id: Ie27c54547c88d89bc1a8c99afc875ea1276a6d85
2020-09-28 15:39:16 +02:00
Hans-Erik Floryd
9ea52dff56
Merge pull request #87 from lrsdnlssn/master
...
Export SDO_findobject and fix missing include path
2020-09-16 14:50:30 +02:00
Lars Danielsson
c0d3e17bcf
Export function SDO_findobject()
...
Change-Id: I30b1c3b6a47111c1305aaa310bfdd882951689a1
2020-09-16 12:59:58 +02:00
Lars Danielsson
177739b02d
Fix missing include path
...
Change-Id: Icb3188babcac2124a0dd1d3c86a9686e6d98f647
2020-09-16 12:59:49 +02:00
Hans-Erik Floryd
ed6a6542c8
Merge pull request #86 from lrsdnlssn/master
...
Simplify foe et al.
2020-09-10 13:04:18 +02:00
Lars Danielsson
d9ebdc99fe
Simplify foe
...
Change-Id: I4de53dddf63b6ceb8c9654c9dad73f7d69bd5ee0
2020-09-09 15:44:39 +02:00
Lars Danielsson
59728c994c
Add option to skip default initialization
...
Change-Id: I08bad59fe5adbb616a9005570a153511738bee1e
2020-09-09 15:44:29 +02:00
Lars Danielsson
dd21bd3423
Improve debug printout in FOE_write()
...
Change-Id: Ib79ca30360f2b1ed5eb86cbc72850c5068e05c54
2020-09-09 15:44:20 +02:00
Lars Danielsson
d970d8eb1e
Increase maximum file name length
...
Change-Id: Ief4ac03f8b47f0cfa5a3086a41e57e7d81c2c764
2020-09-09 15:44:09 +02:00
Lars Danielsson
9a430287d1
Add error code FOE_ERR_CHECKSUM (0x800C)
...
Change-Id: Ic607fd3d93c10bfaae28102182434f6d59ab7734
2020-09-09 15:43:59 +02:00
Lars Danielsson
aee9bf569b
Export function SDO_findsubindex()
...
Change-Id: I79a364687510a9869c4c9287121093e3a2f003b9
2020-09-09 15:43:43 +02:00
Hans-Erik Floryd
4746f22c78
Merge pull request #82 from nakarlsson/master
...
Don't always include optional IP parameter lengths
2020-08-20 10:36:08 +02:00
Hans-Erik Floryd
09394ecfc8
Merge pull request #83 from lrsdnlssn/master
...
Handle SDO entries with flexible length
2020-08-20 10:34:58 +02:00
Lars Danielsson
32c8901940
Optimize function SDO_findsubindex()
...
Since most objects contain all subindexes (i.e. are not sparse),
check the most likely scenario first.
Change-Id: Idfda8ae3a3903c8312e02c9354b241af804f69ed
2020-08-19 14:49:28 +02:00
Lars Danielsson
12006a53a5
Make not exported functions static declared
...
Change-Id: I7e9bdb7f651ab26bffc3466f8e3a050db91659c6
2020-08-19 14:49:23 +02:00
Lars Danielsson
86c17dbb14
Add handling of write-only objects
...
Change-Id: I9bfdb11c5d1d83cb2c23115e204ffe6875b4457b
2020-08-19 14:49:16 +02:00
Lars Danielsson
cde698b1ea
Handle SDO entries with flexible length
...
Change-Id: I1d2e1549c497aaef801b1ea42342843e5ff3e73d
2020-08-19 14:49:06 +02:00
Andreas Karlsson
28e19f4f82
Don't always include optional IP parameter lengths
...
Obvious fix, the optional IP parameters length should
only be included in total length if they are included.
fixes #81
2020-08-16 11:32:25 +02:00
nakarlsson
ba3adf8b74
Merge pull request #80 from lrsdnlssn/master
...
SOES extensions: Add Download SDO Segment
2020-08-12 13:58:31 +02:00