Thanks Leigh
I'll go searching. I'd read about ESP32 2nd core but don't recall offhand the Pico.
Regards
RP2040 ram and rom usage?
-
- Valued Contributor
- Posts: 1213
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 297 times
- Been thanked: 429 times
Re: RP2040 ram and rom usage?
Hey, I have searched high and low and can't find any reference to this.
Thanks,
Chad
Thanks,
Chad
-
- Valued Contributor
- Posts: 402
- Joined: Mon Dec 07, 2020 1:00 pm
- Has thanked: 75 times
- Been thanked: 220 times
Re: RP2040 ram and rom usage?
No, neither can I ![Smile :)](./images/smilies/icon_e_smile.gif)
I did a demo (2 years ago, as Google Photos reminded me yesterday!) that I thought had gone onto either a forum or the WiKi.
A simple program that flashes an LED from each core.
I'm hoping I still have it on my PC, I'm not in a position to check for a few days.
But if not, it shouldn't be too difficult for me to re-create it, but it's likely next week before I get chance.
![Smile :)](./images/smilies/icon_e_smile.gif)
I did a demo (2 years ago, as Google Photos reminded me yesterday!) that I thought had gone onto either a forum or the WiKi.
A simple program that flashes an LED from each core.
I'm hoping I still have it on my PC, I'm not in a position to check for a few days.
But if not, it shouldn't be too difficult for me to re-create it, but it's likely next week before I get chance.
-
- Valued Contributor
- Posts: 402
- Joined: Mon Dec 07, 2020 1:00 pm
- Has thanked: 75 times
- Been thanked: 220 times
Re: RP2040 ram and rom usage?
I think I might have found something (cloud backup proved worthwhile)
I haven't access to Flowcode at the moment to check this, but please try attached.
Things to note are the supplementary header code and some C code in Main.
Hope it loads![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
I haven't access to Flowcode at the moment to check this, but please try attached.
Things to note are the supplementary header code and some C code in Main.
Hope it loads
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
- Attachments
-
- LED Flash 2 core.fcfx
- (8.45 KiB) Downloaded 71 times
-
- Valued Contributor
- Posts: 1213
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 297 times
- Been thanked: 429 times
Re: RP2040 ram and rom usage?
Hi Leigh
Thanks for this. I won't be able to try until later in the week and I assume I'll need to grab multicore.h from GIT or such like?
Regards
Thanks for this. I won't be able to try until later in the week and I assume I'll need to grab multicore.h from GIT or such like?
Regards
Re: RP2040 ram and rom usage?
Yeah the build failed. It looks like it choked on multicore.h. I am going to try to find it.
Re: RP2040 ram and rom usage?
it's in C:\pico-sdk\src\rp2_common\pico_multicore\include\pico\multicore.h
and
C:\pico-sdk\src\host\pico_multicore\include\pico\multicore.h
and
C:\pico-sdk\src\host\pico_multicore\include\pico\multicore.h
Re: RP2040 ram and rom usage?
So I pasted the location into the include and that got around the not found file.
It doesn't like the launch core 1
Code: Select all
dir/C_/pico-sdk/src/rp2_common/hardware_i2c/i2c.c.obj
[ 88%] Linking CXX executable flowcode.elf
c:/progra~2/gnuarm~1/102020~1/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: CMakeFiles\flowcode.dir\flowcode.c.obj: in function `main':
flowcode.c:(.text.startup.main+0xa): undefined reference to `multicore_launch_core1'
collect2.exe: error: ld returned 1 exit status
Re: RP2040 ram and rom usage?
Ok no problem. FYI this is what the .h has.
Code: Select all
void multicore_reset_core1(void);
void multicore_launch_core1(void (*entry)(void));