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.

Compiler/LAUNCHXL-F28379D: Reset F28379D Board

Part Number: LAUNCHXL-F28379D


Tool/software: TI C/C++ Compiler

Hi,

I have used LAUNCHXL-F28379D on MATLAB to Toggle LEDs. The simulation was based on URL 

Now, I cannot reset the board and the LEDs are still toggling. How should I reset the board with MATLAB?

  • If you are looking for the XRSN pin from what I can use from the youtube link, Please refer to the below user guide (Switch S3), 

    www.ti.com/.../sprui77c.pdf

  • No, I want to reset the entire board.

    S3 does not reset the board and I also cannot find XRS pin. There is no clear instruction on how to reset the pin.

  • S3 drives the XRS pin (Its connected on the board). Please refer to RESET# from the Schematics.

    I'm connecting you with our board design experts if there are further questions.

  • By pressing the S3 button, only the program gets reset and it starts from the first and the LEDs are non-stop blinking.

  • Hi Fati,

    The S3 button will reset the F2837x device. You are wanting to power cycle the entire board and all devices i.e. devices other than the F2837x as well?

    There is no native way to do this other than completely removing power from the board by disconnecting the USB cable or removing jumpers JP1/JP3.

    Best,

    Kevin

  • Hi Kevin,

    Yes, I want to reset the entire board.

    When I connected the board to the computers, all LEDs were off except for the Power ON LED. By pressing the S3 button, nothing can be done.

    We must be able to clear the board entirely and write new codes from scratch. Is there any way?

    Thanks 

  • Fati,

    Why are you wanting to power cycle the entire board? This isn't clear to me. Is removing and reconnecting the power cable/jumpers not an option for you?

    Fati Malek said:
    We must be able to clear the board entirely and write new codes from scratch. Is there any way?

    You can re-program the F2837x device without power cycling the board.

    Best,

    Kevin

  • Kevin,

    I tried to re-program it. How? Instead of giving it a constant value "1", I fed "0" to those two LEDs. Now, instead of blinking, they are "ON" and do not get "off".

    I tried to reconnect the power cable, and it was not the solution.

    I tried to reconnect the jumper beside the two LEDs and again it was not the solution.

    I have tried to do almost all the methods to reset the board but none of the worked. Based on my previous experience on using Arduino and Raspberry Pi, we could easily write a=arduino(); or a=raspi(); and when we wanted to clear the board, we could write clear a and it was the command to reset the board without unplugging it from the power or reconnecting any jumpers. Now, there is no way to reset the board and this is the main disadvantage of LAUNCHXL-F28379D that it could not do the easiest thing 9reset the board) that a very weak and garbage board can do.

  • Fati,

    It's not very clear to me what you're wanting to do. Maybe you're trying to erase the internal flash of the device and re-program it?

    I can help if you're using a TI tool / IDE, like Code Composer Studio (CCS), to program and test the board. However, if you're using MATLAB to program and test I'll have to have those experts try and help you.

    Best,

    Kevin

  • Kevin,

    Yes, please help me to do that (erasing the internal flash of the device and reprograming it) using CCS. It seems that MATLAB has no option.

    Thanks

  • Fati,

    Sure. To erase the device's flash in CCS you should connect to the device by launching the respective Target Configuration file (.ccxml) and connecting to the device CPU in the CCS debug view. Then in the CCS debug view select 'Tools' on the top toolbar --> Select "On-chip Flash" --> Select "Erase Flash" in new window that opens.

    More details on flash programming / erasing C2000 devices provided in the below:

    https://software-dl.ti.com/C2000/docs/software_guide/c2000ware/flash.html

    Additionally, the flash will be erased and re-programmed when loading a .out file configured for flash operation.

    Best,

    Kevin

  • Hello Kevin

    Could you please after doing these, what should I expect to see on the board? I don't remember for the first time that I connected my board to my laptop, the LEDs were on or off. Now, they are all ON and I don't know whether I did everything right or wrong. But, on CCS, it was written: Erasing Operation is Done.

    Thanks

  • Hi Fati,

    After erasing the F2837x device the LEDs D1, D9, & D10 should all stay lit when you plug the board in. Now you can re-program the device for running code out of flash or RAM.

    If you're new to C2000 MCUs and the F28379D device, I'd suggest taking a look at the workshop below for the board you have. It will teach you a lot about the MCU and using CCS to program / debug it.

    https://training.ti.com/c2000-f2837xd-microcontroller-workshop

    Best,

    Kevin

  • Hi Kevin,

    Thanks for your help.

    If that's the case, I have successfully flashed the board and now, it should be completely erased and ready to be re-programmed.

    Also, thank you for giving me the URL of that workshop. I will check all the files. The fact is that I wanted to use MATLAB to program LAUNCHXL-F28379D and it seems that MATLAB is not well-developed for being used to do that.

    Anyway, I really appreciate your help. Your advice helped me to resolve my issue.

    Thank you very much.