cancel
Showing results for 
Search instead for 
Did you mean: 

Communicating in 16-bit parallel mode for Anybus module M40 connected to STM32F769 FMC interface issue

Prema
Associate

We are using a Any bus module M40 in our project which is based on STM32F769BI.

The FMC interface is connected to the Any-bus module as per the attached schematics. This interface works for 8-bit mode of anybus. However for 16-bit mode it is not working.I have attached the relevant code also. Want to know if any hardware or code corrections are needed to get this interface working.

1 REPLY 1
AZorn.1
Associate III

Hello,
i am using Anybus M40 on STM32F417 in 16 bit mode.
Problem is, that ST send Adresses on 16Bit Boundary (e.g. Adr 0x0001 maps to ByteAddr 3, Adr 0x0002 Maps to ByteAddr 0x6 and so on) and Anybus M40 allways outputs ByteAddresses.
So this will only work, if you use 8Bit-Mode without any Workaround.

Solution 1: in 16bit Mode, you have to correct address and data by shifting, but this will be inefficient because you can't use optimized memset / memcopy / ...

Solution 2: you have to change your pinning (ABCCM40_A1 -> ST_A0, ABCCM40_A2 -> ST_A1, ...)