This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

reset/run on AM3359 IDK, running entLWIP_sysbios example, IEEE-1588

Other Parts Discussed in Thread: AM3359, SYSBIOS

I am an new user of CCS and of the AM3359 IDK.  I have gotten some nice help using CCS in general from the tools forum, but have been refered to this forum for the following questions.

Most of the debugging tools are intuitive, like breakpoints and stepping.  But so far I have not been able to perform a reset/restart sequence.  I assume this should be initiated when I am halted.  The reset button gives me SW or HW or system reset choices.  Which should I choose? I've tried all, and received error messages in all cases. I'm anticipating the future in which my bad code trashes things and I want to do the equivalent of cycling power, but without having to reload.  What is the proper sequence to just start over without re-loading?

I chose the enetLWIP_sysbios example to start with and it seems to run.  But I would also like to see any "System_printf" messages and "UARTPutString" messages the application generates.  Is there some document that tells me how to run this application and view all the diagnostics or demonstrations it has to offer?

I tried following the directions in the "AM335x SYSBIOS Industrial SDK 01.00.00.05 User Guide" for this application "To see the web server, connect the AM335x device to the PC with a Ethernet cable and go to http:/ / 192. 168. 1. 2 using any web browser."  It resulted in the message "HTTP Error 403 (Forbidden): The server refused to fulfill the request"  Now what?  This guide also states "The application also prints status messages on UART console."  What is a "UART console"?

Finally, I see that AM335x provides hardware assist for IEEE-1588 (PTP).  But I think PTP requires a protocol stack.  Does TI provide such a stack, with a driver meant for the AM335x hardware?  If not, do they work with a vendor or have some other suggestion?  I am thinking specifically about CIP/SYNC, which needs PTP.  Does TI support CIP/SYNC in any way?

 

  • John,

    quite a few questions at once...

    1) AM335x debug

    yes, you need to apply a CPU(HW) reset everytime. If that does not run the init GEL automatically you need to do that to (clocks and DDR setup). Then re-load your code. Sorry, just restart does not work in most cases for the Cortex-A8 architecture. As long as your code is not megabytes it is ok.

    2) System_printf

    This is a SYS/BIOS question and should be plenty of discussions in the related forums. It depends a bit on the emulator type and the Sys/Bios config you are using.

    UART output is more a question for the Starterware team assuming you are using that code.

    3) lwIP web server

    here you would need to provide more info. Can you at least ping the device? UART console requires connecting a UART cable ot USB UART virtual COM on your PC. And a terminal program of course.

    4) There is currently no IEEE-1588 stack from TI I believe. We might provide that with future support Ethernet/IP protocol as part of IA-SDK. Of course you may check 3P offerings. It should be possible to integrate external stacks with TI NDK.

    Regards.

  • Hi Frank,

    Thanks for these answers.  I am out of the office today and did not have time to address the first two answers.  But for #3, I am able to ping the device, but still get the error message  "HTTP Error 403 (Forbidden): The server refused to fulfill the request"  when I try to connect with a web browser.  What next?  Is it possible for you to give me some kind of trouble shooting tree so we don't just trade individual questions and answers?

    And for the UART question, I can manage the cable OK.  What baud rate etc is expected by this application?

    Thanks.

  • John,

    My usual answer to 'trouble shooting' questions is to start a debugging session and see what your target software does. It might be that the code runs but gets an error that is not properly handled. So if the Web server task is terminated for some reason it obviously won't answer the requests. There can be many reasons for this.

    For the UART I assume it is 115kBaud but to be sure you need to check the sources.

    Regards.