Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12409 Discussions

Disable HAL UART drivers NIOS II.

Altera_Forum
Honored Contributor II
1,124 Views

Hi! 

I've got custom make file. I want to disable some HAL drivers and use my driver implementation. I've tried this command nios2-bsp hal $(BSP_FILE) $(SOPC_FILE) --cmd set_driver none uart 

Unfortunately it removes altera_avalon_uart_regs.h from bsp project.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
164 Views

If you want that file generated, you will need to create the uart drivers. You can write your software to not use the uart driver and it will not be included in the build. Alternately, you could copy it from your Quartus installation directory: C:\altera_lite\15.1\ip\altera\sopc_builder_ip\altera_avalon_uart\inc on my computer

Altera_Forum
Honored Contributor II
164 Views

Thank you for you reply. Yes I know about that. But I'm looking for more portable way.

Altera_Forum
Honored Contributor II
164 Views

The altera software is assuming that if you don't need the driver you aren't using the device. You have your choice. Neither is portable, that's the way it is sometimes.

Reply