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

Hinweis: der ursprüngliche Beitrag ist mehr als 6 Monate alt. Bitte hier nur auf die ursprüngliche Frage antworten, für neue Fragen einen neuen Beitrag erstellen.

Formatierung
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.