LatticeMico32: Opencore CAN

OP #2848846
Lesenswert?

Hi team,

I spend the whole day trying to connect the opencore CAN to 
LatticeMico32 without sucess.
As you know opencoreCAN doesn't have the signal wb_sel_i and this signal 
mandatory by creating custom component.
For that I moved forward with the signal and then I commented it within 
the top file as follow.

          // Instantiate user's custom module
          can_top instantiate_can_top (

                // Connect Wishbone slave
               .wb_adr_i(wb_ADR_I),
               .wb_dat_i(wb_DAT_I),
               .wb_we_i(wb_WE_I),
               //.wb_sel_i(wb_SEL_I),
               .wb_stb_i(wb_STB_I),
               .wb_cyc_i(wb_CYC_I),
               .wb_dat_o(wb_DAT_O),
               .wb_ack_o(wb_ACK_O),

                // Connect External signals
               .rx_i(rx_i),
               .tx_o(tx_o),

               .wb_clk_i(wb_clk_i),
               .wb_rst_i(wb_rst_i),
               .irq_on(wb_int_o) );


I then try to write to the CAN Control Register without success.
No possibility to access the CAN Component

1
  // turn on reset mode
2
    OPENCORECAN_REGISTER(OPENCORECAN3_BASE_ADDRESS, CAN_CONTROL_REG)=0x1F;
3

4
with
5

6
/* macro for reading/writing registers */
7
#define OPENCORECAN_REGISTER(BASE,OFFSET) *((volatile unsigned char *)(BASE + OFFSET))


So please, is there any trick helping me to move forward?

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren