hm2_pci complaining: inconsistent Module Descriptor for UART Transmit Channel

More
6 years 6 months ago #165329 by owhite
Sorry I'm having problems when after I get done making a custom bitfile and loading it on my 6i24 board. halcmd session is below and .vhd file is attached.
Code:
halcmd: loadrt hostmot2 halcmd: loadrt hm2_pci hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7 hm2_pci: discovered 5i24 at 0000:04:00.0 hm2/hm2_5i24.0: inconsistent Module Descriptor for UART Transmit Channel, not loading driver hm2/hm2_5i24.0: Version = 0, expected 0 hm2/hm2_5i24.0: NumRegisters = 4, expected 4 hm2/hm2_5i24.0: InstanceStride = 0x00000040, expected 0x00000010 hm2/hm2_5i24.0: MultipleRegisters = 0x0000000F, expected 0x0000000F hm2/hm2_5i24.0: inconsistent Module Descriptor! hm2/hm2_5i24.0: failed to parse Module Descriptor 4 hm2_5i24.0: board fails HM2 registration RTAPI_PCI: Unmapped 65536 bytes at 0x7f066fd2e000 Driver probe function failed! hm2_pci: error registering PCI driver hm2_pci: rtapi_app_main: Operation not permitted (-1) <stdin>:2: waitpid failed /usr/bin/rtapi_app hm2_pci <stdin>:2: /usr/bin/rtapi_app exited without becoming ready <stdin>:2: insmod for hm2_pci failed, returned -1

Please Log in to join the conversation.

More
6 years 6 months ago #165333 by PCW
The UART requires odd register mapping that's not accommodated
by the normal IDROM info so you need to set the instance stride in
the top level file:
InstStride1: integer := 64; -- instance stride 1 = 64 bytes = 16 x 32 bit registers sserial
-- InstStride1: integer := 16; -- 4..7 16 for BSPI/UART Ick double Ick

I would suggest not using the UART and rather using the PKTUART instead

Please Log in to join the conversation.

More
6 years 6 months ago #165335 by owhite

Please Log in to join the conversation.

More
6 years 6 months ago #165338 by owhite
great so that loaded. PCW - could you point me to an example of using PKTUART? Basically all I want to do is send the states of pins into a serial stream.

Please Log in to join the conversation.

More
6 years 6 months ago #165394 by PCW
I think there's an example component: pktgyro_test (serial coms with a gyroscope chip)
Unfortunately there in not a current clean way to have a driver with simple hal support
due to the lack of string or array support in hal

Please Log in to join the conversation.

Time to create page: 0.099 seconds
Powered by Kunena Forum