.
Hi.
I do the developments using Teensy4, to finally make my own board for end customers in commercial projects. Since the RT1062 microcontroller is out of stock at all vendors, at first I thought of using the RT1052 that will be in stock soon, but then I thought it much better to use the RT1064 that I do have in stock here.
To see the compatibility between Teensy4 and RT1064, I have looked at the flash boot address in Teensy 4, to compare it with that of the RT1064 and I see that they are different, also the sizes of both FLASH and RAM, although the address of the RAM does match.
In the Arduino environment for Teensy4, I have found the Linker script with this data for the RT1062:
RAM (rwx): ORIGIN = 0x20200000, LENGTH = 512K
FLASH (rwx): ORIGIN = 0x60000000, LENGTH = 1984K
Then I looked for the RT1064 in the Reference Manual, but I didn't get it clear and so I opened in MCUXpresso one of the many example projects that there are, and here I see the memory map being this:
RAM SRAM_OC 0x20200000 0xC0000
Flash PROGRAM_FLASH 0x70000000 0x400000
In Teensy4 the FLASH is at 0x60000000, while in RT1064 it is at 0x70000000. In addition, the sizes vary, being the flash of the RT1064 of 4Mb, and in Teensy4 of 2Mb, and the RAM of 512k for Teensy4 and 1Mb for RT1064.
Does anyone know if it would be enough to change this data in the Teensy4 Linker Script, so that it compiles and loads in RT1064 ?
On my RT1064 board I would load the program with a SEGGER Jlink programmer or similar, and probably use an encrypting bootloader like uTasker to give updates to clients.
Hi.
I do the developments using Teensy4, to finally make my own board for end customers in commercial projects. Since the RT1062 microcontroller is out of stock at all vendors, at first I thought of using the RT1052 that will be in stock soon, but then I thought it much better to use the RT1064 that I do have in stock here.
To see the compatibility between Teensy4 and RT1064, I have looked at the flash boot address in Teensy 4, to compare it with that of the RT1064 and I see that they are different, also the sizes of both FLASH and RAM, although the address of the RAM does match.
In the Arduino environment for Teensy4, I have found the Linker script with this data for the RT1062:
RAM (rwx): ORIGIN = 0x20200000, LENGTH = 512K
FLASH (rwx): ORIGIN = 0x60000000, LENGTH = 1984K
Then I looked for the RT1064 in the Reference Manual, but I didn't get it clear and so I opened in MCUXpresso one of the many example projects that there are, and here I see the memory map being this:
RAM SRAM_OC 0x20200000 0xC0000
Flash PROGRAM_FLASH 0x70000000 0x400000
In Teensy4 the FLASH is at 0x60000000, while in RT1064 it is at 0x70000000. In addition, the sizes vary, being the flash of the RT1064 of 4Mb, and in Teensy4 of 2Mb, and the RAM of 512k for Teensy4 and 1Mb for RT1064.
Does anyone know if it would be enough to change this data in the Teensy4 Linker Script, so that it compiles and loads in RT1064 ?
On my RT1064 board I would load the program with a SEGGER Jlink programmer or similar, and probably use an encrypting bootloader like uTasker to give updates to clients.