Forum Discussion
Andrew099
New Contributor
2 years agoBSP fails to build for FreeRTOS on a Nios V with UART
I have a Nios V on a Max 10 with a UART (RS-232 Serial Port) Intel FPGA IP (and also JTAG UART). When I opened up the BSP editor, I selected FreeRTOS and went with all the defaults and made a BSP. Ho...
- 2 years ago
In the "freertos/drivers/src/":
- intel_lw_uart_init.c
- line 228~:
if (sp->tx_start == ((sp->tx_end + 1) & ALT_AVALON_UART_BUF_MSK))
{
ALT_FLAG_POST (sp->events,
ALT_UART_WRITE_RDY,
ALT_FLAG_SET);
}
- intel_lw_uart_read.c
- line 205~:
ALT_FLAG_PEND (sp->events,
ALT_UART_READ_RDY,
ALT_FLAG_WAIT_SET_ANY_WITH_CONSUME,
ALT_FLAG_WAIT_MAX_TIMEOUT);
- intel_lw_uart_write.c
- line 192~:
ALT_FLAG_PEND (sp->events,
ALT_UART_WRITE_RDY,
ALT_FLAG_WAIT_SET_ANY_WITH_CONSUME,
ALT_FLAG_WAIT_MAX_TIMEOUT);
- intel_lw_uart_init.c
Andrew099
New Contributor
2 years agoSure, I attached a Quartus archive of an example where the BSP won't build.
The C file doesn't have to have any substance to it. The following is fine:
// main.c int main() { return 0; }
- Open the Quartus project using Quartus 23.1 STD, and compile it.
- Create a BSP:
- enter a niosv shell and open the BSP editor
- select the sopcinfo file
- select FreeRTOS
- go with all other defaults
- generate
- Use the niosv-app to create a cmake file.
- Run cmake and then make. (I'm using Linux.)