Quantcast
Viewing all articles
Browse latest Browse all 5091

SDK • Re: Building for >2MB FLASH

As of SDK 2.0.0 you don't need a custom linker script

Do

Code:

// pico_cmake_set_default PICO_FLASH_SIZE_BYTES = (4 * 1024 * 1024)#ifndef PICO_FLASH_SIZE_BYTES#define PICO_FLASH_SIZE_BYTES (4 * 1024 * 1024)#endif
Thank you, I'll give that a try.
Note the comment is important as the CMake build looks for that
A magical comment sounds like a recipe for lots of future problems. I've worked on a lot of large, complex systems over the years and that sounds like a slow-burning fuse on a very nasty poison bomb. Just an opinion to consider.
Also why do you have yours set at 128M - that is impossible!
Indeed! It was a boneheaded misunderstanding of the flash I was using (128 M-bit), and it caused me another problem which prompted me to open the datasheet and see how dumb it was. Image may be NSFW.
Clik here to view.
:)
Luckily I only need ~15MB.

Statistics: Posted by mstrat — Thu Aug 15, 2024 4:53 pm



Viewing all articles
Browse latest Browse all 5091

Trending Articles