Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHello Paolo,
I am able to step through messages being sent in debug mode, but not in run mode. Not sure what is causing this yet. However, the tutorial has the potential for a bug. When you build the system you are building the comm for CPU 1. The comm code in the multi.c is for cpuid =1. Now , I think this is normally the case as SOPC will assign cpuid = 0( you later add "1" in code). However, in the tutorial my cpu 1 is assigned a cpuid = 0x2. I looked back over the tutorial, and this value is assigned by system. I am not sure how system makes this assignement but it is not based, I believe on the names of the cpu in SOPC. This is where the potential for the bug lies.If you follow the tutorial you connect your JTAG UART to cpu1 assuming that the system will assign cpu1= 0x0. if the system assigns another value to this register then you have a problem Now normally if the system assigns values the expected way: cpu1 = 0x0 cpu2 = 0x1 cpu3= 0x2 there is no problem. As a test of my theory I went back and reconnected my cpu2 to JTAG UART and as expected I was able to in debug mode pass thorugh the code that sends messages. I am still unable to do this in run mode, not quite sure. Thanks, -Ray