cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate a big images.bin file?

V.H
Senior

Hello all,

I used a lot of images in my project and I put them (images.bin file) into SD-Card for used.

Now I have a question:

How to generate a big images.bin file?

"In this example we will put the image data in the ExtFlashSection at address 0x24000000. You can select any address that is otherwise unused (not part of the code or data address space)."

The 4GB (0x00000000~0xFFFFFFFF) zone is include code and data space, but I need to generate a big images.bin such as 4GB size.

4 REPLIES 4
KnarfB
Principal III

The image file for the MCU must match the MCU+Board flash addresses and sizes. The file size is independent of the size of the SD-card you're storing it on.

hth

KnarfB

For example: (stm32h730 memory map)

[0x00000000, 0x20000000] for code

[0x20000000, 0x40000000] for ram

[0x40000000, 0x60000000] for peripherals

[0x60000000, 0x70000000] & [0x90000000, 0xA0000000] & [0xC0000000, 0xE0000000] for fmc

[0x70000000, 0x80000000] & [0x90000000, 0xA0000000] for octospi

unused space only [0xA0000000, 0xB0000000] (256MB), so I put the image data in the ExtFlashSection at address 0xA0000000. This gives me a file (images.bin) containing the image byte arrays only, then I programmed this file to SD-card for used.

If my image data is more then 256MB, Keil compilation fails. Now, my image data capacity is close to 4GB, how to generate the images.bin file?

Thank you for your attention

Pavel A.
Evangelist III

> If my image data is more then 256MB, Keil compilation fails

If "image" here means pictures such as jpg, png or a filesystem image - make it

using some other tool: a C or python program for example.

Compilers are best at converting C/C++ source code to binary.

Not a suitable tool for the task.

KnarfB
Principal III

or partition the SD card and read the data from another partition.