Replacement of RT1062 by RT1064 - Page 1
Forum section: electronics / general

author: luiHS
author_rank: Frequent Contributor
timestamp: January 13, 2022, 09:25:33 pm
content: Hello.I needed the RT1062 microcontroller for some designs, the same one that the Teensy 4 installs. The fact is that it is totally sold out and stock is not expected until the end of 2022 or the beginning of 2023.I have the RT1064, I think the only difference is that the RT1064 has internal flash memory and the RT1062 needs an external QSPI or hyperflash.Does anyone know if it would be fully compatible to replace the RT1062 with the RT1064, using a compiled program for the RT1062 in the RT1064?

author: Nominal Animal
author_rank: Super Contributor
timestamp: January 13, 2022, 11:46:05 pm
content: Aside from changes to your linker file and Flash memory address range (reflecting the fact that the Flash is built-in to the RT1064: check the address range, as the internal pins are different!), they should be fully compatible.Note, however, that RT1064 is not going to work if you intend to use Teensyduino with the MKL02 and a Winbond Flash chip (W25Q16JV*IM, W25Q64JV*IM, W25Q128JV*IM), because the proprietary bootloader and bootup machinery in the MKL02 does not work with the built-in Flash in the RT1064, only with the aforementioned external Flash chips.I do not believe it is possible to connect those boot flash chips to RT1064 the same way they would be to a RT1062.In other words, if you write your own boot code, and do not rely on Teensyduino, then RT1064 should work for you.If you do intend to use Teensyduino, then RT1064 will not work for you, because of the internal boot flash.(This reflects the situation on 2022-01-14. Depending on the chip availability stuff, PJRC.com might modify the MKL02 chip to work on later versions of RT106*; but I think this is unlikely. The next version of Teensy is planned to be based on RT1170, when those chips become available to PJRC.)

author: luiHS
author_rank: Frequent Contributor
timestamp: January 14, 2022, 01:52:10 am
content: Thank you.I only use Teensyduino with the Arduino IDE to create the source of the program, because I started a long time ago from a program made with a library for Teensy. So I had no choice, I would have preferred to work with MCUXpresso from the beginning, but when I upload the program to my own board I do it using Segger's Jlink. I don't use Teensy, although I have them, 3 and 4, I make my own PCB with the same microcontroller and load the program with a TC2050 connector and the Jlink.I will look at the Linker Script to see the starting addresses of the flash and RAM. Besides that, I don't know if the addresses of the GPIO and SPI ports could also be different. It seems that the RT1064 is the same RT1062 but with the flash inside the chip, as well as the RT1024 it also looks the same as the RT1020, but with internal flash.

author: SiliconWizard
author_rank: Super Contributor
timestamp: January 14, 2022, 02:03:41 am
content: Although I have some doubts there will be a Teensy board with the RT1064, that may be something the author has in mind. So who knows, he may be interested in helping you:https://github.com/PaulStoffregen