Skip to content

Erase external memory on U585 before flashing it in CI #96

@kr-t

Description

@kr-t

Task Description

Soon we plan to deliver usage of external flash (64MB) to support upload of bigger containers. This means, that that flash won't be erased by the default command we use here:
STM32_Programmer_CLI -c port=swd -e all -w zephyr.bin 0x08000000 -v -rst
(

- name: Flash b_u585i_iot02a
)

Please add an additional step to erase the external flash before flashing the main firmware.

Requirements

  • External flash is erased before main software is flashed

Expected Outcome

There is an external memory step before Flash b+i585i_iot02a step.
If hello.bin (base) container was changed, the test will still pass, since garbage was cleaned up during the erase external memory step.

Additional Context

This task depends on absolute paths, so you have to check where the config files are located. But here is a command which works on my machine:
STM32_Programmer_CLI -c port=swd -el "/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/ExternalLoader/MX25LM51245G_STM32U585I-IOT02A.stldr" -e all -s

I will deliver change to fix Container misnaming bug, so theoretically this wouldn't be necessary and we could just store more containers in lfs, but if we would deliver another container named the same with different size, than it wouldn't work. I have tested erase and flash and it worked fine. I would deliver this minor change by myself, but I don't want to try to find out path for config by trial and errors.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions