ghidraninja / game-and-watch-base

Base project for Game & Watch firmware.
BSD 3-Clause "New" or "Revised" License
97 stars 24 forks source link

Opening in STM32CUBEIDE #8

Open RanHam335 opened 3 years ago

RanHam335 commented 3 years ago

I'm a total noob when it comes to STM32CUBEIDE so sorry if this comes across as a stupid question. But I downloaded the files and since there wasn't a project file in there, I started a new project using the base.ioc file. The problem I'm having is trying to import the other files and getting the project to compile. Is there something I'm missing here on how to open this base project? I was hoping to get the project open and sent over to my unlocked G&W so then I can mess around a try to figure out how everything works.

Willyarma commented 3 years ago

I've done it, I'm sorry but I cant remember how, it took a lot of trial and error, but it does work. I think it was something like creating a new empty project from the IOC and then copying over all the other source c and h files without overwriting from the project and merging main.c and h. also I had to manually add string.h and tweak a couple of function calls with casts. I mostly left the linker script alone apart from adding the SPI flash segment and lcd section manually. However i'm having a nightmare with my STLink/V2 it only uploads from the IDE like 1 in 10 times.

slipperstree commented 2 years ago

However i'm having a nightmare with my STLink/V2 it only uploads from the IDE like 1 in 10 times.

I guess you can unplug the battery wire and plug usb-c in when upload from the IDE.