- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
When ever I switch my NIOSII uCOSII project from being stored in onchip_memory to ext_flash I get the following error:
In function 'alt_irq_handler': /cygdrive/c/altera/90/nios2eds/components/altera_hal/HAL/src/alt_irq_handler.c:98: relocation truncated to fit: R_NIOS2_CALL26 OSIntEnter /cygdrive/c/altera/90/nios2eds/components/altera_hal/HAL/src/alt_irq_handler.c:98: relocation truncated to fit: R_NIOS2_CALL26 OSIntExit I've stored larger projects than this in ext_flash before, any idea what this is? ThanksLink copiado
4 Respostas
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Hi, ThePhil,
Just wondering whether you have this issue fixed and find out the source of error. I encounter similar problem in my project and would like to learn from your experience. Best regards, Kevin- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
I got the similar problem when using Quartus II 9.1 and
I fixed it by changing the setting of Nios II processor in SOPC Builder. As shown in attached picture, the memory segment for "Reset Vector" should be the same as that in the property of system library "Program memory (.text)". Also, I found that memory segment for "Exception Vector" would be put together within segment for .text from the linker script that is automatically generated by Nios II tools. Therefore, I think this memory should be set as the same as "Reset Vector". You can see this linker script from path: \software\XXX_syslib\Debug\system_description\generated.x- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
I got the same problem but I use bsp instead of a system library
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Well, alt_irq_disable_all() works. But If I change that line of code to alt_irq_disable(TIMER_INTERRUPT) it doesnt work anymore.

Responder
Opções do tópico
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora