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.

error while testing SCI program output with RM48

Other Parts Discussed in Thread: HALCOGEN, MAX232

Hi.

i tried to work with sample codes from a video tutorial. HERCULES SAFETY MCUs How to tutorial using the SCI-UART.

i got some errors. i dint understand what it means

Dap: Error: (Error -242 @ 0x0) A router subpath could not be accessed. The board configuration file is probably incorrect. (Emulation package 0.0.0.0)
CortexR4: Error: (Error -1170 @ 0x0) Unable to access the DAP. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 5.1.507.2)
CortexR4: Trouble Halting Target CPU: (Error -2064 @ 0x0) Unable to read device status. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 5.1.507.2)

Please help me to short it out. attached 5025.UART.rar

  • Manjunathan,

    These are not compiler errors. It looks like you made it past the compile.

    These are errors when CCS attempts to connect to the target device through the JTAG emulator.

    The most likely reason would be something simple, like you didn't have the USB kit plugged in because you didn't realize it would also try to download after building.

    If you need to just debug the target connection, you can double click on the .CCXML file that the project is using. There is a 'test connection' button on the first tab and if you are having real connection problems, then the output of this tab will give some diagnostic information as to what the problem may be.
  • Thank you for your valuable support Mr.Anthony F. Seely

    I have followed the procedure as you said and attached the result. but still by problem is not solved.

    RM48 HDK can able to send the data ("Please Press a key" in the program) but when i give input through keyboard from my laptop its is not working. As explained in the video tutorial i pressed the PORST the earlier mentioned error occured in console window . I need to receive a data from the PC. (my objective is to receive data from the processor and to process the received input decimal value in my program to make working the set of logic using IF loop)4213.Procedure1.docx

  • Hi Manjunathan K

    Yes that makes sense. Pressing PORST resets the debug logic on the chip, so if you have an active debug session when you press the button it will cause the DAP errors but as you show in your document these are transitory and it looks like you got past them.

    Ok so it also looks like your UART communications are basically working because the terminal shows output from the target UART and it's not garbled -- that is also good.

    It sounds like you are now just down to the point where you press a key and the target doesn't see the keypress.

    I *assume* that you've changed focus on the PC to the terminal window in CCS so that the keypress goes to the UART on the PC side. If you have focus somewhere else like on the main CCS window - when you press the key - then it won't cause a byte to be sent via the UART. Focus needs to be in the terminal window.

    If that's the case and still no reaction, the thing to do is to set a breakpoint in void sciNotification(sciBASE_t *sci,unsigned flags).

    I think you will probably find the code never reaches this point.

    When I open your project in HalCoGen, on the RM48L952ZWT -> VIM Channel 0-31 tab I see that you have the LIN1 High level interrupt (13) enabled, but LIN1 Low Level interrupt *disabled*

    On the SCI2 tab, I see that the RX INT is enabled, but that it is routed to the *disabled* LIN1 low level interrupt as opposed to the enabled LIN1 high level interrupt. That may be the cause of the problem.
  • Thank you Mr.Anthony F. Seely

    To my understanding i would like to clarify few thing Sir

    1. to receive the data i want to enable LIN1 Low level interrupt and i want to disable LIN1 high level interrupt right.....

    2. when i press a key in my PC it will not be send data to tx pin of UART in PC right...

    Shall i go for go for SCI which is not multiplexed with LIN to communicate with other processor/controller (You have clarified the querry already about communication between RM48  Controller and IMx6 freescale processor in another thread). I am also ready with MAX232 driver module Sir

    if possible please provide me code that the UART of my controller will receive data from another controller or processor (I need to complete the work soon Sir).

    Thanks & regards

    K.Manjunathan

    PSGIAS.

  • Hi K.Manjunathan,

    Manjunathan K said:
    1. to receive the data i want to enable LIN1 Low level interrupt and i want to disable LIN1 high level interrupt right.....



    Well it shouldn't matter too much if you pick low or high to be honest,  but you have to pick them the *same*.

    The VIM switch needs to match the switch setting in the SCI.  If you pick low in the SCI, enable LOW in VIM.
    If High In SCI, enable High In VIM.  

    Manjunathan K said:
    2. when i press a key in my PC it will not be send data to tx pin of UART in PC right...

    If you have focus on the terminal window in CCS,  and you press a key - it *SHOULD* be transmitted to the MCU.

    This was a bit of an 'check power, ground, and reset first', kind of question on my part.  Just want to make sure you understand that when it says press a key you have to be selecting the right window first.     It's the same as having  notepad & 'word' windows open.   If notepad is selected - the keypress goes to notepad and word doesn't see it.   If 'word' is selected that is where the keypress goes ..    This is *very* obvious I'm sure but sometimes when working on problems like this a silly / obvious thing can be misunderstood which is why I asked.

    Manjunathan K said:
    Shall i go for go for SCI which is not multiplexed with LIN to communicate with other processor/controller (You have clarified the querry already about communication between RM48  Controller and IMx6 freescale processor in another thread).

    This doesn't matter,  unless you need to use the SCI/LIN in LIN mode for something else next.  

    Manjunathan K said:
    if possible please provide me code that the UART of my controller will receive data from another controller or processor (I need to complete the work soon Sir).

    The example you are working with already will handle this for the RM48.

  • Thank you Sir,

    The right window in the sense - I have to select the terminal window in CCS to make it work right.

    I will try it once and come back to you Sir.

    Thanks and Regards

    K.Manjunathan

    PSGIAS

  • Thank you sir,

    Its working. the error got cleared.

    Thanks and Regards

    K.Manjunathan

    PSGIAS