2014-07-03 05:48 PM
I program in assembly language. I need hardware calrification, not c code please.
1) The parallelsim setting for USB/St-Link power would be x32? (PSIZE=10). Ie I understand the external power option whic I would be supplying but for the ST-Link supplied power is this a correct understanding? 2) The Standard Programming section of RM0090 implied that you write a word ( with x32 parallelism setting ) at a time with each word write ''ack'd'' by waiting for the BSY bit to be cleared. Is this correct understanding. 3) Access to flash code execution is mentioned in a way that implies it os ''tricky'' Does this mean that I can't execute code in flash sector 1/2 to program other sectors? Thanks, Clyde2014-07-03 06:16 PM
The STM32 parts achieve execution while programming by stuffing wait states and stalling the processor. This can stall the processor for a significant amount of time, often beyond the service windows of peripherals (USART, SPI, etc). Both Write and Erase will cause this to occur. The processor will crash if you erase the sector you are executing from. ST does have a couple of Dual Bank devices (F1 XL 1MB, F4 2MB) where write/erase in one bank will not impeded execution in the other. Watch out for interrupts to FLASH based code.
I have some assembler flashing code for the F1/F2/F4 parts, and RAM based execution, would be willing to discuss privately. sourcer32@gmail.com2014-07-05 05:23 PM
Clive,
I sent you an email and it didn't bounce, so maybe see if it's being segregated.... Thanks, Clyde