Hi guys,
I am a long time lurker, but first time poster. I have been building projects with Teensies for several years using MCUXpresso. I have never had any trouble getting a hello world or blink app up and running on Teensy 3.2, 3.5, or 3.6. I have a 4.1 that am interested in experimenting with FreeRTOS on and it works great building/uploading binaries from Arduino. I seem to have hit a brickwall with the 4.1 building in MCUXpresso, however.
After studying the NXP docs and the Arduino produced hex file, it seems like I'm producing a proper hex, but I can't get it to run after a couple days of trying.
At this point here is what I have:
0x600000: FlexSPI Configuration Block - Basically just copied the Arduino generated block
0x601000: IVT - Similar, but not identical to Arduino generated (Differences are minor differences in the generated binary, e.g. entry is 0x602000)
0x601020: Boot Data Structure - Similar, but not identical, length is just set to 0x7C00 rather than the actual image size
0x602000: Start of vector table and code
From what I understand so far, this should be all that is needed. I'm assuming the HalfKay is setting the boot mode to b10 (Internal) either through the external pins or fuses.
As best I can tell, my image never makes it to the startup code. I have tried turning on the LED early in the startup but I have never been able to get it to turn on.
I would appreciate it if someone took pity on me and pointed out where I have gone astray. As an aside, I don't suppose there is any magic I could send to HalfKay that would boot the RT1062 in Serial Downloader mode??? Any and all suggestions welcome
I am a long time lurker, but first time poster. I have been building projects with Teensies for several years using MCUXpresso. I have never had any trouble getting a hello world or blink app up and running on Teensy 3.2, 3.5, or 3.6. I have a 4.1 that am interested in experimenting with FreeRTOS on and it works great building/uploading binaries from Arduino. I seem to have hit a brickwall with the 4.1 building in MCUXpresso, however.
After studying the NXP docs and the Arduino produced hex file, it seems like I'm producing a proper hex, but I can't get it to run after a couple days of trying.
At this point here is what I have:
0x600000: FlexSPI Configuration Block - Basically just copied the Arduino generated block
0x601000: IVT - Similar, but not identical to Arduino generated (Differences are minor differences in the generated binary, e.g. entry is 0x602000)
0x601020: Boot Data Structure - Similar, but not identical, length is just set to 0x7C00 rather than the actual image size
0x602000: Start of vector table and code
From what I understand so far, this should be all that is needed. I'm assuming the HalfKay is setting the boot mode to b10 (Internal) either through the external pins or fuses.
As best I can tell, my image never makes it to the startup code. I have tried turning on the LED early in the startup but I have never been able to get it to turn on.
I would appreciate it if someone took pity on me and pointed out where I have gone astray. As an aside, I don't suppose there is any magic I could send to HalfKay that would boot the RT1062 in Serial Downloader mode??? Any and all suggestions welcome