AnsweredAssumed Answered

Getting Started with KDS and mbed

Question asked by kevin gordon on Dec 20, 2015
Latest reply on Mar 17, 2016 by Alice_Yang

Further to Getting Started with Kinetis SDK I successfully applied:

C:\FreeScale\KSDK_1.3.0\examples\frdmk64f\demo_apps\i2c_rtos\i2c_rtos_freertos\kds

\\KGPRO\H ntstorage\Store Backed Up\Programming\mbed\Freescale Users Guide 0900766b81468480.pdf

C:\FreeScale\KSDK_1.3.0\doc\Kinetis SDK v.1.3 Demo Applications User's Guide.pdf

Then found: http://frdmtoplay.com/using-mbed-with-kinetis-design-studio/  by bsilvereagle which from the beginners point of view is an excellent article and worked well until the last paragraph. I tried:

https://developer.mbed.org/platforms/FRDM-K64F/
https://developer.mbed.org/handbook/Firmware-FRDM-K64F

Illustrated Step-by-Step Instructions: Updating the Freescale Freedom Board Firmware | MCU on Eclipse

Installed 0226_k20dx128_k64f_0x5000.bin by copy paste to H:\BOOTLOADER

An internal error occurred during: "Launching MBED_A5".
ilg.gnuarmeclipse.debug.gdbjtag.dsf.GnuArmServicesFactory.<init>

(Ljava/lang/String;Ljava/lang/String;)V

http://mcuoneclipse.com/2014/04/27/segger-j-link-firmware-for-opensdav2/

Installed JLink_OpenSDA_V2_2015-10-13.bin by copy paste to H:\BOOTLOADER

Tried to setup new Debug Configuration:
An error has occurred. See error log for more details.
ilg/gnuarmeclipse/debug/gdbjtag/data/CProjectAttributes

Solution: https://community.freescale.com/thread/363937
Installed two plugins (replacements of existing files)

This enabled the use of JLink_OpenSDA_V2_2015-10-13.bin with Test 4 being part of bsilvereagle's article: (only up to line 7 of main())

JLinkTest4_1.png

Name : in
Details:{gpio = {pin = PTC16}}
Default:{...}
Decimal:{...}
Hex:{...}
Binary:{...}
Octal:{...}

 

Which blocks in:

void notify_completion(bool success)
{
    printf("{{%s}}" NL "{{%s}}" NL, success ? TEST_ENV_SUCCESS : TEST_ENV_FAILURE, TEST_ENV_END);
    led_blink(LED1, success ? 1.0 : 0.1); //Blocked in this function
}

I would much appreciate guidance for a debugging beginner.

Regards,

Kevin.

Outcomes