cancel
Showing results for 
Search instead for 
Did you mean: 

Warn : no flash bank found for address 0

Abhishek Deouskar
Associate III

Hello,

I am getting acquainted with FreeRTOS using HAL Libraries. For that I have created two tasks, Task 1 and Task 2 and am simply printing "Task 1" and "Task 2" over a UART.

If I build the project from scratch, then I get the text, data, bss sizes appropriate to the application. However, if I change settings on CubeMX and regenerate more that 2 or 3 times, I start getting this:

make --no-print-directory post-build
Generating hex and Printing size information:
arm-none-eabi-objcopy -O ihex "RTOS_Trial4.elf" "RTOS_Trial4.hex"
arm-none-eabi-size "RTOS_Trial4.elf"
   text	   data	    bss	    dec	    hex	filename
      8	      0	      0	      8	      8	RTOS_Trial4.elf
 
 
17:12:39 Build Finished (took 20s.149ms)

I checked linker settings and they are the same as before. No amount of optimization settings will bring the code size down to so low. If I remake the project from scratch, then I get my values back. But I am confused as to why the above happens.

Since the above project got built, I still tried to write it to my controller (STM32F413VHTx) and got this:

target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x080025b8 msp: 0x20050000
configuring PLL
** Programming Started **
auto erase enabled
Info : device id = 0x10006463
Info : flash size = 1536kbytes
Warn : no flash bank found for address 0
wrote 0 bytes from file Debug/RTOS_Trial4.elf in 0.002006s (0.000 KiB/s)
** Programming Finished **
** Verify Started **
Error: checksum mismatch - attempting binary compare
diff 0 address 0x00000000. Was 0x00 instead of 0xf8
diff 1 address 0x00000001. Was 0x00 instead of 0xb5
diff 2 address 0x00000002. Was 0x05 instead of 0x00
diff 3 address 0x00000003. Was 0x20 instead of 0xbf
diff 4 address 0x00000004. Was 0xb9 instead of 0xf8
diff 5 address 0x00000005. Was 0x25 instead of 0xb5
diff 6 address 0x00000007. Was 0x08 instead of 0xbf
No more differences found.
** Verify Failed **
shutdown command invoked

This was to be expected, but I still attached it for reference.

1 ACCEPTED SOLUTION

Accepted Solutions
Abhishek Deouskar
Associate III

Solved it. My linker flag regenerated completely blank when I generated code from CubeMX. I deleted the original Linker file and regenerated the code to generate a new one.

View solution in original post

1 REPLY 1
Abhishek Deouskar
Associate III

Solved it. My linker flag regenerated completely blank when I generated code from CubeMX. I deleted the original Linker file and regenerated the code to generate a new one.