Creating M0 image as a .c file for M4

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

Creating M0 image as a .c file for M4

402 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rgledhill on Wed Sep 25 08:02:57 MST 2013
Hi,
I know there have been questions about this in the past; the key is to use the following command:

fromelf --cadcombined --output="..\M4\M0_image\M0_image.c" ".\Flash\LPC43xx_M0.axf"

This takes in an LPC43xx_M0.axf file and creates an M0_image.c file which you can include in your M4 project.

Hope this helps!
Richard
Hitex UK Ltd
Labels (1)
0 Kudos
2 Replies

388 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rgledhill on Fri Oct 25 01:12:32 MST 2013
Hi, I think you've posted this as a response to the wrong post!
0 Kudos

388 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Donna111 on Fri Oct 25 00:09:45 MST 2013
HI there
You can try to this code:
using RasterEdge.Imaging.Basic.Core;
using RasterEdge.Imaging.Basic.Codec;
using RasterEdge.Imaging.TIFF;
using RasterEdge.Imaging.Basic;

namespace RE__Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            int width = 100;
            int height = 60;

            REImage reImage = new REImage(width, height, ImageMode.RGB888);// Create a image with specified width, height and color mode; all pixels are set to white

            REFile.SaveImageFile(reImage, "c:/reimage.bmp", new BMPEncoder());
            REFile.SaveImageFile(reImage, "c:/reimage.png", new PNGEncoder());
            REFile.SaveImageFile(reImage, "c:/reimage.jpg", new JPGEncoder());
            REFile.SaveImageFile(reImage, "c:/reimage.tif", new TIFEncoder());
        }
    }
0 Kudos