- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi,
I have try this code in my NIOS code : printf("NIOS %d is waiting for control signal\n",ALT_CPU_CPU_ID_VALUE); I have implement 3 nios processor in my project. Why this ALT_CPU_CPU_ID_VALUE function always return 0 value? Each core always returned 0 values instead 1,2,3 ? it should be show this message : NIOS 0 is waiting for control signal NIOS 1 is waiting for control signal NIOS 2 is waiting for control signal However the fact , the message look like this : NIOS 0 is waiting for control signal NIOS 0 is waiting for control signal NIOS 0 is waiting for control signal Need for advice.. Thank youLien copié
2 Réponses
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
ALT_CPU_CPU_ID_VALUE is nothing more than a# define in the "system.h" file of the BSP. It is not a function.
You will need to create a different a BSP project for each NIOS processor in your design. This will result in a different ALT_CPU_CPU_ID_VALUE in each BSP. Alternatively, connect a different System ID peripheral to each NIOS processor, with the value set to match the CPU ID. You can then read the value of the peripheral instead of using the# define. That way it will be a run-time calculated value, not a compile time value.- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Many thanks! It worked!

Répondre
Options du sujet
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable