Startup Code Modification for MKL16

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Startup Code Modification for MKL16

1,115 次查看
BPR
Contributor I
破坏者
 

 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 项奖励
7 回复数

1,098 次查看
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 项奖励

1,047 次查看
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 项奖励

1,026 次查看
Miguel04
NXP TechSupport
NXP TechSupport

Hi @BPR 

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

Best Regards, Miguel.

0 项奖励

1,012 次查看
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 项奖励

996 次查看
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 项奖励

979 次查看
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 项奖励

961 次查看
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 项奖励