industrialNETworXnetx

Teapot

Teapot

| 30.10.2008 | 10:53 | 5 replies

DPM and RCX

Hi,

I want to initialize the driver HIF in rcX.
I currently setting DPM as follows (from example in rcX_Config.pdf rev.6 18.05.2007):

STATIC CONST FAR RX_HIF_SET_T atrXHif[] =  
{ 
  {{"HOSTDPM16BIT",RX_PERIPHERAL_TYPE_HOST,0}, 
    RX_HIF_MODE_DPM_UP16BIT, // Set the HIF to work in 16 Bit Dualport-Memory  
    0x333FEEEF,    // Configure specific HIF-PIO HIF  
    0x000E7E67,    // Configure specific HIF-PIO to be HIF  
    0x00000000,    // Configure HIF-PIO 32 to 63 Output-Driver, no relevance  
    0x00000000,    // Configure HIF-PIO 64 to 84 Output-Driver, no relevance  
    0x3004C901,    // Configure the 16 Bit DPM Mode 
    0x00800000,    // Configure Arm specific configuration  
    0x2000,        // Total size  
    TRUE,          // Always use handshake block 
    FALSE,         // Change HIF registers, no bootloader before  
    0,             // Number of Area  blocks 0 to maximum 7  
    NULL, 
    0x18000,       // The HIF driver shall use the SRAM3 bank 
    32768 
  } 
};

....

STATIC CONST FAR RX_DRIVER_PERIPHERAL_CONFIG_T atrXDrvCfgPost[] = {
      ...
      {DrvHifInit,RX_PERIPHERAL_TYPE_HOST,atrXHif,MAX_CNT(atrXHif)},
   };

I get the following error:


arm-hitex-elf-ld.exe -T.\netx_sdram.ld -static -( -lc -lm -lgcc -ldps -lrcx -lrcx_mid -) -o .\Output\dps.elf
.\Output\Config.o:(.rodata+0x580): undefined reference to `DrvHifInit'

DrvHifInit not include in librcx.a (rcX_V2.0.4.2)

Can anyone help me ?

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 30.10.2008 | 18:21

Hi Teapot,

the needed DPM functionality is included in the library librcx_netxXXX_hif.a which is included in the rcX board support package.
Do you have bought the rcX BSP? If not, there is no way to get the requested library.

Teapot

Teapot

| 31.10.2008 | 13:13

Thank you.
Other products include DPM library (for example Profibus Master Stack) ?
What other libraries are needed to work Protocol Stacks with DPM ?

---
Best regards,
Teapot

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 31.10.2008 | 13:28

Hi,

all stacks need the rcX BSP.

It includes a flash file system for serial flashes and a TCP/IP stack.

Teapot

Teapot

| 22.06.2009 | 10:01

Hi!
And what functions provides rcx BSP to work with DPM?

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 24.06.2009 | 10:50

Hi,

the rcX provides function to create the Hilscher DPM layout and to configure the host interface into DPM. Otherwise you have to do all these steps manually.

Login