S32G274 baremetal code

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

S32G274 baremetal code

91 Views
Tatu_dd
Contributor I

I want to use a bare-metal program on the S32G274 development board, including bare-metal drivers for modules such as powering up the A53 processor, LINFlexD serial port, and Ethernet. I would like it to run successfully right out of the box. The drivers generated by S32DS only include processor power-up functionality.
I have attempted to implement the LINFlexD serial port myself (enabling pins, enabling clocks, initializing the serial interface), but I'm unclear about how to properly handle clock enablement.
I hope you can provide me with a ready-to-use bare-metal program that can be directly compiled in S32DS.

Tags (1)
0 Kudos
Reply
1 Reply

38 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Tatu_dd 

Thanks for your post.
1. NXP's software enablement strategy for S32G274A positions the A53 cores primarily for Linux BSP operation rather than bare-metal development. The S32 Design Studio 3.6.8 examples for A53 cores are intentionally limited to boot/startup code, as the intended use case involves running a full Linux distribution on these cores.

chenyin_h_0-1783303897346.png

2. For bare-metal A53 development, there are not much reference code released, there is only a demo existed, but it is not pure bare metal code on A53, but a heterogenous implementation instead

chenyin_h_1-1783304026380.png

As a result, you may have to implement or port the existing Linux driver or RTD driver according to your requirement, sorry that there is no directly formal examples/software releases provisioned by NXP.  

 

BR

Chenyin

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2390645%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32G274%20baremetal%20code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2390645%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EI%20want%20to%20use%20a%20bare-metal%20program%20on%20the%20S32G274%20development%20board%2C%20including%20bare-metal%20drivers%20for%20modules%20such%20as%20powering%20up%20the%20A53%20processor%2C%20LINFlexD%20serial%20port%2C%20and%20Ethernet.%20I%20would%20like%20it%20to%20run%20successfully%20right%20out%20of%20the%20box.%20The%20drivers%20generated%20by%20S32DS%20only%20include%20processor%20power-up%20functionality.%20%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EI%20have%20attempted%20to%20implement%20the%20LINFlexD%20serial%20port%20myself%20(enabling%20pins%2C%20enabling%20clocks%2C%20initializing%20the%20serial%20interface)%2C%20but%20I'm%20unclear%20about%20how%20to%20properly%20handle%20clock%20enablement.%20%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EI%20hope%20you%20can%20provide%20me%20with%20a%20ready-to-use%20bare-metal%20program%20that%20can%20be%20directly%20compiled%20in%20S32DS.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2390829%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32G274%20baremetal%20code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2390829%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F264387%22%20target%3D%22_blank%22%3E%40Tatu_dd%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20post.%3CBR%20%2F%3E%3CSPAN%3E1.%20NXP's%20software%20enablement%20strategy%20for%20S32G274A%20positions%20the%20A53%20cores%20primarily%20for%20Linux%20BSP%20operation%20rather%20than%20bare-metal%20development.%20The%20S32%20Design%20Studio%203.6.8%20examples%20for%20A53%20cores%20are%20intentionally%20limited%20to%20boot%2Fstartup%20code%2C%20as%20the%20intended%20use%20case%20involves%20running%20a%20full%20Linux%20distribution%20on%20these%20cores.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22chenyin_h_0-1783303897346.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22chenyin_h_0-1783303897346.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F391266i800CEEE245292400%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22chenyin_h_0-1783303897346.png%22%20alt%3D%22chenyin_h_0-1783303897346.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E2.%20For%20bare-metal%20A53%20development%2C%20there%20are%20not%20much%20reference%20code%20released%2C%20there%20is%20only%20a%20demo%20existed%2C%20but%20it%20is%20not%20pure%20bare%20metal%20code%20on%20A53%2C%20but%20a%20heterogenous%20implementation%20instead%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22chenyin_h_1-1783304026380.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22chenyin_h_1-1783304026380.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F391267i60B4330E33184206%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22chenyin_h_1-1783304026380.png%22%20alt%3D%22chenyin_h_1-1783304026380.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAs%20a%20result%2C%20you%20may%20have%20to%20implement%20or%20port%20the%20existing%20Linux%20driver%20or%20RTD%20driver%20according%20to%20your%20requirement%2C%20sorry%20that%20there%20is%20no%20directly%20formal%20examples%2Fsoftware%20releases%20provisioned%20by%20NXP.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EChenyin%3C%2FP%3E%3C%2FLINGO-BODY%3E