TimRedfern
Member
I'm trying to use the supplied Makefile to compile code for the teensy4
On my machine the Makefile is at /Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/cores/teensy4
(I had initially installed Teensyduino over Arduino 1.8.11 but I understand this isn't supported - so I installed Arduino 1.6.13 and reinstalled Teensyduino. Teensyduino reports Arduino 1.8.11 and Teensy 1.5.0 but it also reports that there's an update available, as does Arduino 1.6.13 so I'm not sure exactly what's going on.)
I can succesfully compile the Blink example with the Makefile if I change Blink.ino to Blink.cpp and add #include "core_pins.h"
When I flash this .elf onto the Teensy nothing happens. The .elf file from the Makefile is 131K whereas if I compile the sketch using the Teensyduino IDE, Blink.ino.elf is 44K
The Makefile .elf contains these symbols:
Whereas Blink.ino.elf contains many more symbols:
Any suggestions?
On my machine the Makefile is at /Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/cores/teensy4
(I had initially installed Teensyduino over Arduino 1.8.11 but I understand this isn't supported - so I installed Arduino 1.6.13 and reinstalled Teensyduino. Teensyduino reports Arduino 1.8.11 and Teensy 1.5.0 but it also reports that there's an update available, as does Arduino 1.6.13 so I'm not sure exactly what's going on.)
I can succesfully compile the Blink example with the Makefile if I change Blink.ino to Blink.cpp and add #include "core_pins.h"
When I flash this .elf onto the Teensy nothing happens. The .elf file from the Makefile is 131K whereas if I compile the sketch using the Teensyduino IDE, Blink.ino.elf is 44K
The Makefile .elf contains these symbols:
Code:
Tims-MacBook-Pro:teensy_template tim$ nm main.elf
U ImageVectorTable
w _Jv_RegisterClasses
U __bss_end__
U __bss_start__
w __deregister_frame_info
00000020 t __do_global_dtors_aux
U __fini_array_end
U __fini_array_start
6000100c n __frame_dummy_init_array_entry
60001010 n __init_array_end
6000100c n __init_array_start
U __libc_fini
6000100c n __preinit_array_end
6000100c n __preinit_array_start
w __register_frame_info
U __stack
20000040 B _ebss
20000000 D _edata
20078000 B _estack
00000080 T _etext
U _exit
00000080 T _fini
00001090 A _flashimagelen
aaaaaaab A _flexram_bank_config
20280000 B _heap_end
20200000 B _heap_start
60001000 N _init
00000001 A _itcm_block_count
20000000 B _sbss
20000000 D _sdata
60001094 A _sdataload
00000000 T _stext
60001010 A _stextload
00000024 A _teensy_model_identifier
20000000 b completed.8605
U delay
U digitalWrite
00000044 t frame_dummy
U free
U hardware_init_hook
U main
U malloc
20000004 b object.8610
U pinMode
U software_init_hook
Whereas Blink.ino.elf contains many more symbols:
Code:
Tims-MacBook-Pro:Blink tim$ nm /var/folders/29/gch7qs111rbcf0tflgp8cwtw0000gn/T/arduino_build_941999/Blink.ino.elf
60001020 T BootData
20000354 D F_BUS_ACTUAL
20000358 D F_CPU_ACTUAL
60000000 T FlexSPI_NOR_Config
00000248 W HardFault_HandlerC
60001000 T ImageVectorTable
60001034 T ResetHandler
w _Jv_RegisterClasses
00000238 t _MSP
20000c00 B _VectorsRam
00001a88 W _Z11serialEventv
20000848 B _ZN11MillisTimer10listActiveE
20000858 B _ZN11MillisTimer11listWaitingE
000011f8 T _ZN11MillisTimer12runFromTimerEv
00001190 T _ZN11MillisTimer15addToActiveListEv
20000850 B _ZN14EventResponder10firstYieldE
0000112c W _ZN14EventResponder12triggerEventEiPv
20000844 B _ZN14EventResponder13lastInterruptE
20000840 B _ZN14EventResponder14firstInterruptE
00001148 T _ZN14EventResponder16runFromInterruptEv
20000854 B _ZN14EventResponder16runningFromYieldE
000010ac T _ZN14EventResponder24triggerEventNotImmediateEv
2000084c B _ZN14EventResponder9lastYieldE
00001a60 T _ZN14HardwareSerial19processSerialEventsEv
20000860 B _ZN14HardwareSerial27serial_event_handler_checksE
2000087c B _ZN14HardwareSerial28serial_event_handlers_activeE
2000085c b _ZZ5yieldE7running
60001710 t ____libc_init_array_veneer
00001b80 t ___init_veneer
U __bss_end__
U __bss_start__
60001720 t __delay_veneer
w __deregister_frame_info
00000020 t __do_global_dtors_aux
U __fini_array_end
U __fini_array_start
60001758 t __frame_dummy_init_array_entry
6000175c T __init_array_end
60001758 T __init_array_start
U __libc_fini
00001a94 T __libc_init_array
60001738 t __main_veneer
60001718 t __memset_veneer
60001758 T __preinit_array_end
60001758 T __preinit_array_start
60001740 t __pwm_init_veneer
w __register_frame_info
60001750 t __set_arm_clock_veneer
U __stack
60001728 t __startup_early_hook_veneer
60001748 t __startup_late_hook_veneer
60001730 t __usb_init_serialnumber_veneer
200022a0 B _ebss
20000360 D _edata
20078000 B _estack
00001b90 T _etext
00001b90 T _fini
00003650 A _flashimagelen
aaaaaaab A _flexram_bank_config
20280000 B _heap_end
20201880 b _heap_start
60001704 T _init
00000001 A _itcm_block_count
20000360 B _sbss
20000000 D _sdata
600032f4 A _sdataload
00000000 T _stext
60001760 A _stextload
00000024 A _teensy_model_identifier
60001584 T analog_init
2000085d b calibrating
20000360 b completed.8605
6000129c T configure_cache
000000ac T delay
20000328 d device_descriptor
0000019c T digitalWrite
00000178 t digitalWrite.part.0
20000000 D digital_pin_to_info_PGM
200003c8 b endpoint0_buffer
200003ac b endpoint0_notify_mask
200003b8 b endpoint0_setupdata
20001020 B endpoint0_transfer_ack
20001000 B endpoint0_transfer_data
00000368 t endpoint0_transmit.constprop.1
2000039c b endpointN_notify_mask
20002000 B endpoint_queue_head
00000044 t frame_dummy
U hardware_init_hook
0000040c t isr
00000084 T loop
000012b0 T main
00001360 T memcpy
00001ae4 T memset
20000364 b object.8610
0000118c T pendablesrvreq_isr
000001a8 T pinMode
000017a8 T pwm_init
600016f8 t qualifier_descriptor
200003c0 b reply_buffer
00000330 t run_callbacks
200004c0 b rx_available
2000069c b rx_available
20200080 b rx_buffer
20201480 b rx_buffer
200003dc b rx_count
00000c9c t rx_event
00000ed4 t rx_event
200003d8 b rx_head
200006a0 b rx_head
200004c4 b rx_index
20000680 b rx_index
20000564 b rx_list
20000690 b rx_list
200003d2 b rx_packet_size
00000c30 t rx_queue_transfer
00000e70 t rx_queue_transfer
200003da b rx_tail
2000056b b rx_tail
20000400 b rx_transfer
20000580 b rx_transfer
20000394 b s_hotCount
20000388 b s_hotTemp
2000038c b s_hot_ROOM
20000390 b s_roomC_hotC
20000380 B scale_cpu_cycles_to_microseconds
000002d4 t schedule_transfer
20000304 d seremu_report_desc
00001494 T set_arm_clock
0000007c T setup
200003a0 b sof_usage
U software_init_hook
00000240 T startup_default_early_hook
00000244 T startup_default_late_hook
00000240 W startup_early_hook
00000244 W startup_late_hook
6000160c T string0
2000037c B systick_cycle_count
00001290 T systick_isr
20000384 B systick_millis_count
20000880 B systick_safe_read
600013a0 T tempmon_init
200003db b transmit_previous_timeout
200003d4 b tx_available
2000069a b tx_available
20000560 b tx_head
2000056d b tx_head
200003d9 b tx_noautoflush
2000056c b tx_noautoflush
200003d6 b tx_packet_size
00001028 T tx_queue_transfer
200004e0 b tx_transfer
200006c0 b tx_transfer
00000ff8 T tx_zero_pad
20200c80 b txbuffer
20201580 b txbuffer
00001758 T ultoa
00000228 T unused_interrupt_vector
60001610 T usb_config_descriptor_12
60001684 T usb_config_descriptor_480
00000a90 T usb_config_rx
00000af4 T usb_config_tx
200003d0 B usb_configuration
20200000 B usb_descriptor_buffer
20000280 D usb_descriptor_list
2000035c D usb_enable_serial_event_processing
200003a8 B usb_high_speed
60001498 T usb_init
00000bd8 T usb_init_serialnumber
00000d00 T usb_midi_configure
00000dd4 T usb_midi_flush_output
6000133c T usb_pll_start
00000b5c T usb_prepare_transfer
200003b0 b usb_reboot_timer
00000bb4 T usb_receive
00000fe0 T usb_seremu_available
00000f2c T usb_seremu_configure
00001090 t usb_seremu_flush_callback
00000a64 T usb_stop_sof_interrupts
600015f4 V usb_string_manufacturer_name
600015f4 T usb_string_manufacturer_name_default
600015dc V usb_string_product_name
600015dc T usb_string_product_name_default
2000033c V usb_string_serial_number
2000033c D usb_string_serial_number_default
20000398 B usb_timer0_callback
200003a4 B usb_timer1_callback
00000b8c T usb_transmit
6000102c T vector_table
000012c0 W yield
Any suggestions?