Thanks to all the things I read on the different threads, I've managed to make several tries working with my RPi 3 and bare metal.
Now I'm working on multicore. It seems as simple as "str" the address of a function @ 0x40 000 000 + 0x9c/0xac/0xbc.
I have made a simple program that works blinking 2 leds, one for core 0 and another one for core 1.
Then I have a much longer program. I put the exact same piece of code
Code: Select all
ldr r2,=_funccore1 ldr r3,=0x40000000 str r2,[r3,#0x9c]
I am sure (as I checked via another led) that the code for core 0 just before and just after the declaration of the address for core 1 are executed, so I am puzzled...
I've read that it may depend on the config.txt file, but I use the same for the simple kernel.img and for the more longer one (I have not changed the original config file).
Are there known situations when it wouldn't work ?