Author Topic: Replacement of RT1062 by RT1064  (Read 1110 times)

0 Members and 1 Guest are viewing this topic.

Offline luiHSTopic starter

  • Frequent Contributor
  • **
  • Posts: 592
  • Country: es
Replacement of RT1062 by RT1064
« on: January 13, 2022, 09:25:33 pm »

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?

 

Online Nominal Animal

  • Super Contributor
  • ***
  • Posts: 6240
  • Country: fi
    • My home page and email address
Re: Replacement of RT1062 by RT1064
« Reply #1 on: January 13, 2022, 11:46:05 pm »
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.)
 
The following users thanked this post: luiHS

Offline luiHSTopic starter

  • Frequent Contributor
  • **
  • Posts: 592
  • Country: es
Re: Replacement of RT1062 by RT1064
« Reply #2 on: January 14, 2022, 01:52:10 am »
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.
« Last Edit: January 14, 2022, 03:01:10 am by luiHS »
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14445
  • Country: fr
Re: Replacement of RT1062 by RT1064
« Reply #3 on: January 14, 2022, 02:03:41 am »
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
 
The following users thanked this post: luiHS


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf