2016-11-21 02:09 PM
Hi,
This CPU has 16K of flash and I can only program the first 8K. I'm using a Segger JLink probe on a custom circuit board and Atollic truestudio. I can program the first 8K properly, but the 2nd 8K won't change from a value of 0.The Segger logs show that it is writing the proper values past the 8K boundary.The linker script for truestudio has the correct part and indicates it has 16K of flash.The binary generated by truestudio is correct also.Since the segger log shows the proper values being written, I'm thinking there is something going on with the CPU.Has anyone run into this before? Is there something I need to do to enable the 2nd 8K of flash for use?Thanks...Keith Rhodes #stm32l011-flash2016-11-21 08:06 PM
Sorry not using the L0, but I'd probably double check if there is a Flash size constant in ROM, and then code a quick test to erase/write pages in the second half of the memory space.
2016-11-21 10:22 PM
I'd try the STLink+STLink Utility combo.
JW2016-11-22 03:15 AM
Thanks clive1,
I've never seen this in the STM32F4 or STM32F2. How would I go about finding if there was such a thing?...Keith2016-11-22 03:19 AM
Thanks JW,
Can you provide a bit more info? Are you suggesting I use one of the JLink utilities to try to write to the 2nd 8K? Which utility have you used to do this?...Keith2016-11-22 09:50 AM
2016-11-22 11:39 AM
I'd expect it to be in the Reference or Data Manual. On the F2/F4 the FLASH size can be pulled using
unsigned flashsize = *((unsigned short *)0x1FFF7A22);Jan is suggesting using the ST-LINK, and it's tools, not the J-LINK. This would permit a sanity check using tools more directly from the vendor of the parts.2016-11-22 11:45 AM
2016-11-22 02:23 PM
Its 0x10, so it looks like a 16k part. I'll continue to pursue with Atollic.
Thanks Clive1