Issue - MPC5748G Serial Bootloader Green Hill Project convert to S32 Design Studio Project

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

Issue - MPC5748G Serial Bootloader Green Hill Project convert to S32 Design Studio Project

1,620 Views
K_W_SEO
Contributor II

 

Hi, I'm not good at English, so please consider it.

I have a problem occurred while converting the Green Hills Serial Bootloader example project to the S32 Design Studio project.

Putchar(), a function that transmits serial data in the Green Hills Bootloader source code, was changed by applying the LINFLEXD driver.

But when I check the data transmitted using the serial terminal program, there is a problem.

The original source code is as follows.

/* display menu */
OutStr("\r\n1.) Erase Flash\r\n");
OutStr("2.) Program Flash\r\n");
OutStr("3.) Execute Application\r\n");
OutStr("Please choose 1 to 3: ");

However, the terminal program is output as follows.

K_W_SEO_0-1676974568293.png

No output since "Pleas"

When checked with the Trace32 debugger, it is stuck on the while(TxBAvail == 0) line of the Putchar() function.

K_W_SEO_1-1676974917018.png

The bigger problem is that if I put a breakpoint on the line (TxBAvail == 0), and run the program step by step, it will output correctly to the terminal program as shown below.

K_W_SEO_2-1676975480469.png

I would appreciate it if you could tell me how to modify the putchar() function to work properly.

I will attach my project file.

Thanks:)

 

 

0 Kudos
Reply
3 Replies

1,606 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @K_W_SEO 

I will answer this in different way - is there a reason to add SDK to this project? I can't see any. It should be quite straightforward to migrate the project from GHS to S32DS - *.c and *.h files will be the same, you just need to update the linker file and startup file in case you want to jump to application right after reset.

Regards,

Lukas

0 Kudos
Reply

1,600 Views
K_W_SEO
Contributor II

Thank you for your reply.

I'll ask you a further question.

GHS project is not compiled on S32DS, is there any other way?

0 Kudos
Reply

1,592 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

No, GHS project can't be compiled in S32DS. It is possible to install GHS plugin to S32DS but this plugin can compile only S32DS projects.

As I mentioned, I think that easiest option is to simply migrate the source files to new project in S32DS (without SDK, of course) and update linker+startup file.

Regards,

Lukas

0 Kudos
Reply