Startup Code Modification for MKL16

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Startup Code Modification for MKL16

1,643 Views
BPR
Contributor I
Spoiler
 

 Hi,

Iam using FRDM-KL26Z board for developing a MKL16 based code. But I guess there is a difference between MKL26Z and MKL16 startup code. How can I modify it?

0 Kudos
Reply
7 Replies

1,626 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @BPR 

The startup code is basically the same, the difference is that the KL26Z has the inclusion of an USB interrupt, see thread bellow.

MKL16Z ADC

Best Regards, Miguel.

0 Kudos
Reply

1,575 Views
BPR
Contributor I

Hi, But when Iam flashing the hex file. This is the issue I'm facing

Selected file: C:\Users\PBR\Desktop\ExampleProject.hex
Data file contains 1 memory range:
#0: 0x00000000 - 0x0000B757 (46936 Bytes)
Conecting to J-Link...
Connecting to target...
Downloading...
ERROR: Could not download file.
Done.

 

I build the code with no errors and warnings. Unable to what is the issue with the hex file generated.

 

 

 

0 Kudos
Reply

1,554 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @BPR 

Can you share the details of how are you trying to connect please?

Best Regards, Miguel.

0 Kudos
Reply

1,540 Views
BPR
Contributor I
I just connected by board using a J-Link tool and trying to flash the genreated hex file. Other hex files are flashing but my hex file is not getting flashed.
0 Kudos
Reply

1,524 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @BPR

Can you also tell me how did you generate the hex file and and where do the files you are able to flash come from?

Best Regards, Miguel. 

0 Kudos
Reply

1,507 Views
BPR
Contributor I

I tried porting MKL16 code from KEIL IDE to MCUXpresso. I took MKL26/FRDM board example and modified it to the MKL16 code and then build it without any errors. But while flashing the binary file is not getting flashed. Other example hex files are flashing but the modified example hex file is not able to flash stating the above error in the thread.

0 Kudos
Reply

1,489 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @BPR 

Can you tell me the modifications you made?

Are the modifications made directly from the working projects?

Have you tried using directly MCUXpresso and the SDK?

Sorry that I'm making a lot of questions I require more details.

Best Regards, Miguel. 

0 Kudos
Reply