hey mark,
Thanks again my initial problem was as simple as making sure I started from a clean build. It seems KDS is very buggy or maybe I am just not used to clean builds being so important.
Even after getting the serial loader project to build I still haven't been able to get it to function correctly.
Using my initial pull I was able to get it to compile and load with USB CDC
> bc
Checking Flash... EMPTY!
> ld
Please start S-REC download: ...
Terminated - restarting...bc
Checking Flash... EMPTY!
It appears to accept the SREC but it never actually writes the data to flash. upon reset the application area is still empty
same result if i use my blinky.srec or the example 8080 srec you provided here
http://www.utasker.com/kinetis/TEENSY_3.1.html so i dont think its a matter of the srec not being valid although interestingly enough if i change the config to MSD it will take the .bin and no longer run the loader but still not blink like it does when using all the example files you provide for loader and app
I wanted to start fresh so that i could document every step but it seems substantial changes have been made to the repo in the last few weeks which make it so now i cant even get to the non-functional version from above...
clone latest repo
copy kds settings files from \uTasker-GIT-Kinetis\Applications\uTaskerV1.4\KinetisDesignStudio\Project_Settings\ to \uTasker-GIT-Kinetis\
in KDS version 3.2.0
file -> import
General -> Existing Projects into Workspace
select projectroot\
Projcect Properties
C/C++ General -> Indexer -- check 'enable project specific', 'Use active build configuration' **do this every time reopened
C/C++ Build -> Settings -> Target Processor -- change arm family to 'cortex-m4', set 'Float ABI' to 'Toolchain default' for all configs
C/C++ Build -> Settings -> Cross ARM C++ Linker -> General -- change linker script to "${uTaskerLinkerScripts}/K_256_64.ld"
Applications -> uTaskerSerialBoot -> Config.h
uncomment //#define TEENSY_3_1
comment #define FRDM_K64F
Set Build configuration to 'uTaskerSerialLoader_FLASH'
Project -> Clean -> Clean All
attempt to clean up assumed in progress updates... TO NO AVAIL
comment the following lines
/Hardware/Kinetis/kinetis_ENET.h:426: undefined reference to `fnMagicFrame'
/uTasker/Driver.c:284: undefined reference to `fnNetworkTx'
/stack/Ethernet.c:199: undefined reference to `fnGetEthernetPars'
/stack/arp.c:554: undefined reference to `network'
/stack/arp.c:518: undefined reference to `network'
/stack/dhcp.c:483: undefined reference to `fnGetDHCP_host_name'
/stack/dhcp.c:516: undefined reference to `network'
/stack/dhcp.c:670: undefined reference to `network'
/stack/arp.c:551: undefined reference to `network'
comment the following entire functions
extern void fnTaskEthernet(TTASKTABLE *ptrTaskTable)
static int is_subnet(unsigned char *new_ip)
static void fnSendDHCP(unsigned char ucDHCP_message, int iNetwork)
extern ARP_TAB *fnGetIP_ARP(unsigned char *Search_IP, UTASK_TASK OwnerTask, USOCKET Socket)
static void fnStateEventDHCP(unsigned char ucEvent, int iNetwork)
extern void fnDHCP(TTASKTABLE *ptrTaskTable)
extern signed short fnSendIPv4(unsigned char *prIP_to, unsigned char ucProtType, unsigned char ucTypeOfService, unsigned char ucTTL, unsigned char *dat, unsigned short usLen, UTASK_TASK Owner, USOCKET cSocket)
static void fnSendARP_request(ARP_TAB *ptrARPTab)
extern signed short fnSendTCP(USOCKET TCP_socket, unsigned char *ptrBuf, unsigned short usDataLen, unsigned char ucTempFlags)
still nothing... I really need to get to a point where I can compile a working loader maybe i am missing something in the config.h to properly turn off the immense amount of networking errors i am getting now?