)]}'
{"src/flash/nor/stm32lx.c":[{"author":{"_account_id":1000000,"name":"Spencer Oliver","email":"spen@spen-soft.co.uk","username":"ntfreak"},"change_message_id":"8aa091969ee64c77af11f8fc3f00207aedbc2fdb","unresolved":false,"context_lines":[{"line_number":349,"context_line":"\t\tbuffer +\u003d this_count;"},{"line_number":350,"context_line":"\t\taddress +\u003d this_count;"},{"line_number":351,"context_line":"\t\tcount -\u003d this_count;"},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"\t}"},{"line_number":354,"context_line":""},{"line_number":355,"context_line":"\t/* restore previous flags */"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"AAAA8n%2F%2F%2BjM%3D","line":352,"updated":"2013-02-05 15:21:26.000000000","message":"do not add superfluous line feeds","commit_id":"c15f9f0bcb8501e3da046ea68f5d887968b2e4e4"},{"author":{"_account_id":1000280,"name":"Johan Almquist","email":"johan.almquist@assaabloy.com","username":"JohAlm"},"change_message_id":"a3e9e2d4e36fdb607c74f9e422adb7967ddb0586","unresolved":false,"context_lines":[{"line_number":349,"context_line":"\t\tbuffer +\u003d this_count;"},{"line_number":350,"context_line":"\t\taddress +\u003d this_count;"},{"line_number":351,"context_line":"\t\tcount -\u003d this_count;"},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"\t}"},{"line_number":354,"context_line":""},{"line_number":355,"context_line":"\t/* restore previous flags */"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"AAAA8n%2F%2F%2Bh0%3D","line":352,"in_reply_to":"AAAA8n%2F%2F%2BjM%3D","updated":"2013-02-08 15:16:09.000000000","message":"ok","commit_id":"c15f9f0bcb8501e3da046ea68f5d887968b2e4e4"},{"author":{"_account_id":1000000,"name":"Spencer Oliver","email":"spen@spen-soft.co.uk","username":"ntfreak"},"change_message_id":"8aa091969ee64c77af11f8fc3f00207aedbc2fdb","unresolved":false,"context_lines":[{"line_number":545,"context_line":"\t\treturn ERROR_FAIL;"},{"line_number":546,"context_line":"\t}"},{"line_number":547,"context_line":""},{"line_number":548,"context_line":"\t/*  The flash size register on chip that according to spec should reflect"},{"line_number":549,"context_line":"\t\tthe size of the flash in kb is not always working."},{"line_number":550,"context_line":"\t\tSome samples we\u0027ve seen does not have this number set, but worse is that we\u0027ve seen"},{"line_number":551,"context_line":"\t\tsamples that has erroneous numbers set."}],"source_content_type":"text/x-csrc","patch_set":1,"id":"AAAA8n%2F%2F%2BjI%3D","line":548,"updated":"2013-02-05 15:21:26.000000000","message":"Because we have to support flash sizes from 32-384kB we still need this register.\n\nI have also received reports of invalid flash size register for the stm32l.\n\nI think a better approach would be to use the size parameter from the flash bank cmd if it is !\u003d 0 do not read the flash size register (F_SIZE).\n\nIt may also be worth checking for valid values for the size register (F_SIZE), eg. check it is less than 512kB for example.","commit_id":"c15f9f0bcb8501e3da046ea68f5d887968b2e4e4"},{"author":{"_account_id":1000280,"name":"Johan Almquist","email":"johan.almquist@assaabloy.com","username":"JohAlm"},"change_message_id":"a3e9e2d4e36fdb607c74f9e422adb7967ddb0586","unresolved":false,"context_lines":[{"line_number":545,"context_line":"\t\treturn ERROR_FAIL;"},{"line_number":546,"context_line":"\t}"},{"line_number":547,"context_line":""},{"line_number":548,"context_line":"\t/*  The flash size register on chip that according to spec should reflect"},{"line_number":549,"context_line":"\t\tthe size of the flash in kb is not always working."},{"line_number":550,"context_line":"\t\tSome samples we\u0027ve seen does not have this number set, but worse is that we\u0027ve seen"},{"line_number":551,"context_line":"\t\tsamples that has erroneous numbers set."}],"source_content_type":"text/x-csrc","patch_set":1,"id":"AAAA8n%2F%2F%2Bh4%3D","line":548,"in_reply_to":"AAAA8n%2F%2F%2BjI%3D","updated":"2013-02-08 15:16:09.000000000","message":"Ok, I see your point... But I\u0027m not sure what you mean by flash bank cmd.  Do you mean what is sent in from the config file? So instead of using 0 one can \u0027override\u0027 and specify a size to stop it from reading the register?  \n\nYes, if that is the case, I agree that it could be useful to printout an error message if the read size is larger than 512Kb and then let the user be able to configure and override it.\n\nHowever - for what I understand from ST, the 256Kb and the 384Kb chips have dual bank memories. Hence, we must either do as I did now and hard-code the size depending on device id - or we must divide the flash size read from the register by 2. And that might not make any sense for an overriden value.  \n\nWhat are your thoughts on this?","commit_id":"c15f9f0bcb8501e3da046ea68f5d887968b2e4e4"},{"author":{"_account_id":1000000,"name":"Spencer Oliver","email":"spen@spen-soft.co.uk","username":"ntfreak"},"change_message_id":"199db6602308fba1b8bb81995f0a0c4cb7f61431","unresolved":false,"context_lines":[{"line_number":550,"context_line":"\t\tLOG_WARNING(\"STM32 flash size failed, probe inaccurate - assuming %dk flash\","},{"line_number":551,"context_line":"\t\t\tmax_flash_size_in_kb);"},{"line_number":552,"context_line":"\t\tflash_size_in_kb \u003d max_flash_size_in_kb;"},{"line_number":553,"context_line":"\t} else if (flash_size_in_kb \u003e 384) {"},{"line_number":554,"context_line":"\t\tLOG_WARNING(\"STM32 flash size assumed incorrect since FLASH_SIZE\u003d%dk \u003e 384k, - assuming %dk flash\","},{"line_number":555,"context_line":"\t\t\tflash_size_in_kb, max_flash_size_in_kb);"},{"line_number":556,"context_line":"\t\tflash_size_in_kb \u003d max_flash_size_in_kb;"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"AAAA8n%2F%2F%2Bg8%3D","line":553,"updated":"2013-02-11 17:34:13.000000000","message":"perhaps use max_flash_size_in_kb rather than magic number?","commit_id":"dbfb4c50aff413312da43bc0f2fcd0e6e25b9c32"},{"author":{"_account_id":1000280,"name":"Johan Almquist","email":"johan.almquist@assaabloy.com","username":"JohAlm"},"change_message_id":"454a98f3a3496cca52ddd190864b85d607b15802","unresolved":false,"context_lines":[{"line_number":550,"context_line":"\t\tLOG_WARNING(\"STM32 flash size failed, probe inaccurate - assuming %dk flash\","},{"line_number":551,"context_line":"\t\t\tmax_flash_size_in_kb);"},{"line_number":552,"context_line":"\t\tflash_size_in_kb \u003d max_flash_size_in_kb;"},{"line_number":553,"context_line":"\t} else if (flash_size_in_kb \u003e 384) {"},{"line_number":554,"context_line":"\t\tLOG_WARNING(\"STM32 flash size assumed incorrect since FLASH_SIZE\u003d%dk \u003e 384k, - assuming %dk flash\","},{"line_number":555,"context_line":"\t\t\tflash_size_in_kb, max_flash_size_in_kb);"},{"line_number":556,"context_line":"\t\tflash_size_in_kb \u003d max_flash_size_in_kb;"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"AAAA8n%2F%2F%2Bgo%3D","line":553,"in_reply_to":"AAAA8n%2F%2F%2Bg8%3D","updated":"2013-02-12 10:45:19.000000000","message":"yes, that is a better idea","commit_id":"dbfb4c50aff413312da43bc0f2fcd0e6e25b9c32"},{"author":{"_account_id":1000000,"name":"Spencer Oliver","email":"spen@spen-soft.co.uk","username":"ntfreak"},"change_message_id":"199db6602308fba1b8bb81995f0a0c4cb7f61431","unresolved":false,"context_lines":[{"line_number":557,"context_line":"\t}"},{"line_number":558,"context_line":""},{"line_number":559,"context_line":"\t/* If this is a dual bank flash the bank size should be half of the total flash size */"},{"line_number":560,"context_line":"\tif (384 \u003d\u003d flash_size_in_kb || 256 \u003d\u003d flash_size_in_kb)"},{"line_number":561,"context_line":"\t\tflash_size_in_kb \u003d flash_size_in_kb / 2;"},{"line_number":562,"context_line":""},{"line_number":563,"context_line":"\t/* STM32L - we have 32 sectors, 16 pages per sector -\u003e 512 pages"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"AAAA8n%2F%2F%2BhA%3D","line":560,"updated":"2013-02-11 17:34:13.000000000","message":"how about something similar to stm32f1x driver and has_dual_banks check. we could check for a DEVID of 0x436.\n\nthough the 256k parts were still single flash bank ?","commit_id":"dbfb4c50aff413312da43bc0f2fcd0e6e25b9c32"},{"author":{"_account_id":1000280,"name":"Johan Almquist","email":"johan.almquist@assaabloy.com","username":"JohAlm"},"change_message_id":"2d29e4268f44747b8b47d85f5814fec799902ba8","unresolved":false,"context_lines":[{"line_number":557,"context_line":"\t}"},{"line_number":558,"context_line":""},{"line_number":559,"context_line":"\t/* If this is a dual bank flash the bank size should be half of the total flash size */"},{"line_number":560,"context_line":"\tif (384 \u003d\u003d flash_size_in_kb || 256 \u003d\u003d flash_size_in_kb)"},{"line_number":561,"context_line":"\t\tflash_size_in_kb \u003d flash_size_in_kb / 2;"},{"line_number":562,"context_line":""},{"line_number":563,"context_line":"\t/* STM32L - we have 32 sectors, 16 pages per sector -\u003e 512 pages"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"AAAA8n%2F%2F%2BgQ%3D","line":560,"in_reply_to":"AAAA8n%2F%2F%2Bgc%3D","updated":"2013-02-12 12:53:26.000000000","message":"Ok, I got the information from ST by mail. But since I can\u0027t verify the 256Kb version anyway I\u0027ll remove references to it.","commit_id":"dbfb4c50aff413312da43bc0f2fcd0e6e25b9c32"},{"author":{"_account_id":1000000,"name":"Spencer Oliver","email":"spen@spen-soft.co.uk","username":"ntfreak"},"change_message_id":"396bba2faaa2deabd413b569eedfad9a2e0ec2f3","unresolved":false,"context_lines":[{"line_number":557,"context_line":"\t}"},{"line_number":558,"context_line":""},{"line_number":559,"context_line":"\t/* If this is a dual bank flash the bank size should be half of the total flash size */"},{"line_number":560,"context_line":"\tif (384 \u003d\u003d flash_size_in_kb || 256 \u003d\u003d flash_size_in_kb)"},{"line_number":561,"context_line":"\t\tflash_size_in_kb \u003d flash_size_in_kb / 2;"},{"line_number":562,"context_line":""},{"line_number":563,"context_line":"\t/* STM32L - we have 32 sectors, 16 pages per sector -\u003e 512 pages"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"AAAA8n%2F%2F%2Bgc%3D","line":560,"in_reply_to":"AAAA8n%2F%2F%2Bgs%3D","updated":"2013-02-12 11:30:49.000000000","message":"strange, looking at the info i have only the High density parts have dual bank (384k). 256k parts seen to come under medium+ density - http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/PROGRAMMING_MANUAL/CD00242299.pdf","commit_id":"dbfb4c50aff413312da43bc0f2fcd0e6e25b9c32"},{"author":{"_account_id":1000280,"name":"Johan Almquist","email":"johan.almquist@assaabloy.com","username":"JohAlm"},"change_message_id":"454a98f3a3496cca52ddd190864b85d607b15802","unresolved":false,"context_lines":[{"line_number":557,"context_line":"\t}"},{"line_number":558,"context_line":""},{"line_number":559,"context_line":"\t/* If this is a dual bank flash the bank size should be half of the total flash size */"},{"line_number":560,"context_line":"\tif (384 \u003d\u003d flash_size_in_kb || 256 \u003d\u003d flash_size_in_kb)"},{"line_number":561,"context_line":"\t\tflash_size_in_kb \u003d flash_size_in_kb / 2;"},{"line_number":562,"context_line":""},{"line_number":563,"context_line":"\t/* STM32L - we have 32 sectors, 16 pages per sector -\u003e 512 pages"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"AAAA8n%2F%2F%2Bgs%3D","line":560,"in_reply_to":"AAAA8n%2F%2F%2BhA%3D","updated":"2013-02-12 10:45:19.000000000","message":"Well, ok, yes, that would make it easier to extend for more models.\n\nAccording to ST, the 256Kb and the 384Kb versions have dual bank flash. However, I do not have access to a 256Kb version and I suspect that the device id might be different, and hence this probe will return ERROR_FAIL...","commit_id":"dbfb4c50aff413312da43bc0f2fcd0e6e25b9c32"},{"author":{"_account_id":1000000,"name":"Spencer Oliver","email":"spen@spen-soft.co.uk","username":"ntfreak"},"change_message_id":"199db6602308fba1b8bb81995f0a0c4cb7f61431","unresolved":false,"context_lines":[{"line_number":573,"context_line":"\t}"},{"line_number":574,"context_line":""},{"line_number":575,"context_line":"\tbank-\u003esize \u003d flash_size_in_kb * 1024;"},{"line_number":576,"context_line":"\tif (0 \u003d\u003d bank-\u003ebank_number)"},{"line_number":577,"context_line":"\t\tbank-\u003ebase \u003d FLASH_BASE_ADDRESS;"},{"line_number":578,"context_line":"\telse"},{"line_number":579,"context_line":"\t\tbank-\u003ebase \u003d FLASH_BASE_ADDRESS + bank-\u003esize;"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"AAAA8n%2F%2F%2BhE%3D","line":576,"updated":"2013-02-11 17:34:13.000000000","message":"we cannot guarantee that this is zero. what we do in other drivers is if no base address is given then use the default, see stm32f1x driver.","commit_id":"dbfb4c50aff413312da43bc0f2fcd0e6e25b9c32"},{"author":{"_account_id":1000000,"name":"Spencer Oliver","email":"spen@spen-soft.co.uk","username":"ntfreak"},"change_message_id":"bcf5b7cbb015ff37670497642596e1070ddc0418","unresolved":false,"context_lines":[{"line_number":573,"context_line":"\t}"},{"line_number":574,"context_line":""},{"line_number":575,"context_line":"\tbank-\u003esize \u003d flash_size_in_kb * 1024;"},{"line_number":576,"context_line":"\tif (0 \u003d\u003d bank-\u003ebank_number)"},{"line_number":577,"context_line":"\t\tbank-\u003ebase \u003d FLASH_BASE_ADDRESS;"},{"line_number":578,"context_line":"\telse"},{"line_number":579,"context_line":"\t\tbank-\u003ebase \u003d FLASH_BASE_ADDRESS + bank-\u003esize;"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"AAAA8n%2F%2F%2BgE%3D","line":576,"in_reply_to":"AAAA8n%2F%2F%2BgM%3D","updated":"2013-02-12 13:00:04.000000000","message":"The solution is not the best, you could add as a tcl var however.","commit_id":"dbfb4c50aff413312da43bc0f2fcd0e6e25b9c32"},{"author":{"_account_id":1000280,"name":"Johan Almquist","email":"johan.almquist@assaabloy.com","username":"JohAlm"},"change_message_id":"2d29e4268f44747b8b47d85f5814fec799902ba8","unresolved":false,"context_lines":[{"line_number":573,"context_line":"\t}"},{"line_number":574,"context_line":""},{"line_number":575,"context_line":"\tbank-\u003esize \u003d flash_size_in_kb * 1024;"},{"line_number":576,"context_line":"\tif (0 \u003d\u003d bank-\u003ebank_number)"},{"line_number":577,"context_line":"\t\tbank-\u003ebase \u003d FLASH_BASE_ADDRESS;"},{"line_number":578,"context_line":"\telse"},{"line_number":579,"context_line":"\t\tbank-\u003ebase \u003d FLASH_BASE_ADDRESS + bank-\u003esize;"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"AAAA8n%2F%2F%2BgM%3D","line":576,"in_reply_to":"AAAA8n%2F%2F%2BgY%3D","updated":"2013-02-12 12:53:26.000000000","message":"Ok, I didn\u0027t think of that. I\u0027ll make a similar solution then. To bad one must define a base address in cfg-file.","commit_id":"dbfb4c50aff413312da43bc0f2fcd0e6e25b9c32"},{"author":{"_account_id":1000000,"name":"Spencer Oliver","email":"spen@spen-soft.co.uk","username":"ntfreak"},"change_message_id":"396bba2faaa2deabd413b569eedfad9a2e0ec2f3","unresolved":false,"context_lines":[{"line_number":573,"context_line":"\t}"},{"line_number":574,"context_line":""},{"line_number":575,"context_line":"\tbank-\u003esize \u003d flash_size_in_kb * 1024;"},{"line_number":576,"context_line":"\tif (0 \u003d\u003d bank-\u003ebank_number)"},{"line_number":577,"context_line":"\t\tbank-\u003ebase \u003d FLASH_BASE_ADDRESS;"},{"line_number":578,"context_line":"\telse"},{"line_number":579,"context_line":"\t\tbank-\u003ebase \u003d FLASH_BASE_ADDRESS + bank-\u003esize;"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"AAAA8n%2F%2F%2BgY%3D","line":576,"in_reply_to":"AAAA8n%2F%2F%2Bgk%3D","updated":"2013-02-12 11:30:49.000000000","message":"It is safe assuming this will only ever the one target on the jtag chain. If more than one then issues could appear.\n\nwhat we have done with other targets (stm32 high density) is to use the bank base address as a check, eg.\n if (stm32x_info-\u003ehas_dual_banks) {\n     /* split reported size into matching bank */\n     if (bank-\u003ebase !\u003d 0x08080000) {\n\nIt does mean you would need to specify a base address for bank 2.","commit_id":"dbfb4c50aff413312da43bc0f2fcd0e6e25b9c32"},{"author":{"_account_id":1000280,"name":"Johan Almquist","email":"johan.almquist@assaabloy.com","username":"JohAlm"},"change_message_id":"454a98f3a3496cca52ddd190864b85d607b15802","unresolved":false,"context_lines":[{"line_number":573,"context_line":"\t}"},{"line_number":574,"context_line":""},{"line_number":575,"context_line":"\tbank-\u003esize \u003d flash_size_in_kb * 1024;"},{"line_number":576,"context_line":"\tif (0 \u003d\u003d bank-\u003ebank_number)"},{"line_number":577,"context_line":"\t\tbank-\u003ebase \u003d FLASH_BASE_ADDRESS;"},{"line_number":578,"context_line":"\telse"},{"line_number":579,"context_line":"\t\tbank-\u003ebase \u003d FLASH_BASE_ADDRESS + bank-\u003esize;"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"AAAA8n%2F%2F%2Bgk%3D","line":576,"in_reply_to":"AAAA8n%2F%2F%2BhE%3D","updated":"2013-02-12 10:45:19.000000000","message":"I\u0027m not sure I\u0027m following here... I assumed bank_number was 0 and then 1 for each defined bank in cfg-file.  How can I determine base address based on base address? First time, if it is not specified in cfg-file, it is 0 right?, second time for second bank/probe is it not 0?  is it the base address from previous probe?","commit_id":"dbfb4c50aff413312da43bc0f2fcd0e6e25b9c32"},{"author":{"_account_id":1000000,"name":"Spencer Oliver","email":"spen@spen-soft.co.uk","username":"ntfreak"},"change_message_id":"eff10641149c6101db125db0d0460ba1f7a59815","unresolved":false,"context_lines":[{"line_number":583,"context_line":""},{"line_number":584,"context_line":"\t/* if the user sets the size manually then ignore the probed value"},{"line_number":585,"context_line":"\t * this allows us to work around devices that have a invalid flash size register value */"},{"line_number":586,"context_line":"\tif (bank-\u003esize) {"},{"line_number":587,"context_line":"\t\tLOG_INFO(\"ignoring flash probed value, using configured bank size\");"},{"line_number":588,"context_line":"\t\tflash_size_in_kb \u003d bank-\u003esize / 1024;"},{"line_number":589,"context_line":"\t}"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"AAAA8n%2F%2F%2Be0%3D","line":586,"updated":"2013-02-12 16:31:16.000000000","message":"I think the bank-\u003esize check should go before the stm32lx_info-\u003ehas_dual_banks check as we may want to override the bank size ?","commit_id":"feaf02eef140a8bc27533c0d3fb9e11e30d47f7d"},{"author":{"_account_id":1000280,"name":"Johan Almquist","email":"johan.almquist@assaabloy.com","username":"JohAlm"},"change_message_id":"f6625d27eab261428bc9fa0fa73f40ec9e0cca88","unresolved":false,"context_lines":[{"line_number":583,"context_line":""},{"line_number":584,"context_line":"\t/* if the user sets the size manually then ignore the probed value"},{"line_number":585,"context_line":"\t * this allows us to work around devices that have a invalid flash size register value */"},{"line_number":586,"context_line":"\tif (bank-\u003esize) {"},{"line_number":587,"context_line":"\t\tLOG_INFO(\"ignoring flash probed value, using configured bank size\");"},{"line_number":588,"context_line":"\t\tflash_size_in_kb \u003d bank-\u003esize / 1024;"},{"line_number":589,"context_line":"\t}"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"AAAA8n%2F%2F%2Bek%3D","line":586,"in_reply_to":"AAAA8n%2F%2F%2Be0%3D","updated":"2013-02-13 09:22:12.000000000","message":"Well... Yes, the log print outs above can be misleading. But other than that, I feel that it is ok to have the override here.  It is more the matter of how is the size meant to be configured.  The total flash size, or the bank\u0027s size?  I believe we should not divide the bank-\u003esize by 2. \n\nI think it is ok to have this check here - but the log printout could well print out the new size value that was used to override.","commit_id":"feaf02eef140a8bc27533c0d3fb9e11e30d47f7d"},{"author":{"_account_id":1000280,"name":"Johan Almquist","email":"johan.almquist@assaabloy.com","username":"JohAlm"},"change_message_id":"0d4b6058481086f326fa08e098f7a7a2f332b4a4","unresolved":false,"context_lines":[{"line_number":564,"context_line":"\t/* If this is a dual bank flash the bank size should be half of the total flash size."},{"line_number":565,"context_line":"\t * The bank base address should either be */"},{"line_number":566,"context_line":"\tif (stm32lx_info-\u003ehas_dual_banks) {"},{"line_number":567,"context_line":"\t\tflash_size_in_kb \u003d flash_size_in_kb / 2;"},{"line_number":568,"context_line":"\t\tsecond_bank_base \u003d base_address + flash_size_in_kb * 1024;"},{"line_number":569,"context_line":"\t\tif (bank-\u003ebase \u003d\u003d second_bank_base) {"},{"line_number":570,"context_line":"\t\t\t/* This is the second bank  */"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"AAAA8n%2F%2F%2Bd0%3D","line":567,"updated":"2013-02-13 14:46:23.000000000","message":"Ok... Just got an answer from ST.  They confirm that the device id 0x436 means has_dual_banks. There are 2 flash densities 384k and 256k. FLASH_SIZE should be used to tell the difference.\n\nBUT the first bank will always be 192k, and the other bank holds the rest!  Therefore, this needs to be updated.","commit_id":"9cb2431f946bbe393970c642320b41bc7a0b688d"},{"author":{"_account_id":1000000,"name":"Spencer Oliver","email":"spen@spen-soft.co.uk","username":"ntfreak"},"change_message_id":"c3f75af9f840154c2468a2225eb6ee22fafb7ef2","unresolved":false,"context_lines":[{"line_number":564,"context_line":"\t/* If this is a dual bank flash the bank size should be half of the total flash size."},{"line_number":565,"context_line":"\t * The bank base address should either be */"},{"line_number":566,"context_line":"\tif (stm32lx_info-\u003ehas_dual_banks) {"},{"line_number":567,"context_line":"\t\tflash_size_in_kb \u003d flash_size_in_kb / 2;"},{"line_number":568,"context_line":"\t\tsecond_bank_base \u003d base_address + flash_size_in_kb * 1024;"},{"line_number":569,"context_line":"\t\tif (bank-\u003ebase \u003d\u003d second_bank_base) {"},{"line_number":570,"context_line":"\t\t\t/* This is the second bank  */"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"AAAA8n%2F%2F%2Bds%3D","line":567,"in_reply_to":"AAAA8n%2F%2F%2Bd0%3D","updated":"2013-02-13 15:16:17.000000000","message":"bloody ST, guess they need to update their flash programming guide aswell. Are you ok to update patch ? if not i will try and find some time.","commit_id":"9cb2431f946bbe393970c642320b41bc7a0b688d"},{"author":{"_account_id":1000000,"name":"Spencer Oliver","email":"spen@spen-soft.co.uk","username":"ntfreak"},"change_message_id":"0918a4f0fdaefcd68d9f067501ef28ab03970ba5","unresolved":false,"context_lines":[{"line_number":564,"context_line":"\t/* If this is a dual bank flash the bank size should be half of the total flash size."},{"line_number":565,"context_line":"\t * The bank base address should either be */"},{"line_number":566,"context_line":"\tif (stm32lx_info-\u003ehas_dual_banks) {"},{"line_number":567,"context_line":"\t\tflash_size_in_kb \u003d flash_size_in_kb / 2;"},{"line_number":568,"context_line":"\t\tsecond_bank_base \u003d base_address + flash_size_in_kb * 1024;"},{"line_number":569,"context_line":"\t\tif (bank-\u003ebase \u003d\u003d second_bank_base) {"},{"line_number":570,"context_line":"\t\t\t/* This is the second bank  */"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"AAAA8n%2F%2F%2Bdc%3D","line":567,"in_reply_to":"AAAA8n%2F%2F%2Bdk%3D","updated":"2013-02-13 15:33:01.000000000","message":"simply:\n git fetch http://openocd.zylin.com/openocd refs/changes/25/1125/7 \u0026\u0026 git checkout FETCH_HEAD\n make changes\n git commit --amend\n git push review","commit_id":"9cb2431f946bbe393970c642320b41bc7a0b688d"},{"author":{"_account_id":1000280,"name":"Johan Almquist","email":"johan.almquist@assaabloy.com","username":"JohAlm"},"change_message_id":"efe15b4e31adb01412b7614e54045483167de213","unresolved":false,"context_lines":[{"line_number":564,"context_line":"\t/* If this is a dual bank flash the bank size should be half of the total flash size."},{"line_number":565,"context_line":"\t * The bank base address should either be */"},{"line_number":566,"context_line":"\tif (stm32lx_info-\u003ehas_dual_banks) {"},{"line_number":567,"context_line":"\t\tflash_size_in_kb \u003d flash_size_in_kb / 2;"},{"line_number":568,"context_line":"\t\tsecond_bank_base \u003d base_address + flash_size_in_kb * 1024;"},{"line_number":569,"context_line":"\t\tif (bank-\u003ebase \u003d\u003d second_bank_base) {"},{"line_number":570,"context_line":"\t\t\t/* This is the second bank  */"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"AAAA8n%2F%2F%2Bdk%3D","line":567,"in_reply_to":"AAAA8n%2F%2F%2Bds%3D","updated":"2013-02-13 15:21:00.000000000","message":"I\u0027ll try to find the time to do it, if not today, tomorrow.  \nWould it be correct to checkout the master branch and update using \u0027git pull\u0027 and thereafter do the git fetch and git cherry-pick to get the latest patch set.  That, followed by a change and a git commit --amend?","commit_id":"9cb2431f946bbe393970c642320b41bc7a0b688d"}],"tcl/target/stm32lx_stlink.cfg":[{"author":{"_account_id":1000000,"name":"Spencer Oliver","email":"spen@spen-soft.co.uk","username":"ntfreak"},"change_message_id":"8aa091969ee64c77af11f8fc3f00207aedbc2fdb","unresolved":false,"context_lines":[{"line_number":20,"context_line":"# two banks here, assuming this is this ok for all stm32l1x."},{"line_number":21,"context_line":"# flash bank stm32lx \u003cbase\u003e \u003csize\u003e 0 0 \u003ctarget#\u003e \u003cvariant\u003e"},{"line_number":22,"context_line":"#  (base address and size will be probed)"},{"line_number":23,"context_line":"set _FLASHNAME $_CHIPNAME.flash0"},{"line_number":24,"context_line":"flash bank $_FLASHNAME stm32lx 0 0 0 0 0"},{"line_number":25,"context_line":"set _FLASHNAME $_CHIPNAME.flash1"},{"line_number":26,"context_line":"flash bank $_FLASHNAME stm32lx 0 0 0 0 0"}],"source_content_type":"text/x-ttcn-cfg","patch_set":1,"id":"AAAA8n%2F%2F%2BjE%3D","line":23,"updated":"2013-02-05 15:21:26.000000000","message":"you will have to add another cfg form dual flash bank types, see stm32xl.cfg as an example.","commit_id":"c15f9f0bcb8501e3da046ea68f5d887968b2e4e4"}]}
