Skip to main content
Hammy
Associate III
January 24, 2023
Question

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

  • January 24, 2023
  • 12 replies
  • 3719 views

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.

This topic has been closed for replies.

12 replies

Bernard PUEL
Technical Moderator
February 2, 2023

If you are on Linux the CLI is working well.

Hammy
HammyAuthor
Associate III
February 2, 2023

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