dhylands
Well-known member
I'm trying to port micropython to the Teensy 3.1.
My micropython.elf file looks like:
When I call
And teensy loader gui reports micropython.hex (unreadble).
The Verbose log from TeensyLoader shows:
line 8193 appears to be where the second 64K block ends and the third begins (line 8193 is the line before the :02... line)
I used the following command to create the .hex file:
Does teensy loader only support 128K ?
Dave Hylands
My micropython.elf file looks like:
Code:
micropython.elf: file format elf32-little
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 000211a0 00000000 00000000 00008000 2**3
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .ARM.exidx 00000008 000211a0 000211a0 000291a0 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
2 .usbdescriptortable 000000a0 1fff8000 1fff8000 00038000 2**2
ALLOC
3 .usbbuffers 00000360 1fff80a0 1fff80a0 00038000 2**0
ALLOC
4 .data 00000664 1fff8400 000211a8 00030400 2**2
CONTENTS, ALLOC, LOAD, DATA
5 .bss 00000580 1fff8a64 0002180c 00030a64 2**2
ALLOC
6 .ARM.attributes 0000002f 00000000 00000000 00030a64 2**0
CONTENTS, READONLY
7 .comment 0000003b 00000000 00000000 00030a93 2**0
CONTENTS, READONLY
8 .debug_frame 000016a0 00000000 00000000 00030ad0 2**2
CONTENTS, READONLY, DEBUGGING
When I call
Code:
/home/dhylands/arduino-1.0.5/hardware/tools/teensy_post_compile -file="micropython" -path="/home/dhylands/micropython/micropython/teensy" -tools="/home/dhylands/arduino-1.0.5/hardware/tools"
Teensy Loader could not find the file micropython
And teensy loader gui reports micropython.hex (unreadble).
The Verbose log from TeensyLoader shows:
Code:
23:55:35: remote connection opened
23:55:35: remote cmd: "comment: Teensyduino 1.18-rc1 - LINUX64"
23:55:35: remote cmd: "dir:/home/dhylands/micropython/micropython/teensy/"
23:55:35: remote cmd: "file:micropython.hex"
23:55:35: ihex: parse error line 8193
23:55:35: remote connection closed
Code:
:10FFE0006E206E616D653E20657870656374656432
:10FFF000206174206D6F73742025642061726775B1
:020000022000DC
:100000006D656E74732C20676F74202564004D50ED
:100010005F4F424A5F49535F545950452873656C9E
I used the following command to create the .hex file:
Code:
/home/dhylands/arduino-1.0.5/hardware/tools/arm-none-eabi/bin/arm-none-eabi-objcopy -O ihex -R .eeprom "micropython.elf" "micropython.hex"
Does teensy loader only support 128K ?
Dave Hylands