fertbarn.blogg.se

Codelink v2 memory
Codelink v2 memory









codelink v2 memory

STLINKv2, present on STM32L discovery and later kits. STLINKv1, present on STM32VL discovery kits, Those boards use a chip to translate from USB to JTAG commands.

codelink v2 memory

They might enumerate the boot loader application and check firmware version before writing new firmware or just restarting the program counter to the actual application.Īpplications are easy to compile further up flash just by changing the linker file and the benefits of field upgradeability without debuggers attached are unarguable! Reply Deleteįirst, you have to know there are several boards supported by the software. I think one of their examples stored a flag later in flash so that the boot loader could run straight into application if it had a valid flag (I reckon that's the bit at 0803c00 which is probably the last page on the device). Quite an old example that they had was a dfu, device firmware upgrader (I imagine they still have one) which for USB devices is great, its essentially a boot loader loaded where program execution starts and then you can store a USB stack ready to communicate upload some firmware and then execute it.

codelink v2 memory

Erasing a page takes time, then you write some and then wait for write before continuing. Unlike eeprom with flash you erase a page at a time(to FF FF.) Then writing flips bits low. Loving your work, having done some work on STM32's I can probably hazard a guess on a few of the things you're unsure of.įirstly the flash pages in the device are 1k long.











Codelink v2 memory