Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi,
I tried and I think that I didn't all understood because the IDE doesn't seem to take my replacement in account. Well, a bit more explanation of what I am doing could be good : - I have a working project using HAL libraries which prints data coming from the UART to the LCD - I took the source of this project and try now to remove the UART HAL driver (for learning purpose) and replace it by my own HAL driver. - I've done what monkeyboy said before : I created an altera_avalon_uart.h in my project with the two lines. # ifndef __ALT_AVALON_UART_H__# define __ALT_AVALON_UART_H__ # define ALTERA_AVALON_UART_INSTANCE(name, device) NULL# define ALTERA_AVALON_UART_INIT(name, device) NULL # endif //__ALT_AVALON_UART_H__ - I created an empty altera_avalon_uart.c too and included "altera_avalon_uart.h" in my main.c file. After all of this, I thought that my project won't work anymore. But it stills compile well and runs on my NIOS II development kit Cyclone II. I don't really understand why. Can anybody explain me more in details the library substitution ? Do I have to create an alt_main() procedure ( I thought that it was not necesary) ? I already read the "Boot sequence an entry point" and "Paths to HAL library files" in the Nios II Software Developers' Handbook. Thank you for any help, Jean LEE