8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03902e6 commit 6e557f4Copy full SHA for 6e557f4
libraries/Portenta_SDRAM/SDRAM.cpp
@@ -24,8 +24,10 @@ int SDRAMClass::begin(uint32_t start_address) {
24
mpu_config_end();
25
}
26
27
- printf("malloc_addblock: allocate %d bytes\n", SDRAM_END_ADDRESS - start_address);
28
- malloc_addblock((void*)start_address, SDRAM_END_ADDRESS - start_address);
+ if (start_address) {
+ printf("malloc_addblock: allocate %d bytes\n", SDRAM_END_ADDRESS - start_address);
29
+ malloc_addblock((void*)start_address, SDRAM_END_ADDRESS - start_address);
30
+ }
31
32
return 1;
33
0 commit comments