|
From: Dethernal <det...@gm...> - 2022-01-30 15:27:58
|
Thanks, I start to dig in code, but I have a question: struct stm32x_flash_bank has to be filled, but what are user_data_offset, option_offset, ppage_size etc? For now I try to hack it as fast as possible, just append stm32f1x file. I found source for values in this reference manual: https://www.arterytek.com/download/RM_AT32F415_EN_V1.03.pdf Looks like address 0xE0042000 at MCUDEVICEID is correct way to identify this product. Also, Flash memory size register is 0x1FFFF7E0, but in stm32x_get_flash_size it linked to CORTEX_M3_PARTNO branch, but Artery AT32F415 is Cortex M4. I probably need to add code to ensure that I will get right address... Just to remember. On 30.01.2022 02:12, Paul Fertser wrote: > Hi, > > On Sun, Jan 30, 2022 at 02:03:16AM +0300, Dethernal wrote: >> device id = 0x700301c5 >> Cannot identify target as a STM32 family. >> auto_probe failed >> >> What steps should I do? I trying to understand this : >> https://openocd.org/doc/html/Config-File-Guidelines.html#Add-CPU-targets but > It's not about config modifications, unfortunately. You need to patch > the flash driver so that it understands that ID and uses appropriate > flash parameters. The driver is in src/flash/nor/ . > |