cancel
Showing results for 
Search instead for 
Did you mean: 

Cube Programmer can't handle numbers larger than 32 bits in the offset field

Hammy
Associate III

There seems to be an issue with CubeProgrammer and parsing hex strings that are longer than 8 characters. For example, an offset of 0x05984400 will parse correctly but 0x105984400 will not. It will incorrectly parse as 0x05984400. I am trying to reference an offset that is past the 4GB mark so CubeProgrammer is truncating my offset value. Is it supposed to do that? What is the best way to reference partitions past the 2^32 bits mark? Are other people able to get it to work or am I just doing something weird?

Edit: Also the images in Kirkstone are defaut to a rootfs size of 4GiB.

12 REPLIES 12
Bernard PUEL
ST Employee

What is your setup ?

Bernard PUEL
ST Employee

If you are on Linux the CLI is working well.

Hammy
Associate III

Hi @Bernard PUEL​ 

I am using Ubuntu 20.04.

Also another data point. I tried to work around the issue by using a GPT image but that didn't seem to work either. When I went to flash the device I used the following.

#Opt	Id	Name	Type	IP	Offset	Binary
-	0x01	fsbl-boot	Binary	none	0x0	arm-trusted-firmware/tf-a-stm32mp157c-osd32mp1-axcend-system-controller-usb.stm32
-	0x03	fip-boot	FIP	none	0x0	fip/fip-stm32mp157c-osd32mp1-axcend-system-controller-trusted.bin
P	0x10	sdcard	RawImage	mmc0	0x0	st-image-core-stm32mp157c-osd32mp1-axcend-system-controller.img

but I would just end up with the device hanging at

INFO:    SP_MIN: Preparing exit to normal world

I got around it by flashing to a SD card. I still need to test the command line