delete the existing code in the main.cpp file (has opened automatically for you)
copy the code below into the window
then click menu “Simulator” and “start”
the program will run as a simulation on your PC - exactly as it would run on Pokitto!
#include "Pokitto.h"
Pokitto::Core mygame;
int main () {
mygame.begin();
while (mygame.isRunning()) {
if (mygame.update()) {
mygame.display.println("Hello World!");
}
}
}
5. Compiling the program for Pokitto hardware
now choose “Pokitto” from the dropbox next to the “Simulator” menu in FemtoIDE
this means the building target is now real Pokitto Hardware
now choose “Build” - > “Run”
FemtoIDE will build a binary, meaning a native program that can run on Pokitto hardware
this binary is a file with a name ending in .bin in the project folder
FemtoIDE will open PokittoEmu emulator and try to run the bin
if everything is Ok, “PokittoEmu” will open up and start emulating your program exactly as it would run on Pokitto
6. putting the .bin binary on to a real Pokitto device
now you can put the binary on a real Pokitto
there are several ways of doing it, depending on your OS
Error: “PokittoLib/mbed-pokitto/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U68/LPC11U68.sct”, line 3 (column 9): Error: L6235E: More than one section matches selector - cannot all be FIRST/LAST.
Error: Not enough information to list the image map.
Just wanted to share a quick error we had in case someone else gets a similar error. After importing the project you must ensure that LPCXpresso11U68 is the selected platform. I had a different device selected from a different project of mine a long time ago which I had forgotten about. So we had a bunch of compiler errors.
So in step 6, it’s a good idea to ensure you have LPCXpresso11U68 listed on the top right as shown in jonne’s image. If not, click on it and you should be able to select it as the target if you added it as a compiler option correctly in steps 1-2.
I have tried the steps above but only receive a black screen when I compile and load the program onto the pokitto using either the USB card or directly in program mode.
Does the Hello World project work for anybody else? I get the same as @TigerJ, but I assumed I’d broken it somehow. I think it broke with a library update.
Still a black screen. When I load other programs that came on the usb card it works fine. Just the hello world program seems to be a black screen. I added it to the usb card. I used windows for this after reading a few posts about a white screen and special mac loaders.
Every time I click the compile button there is an error message:
Error: ‘#pragma import’ is an ARM Compiler 5 extension, and is not supported by ARM Compiler 6 [-Warmcc-pragma-import] in “PokittoLib/mbed-pokitto/common/retarget.cpp”, Line: 34, Col: 16