Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 123557

Forum Post: RE: A problem after porting usb_host_msc.c from Starterware to SYS/BIOS

$
0
0

Kuo-Lian Ma,

You are using different interrupt numbers in the two examples. For Starterware you are using INT9 while with BIOS you are using INT4 while calling it Hwi5. Why do you implement it differently in the two cases?

In Starterware, the ISR requires the keyword 'interrupt' on the function name, such as 'interrupt void MyIsr( void )'. This must not be used when the Hwi Dispatcher is used; it is not clear if the dispatcher is enabled or not.

Have you tried using the debugger to figure out how the program is getting lost after executing the delay() function? I am assuming it successfully exits the delay() function, is that correct? You can set a breakpoint on the next line after the call to delay() to verify the processor returns from delay() and then you can set more breakpoints or single-step to see where the processor is going after that. This is the great power of the CCS emulation capability.

Regards,
RandyP


Viewing all articles
Browse latest Browse all 123557

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>