Skip to content

Latest commit

 

History

History
58 lines (29 loc) · 2.95 KB

Firmware-Upload.md

File metadata and controls

58 lines (29 loc) · 2.95 KB

Uploading code from the MCUXpresso to the MK66F

So you've written code and now you want to put it on the board. How do you do that?

  1. Get the J-Link Mini Probe from this box.

image

  1. Ensure that cable on the J-Link Mini is plugged in with the wire pointing away from the board and with the pink line on the LEFT as shown:

image

  1. Plug the J-Link Mini's connector into the board at this circled spot. It will be restricted to one specific orientation.

image image

  1. Use a Micro-USB cable to connect the J-Link Mini to your computer.

  2. To power on the Board, there should be wires soldered on as seen in the diagram below. Connect +3.3V to the red wire soldered at GPIO, and GND to the wire soldered in CAN. IGNORE the red wire in CAN.

image

  1. In MCUXpresso, in the Quickstart panel, click "Debug".

image

  1. The 'J-Link EDU Minu' probe should appear in a dialog box. Press "OK".

image

  1. Press "OK" and "Accept" for any dialog boxes that appear.

  2. Your IDE should now look like this. In debug mode, it pauses on the first line of the main() function. Click the highlighted "resume" button to continue code operation.

image

  1. The code should be running fine on the board now, and will pause at any breakpoints you have set in the IDE.

Potential Errors:

  1. 'Launching Whistler-Blackcomb JLink Debug' has encountered a problem.

image

Either the board is not on, or the J-Link is not properly plugged into the board. Verify connections and voltages.

  1. The code doesn't look like it's doing anything. Press this pause button and the IDE will bring you to where the last piece of code was run.

image

If you end up here:

image

then that means you've allocated too much memory. Try commenting out a task or lowering the amount of memory allocated to a task by changing the value added to configMINIMAL_STACK_SIZE