Skip to main content

How to write new custom partition table to flash?

DA1469x

5 months ago

Posted by jerryjuan 225 points 5 replies
0 upvotes

I have modified a new custom partition table, from guide,

it said that it will write into flash when I "program_qspi_serial" of my debug image. However after I did it, I only saw it program image and product header. And result is the same after I read qspi content from flash. Could you let me know how I can write partition table for with custom 16MB partition table? Thanks.

5 months ago

PM_Dialog

Hi Jerry,

Thanks for your question. I assume you are following this tutorial ( link is provided below ) to create a custom partition table :

http://lpccs-docs.dialog-semiconductor.com/da1469x_flash_adapters/nvms_storage.html#creating-custom-partition-tables

>>However after I did it, I only saw it program image and product header.

Can you please clarify this statement? Do you mean in the SmartSnippets Toolbox?

Can you also share the partition table you are using to check it out? Is it for the W25Q32JWY-IQ?

Thanks, PM_Dialog

5 months ago

jerryjuan 225 points

Hi PM_Dialog,

Yeah, I did follow tutorial to create a 16MB partition table for W25Q128JWYIQ.
After erase_program_qspi and program_qspi_serial, I 'd like to check if partition table is updated as well.

I tried to read partition table according to tutorial (3.1.1. Verifying with the SmartSnippets Toolbox)
But it read all oxFF from it. I have updated cli_programmer and related staff to the one I build base on new driver and partition table.

Not sure what happened so far, and from the log of program_qspi_serial I only saw it wrote address start from 0x2000 for image and from 0x0 for product header, didn't see it update partition table address.

 

........................................................................................................................
..
.. PROGRAM QSPI
..
........................................................................................................................
.
........................................................................................................................
..
.. Programming image
..
........................................................................................................................
cli_programmer 1.26
Copyright (c) 2015-2019 Dialog Semiconductor

Using serial port COM11 at baud rate 1000000.
bootloader file not specified, using internal uartboot.bin

Setting serial port baud rate to 115200.
Connecting to device...
Uploading boot loader/application executable...
Executable uploaded.

Setting serial port baud rate to 1000000.
Writing to address: 0x00002000 offset: 0x00000000 chunk size: 0x0000c000
Writing to address: 0x00002000 offset: 0x0000c000 chunk size: 0x0000c000
Writing to address: 0x00002000 offset: 0x00018000 chunk size: 0x0000c000
Writing to address: 0x00002000 offset: 0x00024000 chunk size: 0x0000c000
Writing to address: 0x00002000 offset: 0x00030000 chunk size: 0x0000c000
Writing to address: 0x00002000 offset: 0x0003c000 chunk size: 0x0000c000
Writing to address: 0x00002000 offset: 0x00048000 chunk size: 0x00007248
done.
........................................................................................................................
..
.. Programming product header
..
........................................................................................................................
. Using configuration:
. Product ID: DA1469x-00
. Product Header:
.     active_image_address: 0x2000
.     update_image_address: 0x2000
.     flash_name: W25Q128JWYIQ
.     flash_size: 16M
.     flash_burstcmda_reg_value: 0xa82000eb
.     flash_burstcmdb_reg_value: 0x26
.     flash_write_config_command: 0x31 0x2 0x7

cli_programmer 1.26
Copyright (c) 2015-2019 Dialog Semiconductor

Using serial port COM11 at baud rate 1000000.
bootloader file not specified, using internal uartboot.bin

Writing to address: 0x00001000 offset: 0x00000000 chunk size: 0x00001000
done.
cli_programmer 1.26
Copyright (c) 2015-2019 Dialog Semiconductor

Using serial port COM11 at baud rate 1000000.
bootloader file not specified, using internal uartboot.bin

Writing to address: 0x00000000 offset: 0x00000000 chunk size: 0x00001000
done.
.
........................................................................................................................
..
.. FINISHED
..
........................................................................................................................
 

accepted answer!

5 months ago

PM_Dialog

Hi Jerry,

Please make sure you have done the modification that we suggested to you in this ticket :

https://www.dialog-semiconductor.com/support-posts/uartboot-upload-failed-invalid-announcement-message-received

If you have done them, could you please share the partition table that you are using?

Best regards,

Panos

5 months ago

jerryjuan 225 points

partition_table can be read after done the modification you suggested, thanks  a lot.

5 months ago

PM_Dialog

Hi Jerry,

Thanks for letting us know. If you have any other follow-up question, please raise a new forum ticket.

Thanks, PM_Dialog