Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Frankde

Pages: [1]
1
Yes I should, that memory part is interesting and I ma not only confusing the address, also the project.

USB serial loader is good when it can be recognized by Windows. No change in the linker file required. Can come later, when I need more memory for my project

The linker file described in the tutorial is for my project i.e. the arduino project.
File found in C:\..\arduino-1.6.5-r5\hardware\teensy\avr\cores\teensy3 so I can finally adapt mk20dx128.c and mkl26z64.id as instructed.
FLASH (rx) origin modified to 0x8080 --> gives the right starting address
Watchdog removed .
Vector table in RAM is used --> nothing to add
I want to have the loader installed and next the file applying drag & drop.

To test I use Blink from the tutorial, that is small and coverts to binary (hex2bin v2.1) for 10.076 byte.
After editing the linker file the start address is OK
Loading the blink example makes the teensy disappear for windows and the led is on continuously.

Next step: change the addresses for the flash (IAR mentioned that in the same fashion). Thanks Mark for warning!
SECTIONS
{
    .text : {
        . = 0; -> 0x8080
        KEEP(*(.vectors))
        *(.startup*)
        /* TODO: does linker detect startup overflow onto flashconfig? */
        . = 0x400; -> 0x8480
        KEEP(*(.flashconfig*))


My Blink file has grown to use 42.972 bytes. If true that is tight with the 32 k I have left
And of course the lights go off and teensy goes into reset.

We're getting close, nearly there.

2
µTasker general / Re: Using IAR IDE to construct a bootloader
« on: November 03, 2015, 05:46:05 PM »
Link is outdated: Page not available anymore

3
Thanks Mark, the page you mention is what I am using, alas for IAR.
Little by little the structure is getting clear, but not transparent yet, I clearly need more flying hours.
Here's the next step:

When I change the linker file (KL_64_8.icf):
define symbol __ICFEDIT_intvec_start__ = 0x00008080;
/*-Memory Regions-*/
define symbol __ICFEDIT_region_ROM_start__ = 0x00000000;
define symbol __ICFEDIT_region_ROM_end__   = 0x0000FFFF;
define symbol __ICFEDIT_region_RAM_start__ = 0x1ffff8c0;
define symbol __ICFEDIT_region_RAM_end__   = 0x200017FF;

I get a change in the project hex file going in the right direction. The change mentioned yesterday stubbornly stays at 000000. I do get a full line more than I bargained for though:
:100400000000000000000000FFFFFFFFBE08FFFF2C
:08808000F0170020C1A100006F


From the look of it I am confusing the flash addresses.
Should I dig deeper there?

4
Subsequently I commented out HID_Loader and KBOOT_HID_Loader as these appeared to confuse windows.
Result was fast blinking board LED and recognition by Windows intact.

Wanting to use Serial loader to change arduino applications on the Teensy_LC, I modified the linker file  KL_64_8.icf as follows (red)
define symbol __ICFEDIT_intvec_start__ = 0x00000000;
/*-Memory Regions-*/
define symbol __ICFEDIT_region_ROM_start__ = 0x00008080;
define symbol __ICFEDIT_region_ROM_end__   = 0x0000FFFF;


My first bet was to change the first line, but that showed no effect.
The assumption is of course that 8080 is the right address.

Then converted hex-files to bin-files (hex2bin v2.1) to drop them on the drive, but that shows no effect. Is that the start address I need to add in while converting?
Binary file start  = 00000000
Records start     = 00000000
Highest address = 00002CA7
Pad Byte           = FF

Also when I remove the board the file dropped to it does not return on reconnection.

5
 :) Thanks Mark. That was line 538 and off it went. A breeze.

6
I am having a number of errors while linking the µTasker 1.4.x Dev.
These are noticed while building as "declared implicitly" and that's a pity
-----Message window----------------------------------------
Linking
Error[Li005]: no definition for "USB_HOST_POWER_ON" [referenced from C:\uTasker 1.4.x Dev\Applications\uTaskerSerialBoot\IAR7_Kinetis\FLASH\Obj\kinetis.o]

Error[Li005]: no definition for "RETAIN_LOADER_MODE" [referenced from C:\uTasker 1.4.x Dev\Applications\uTaskerSerialBoot\IAR7_Kinetis\FLASH\Obj\SDLoader.o]

Error[Li005]: no definition for "DEL_USB_SYMBOL" [referenced from C:\uTasker 1.4.x Dev\Applications\uTaskerSerialBoot\IAR7_Kinetis\FLASH\Obj\usb_application.o]

Error[Li005]: no definition for "SET_USB_SYMBOL" [referenced from C:\uTasker 1.4.x Dev\Applications\uTaskerSerialBoot\IAR7_Kinetis\FLASH\Obj\usb_application.o]

Error[Li005]: no definition for "USB_HOST_POWER_CONFIG" [referenced from C:\uTasker 1.4.x Dev\Applications\uTaskerSerialBoot\IAR7_Kinetis\FLASH\Obj\Loader.o]
Error while running Linker
---------------------------------------------
These can be traced back to SDLoader,  kinetis_USB_Host, usb_application & Loader.

Looks like I need to add a line in the Linker file or disable a function in the config file.
Anyone able to give guidance here?

Pages: [1]