I've been tasked with connecting a debugger to the MicroRusEFI that my team has purchased to step through the firmware. I'm able to flash the firmware, but when I try to connect a debugger using openocd I recieve the error
I'm trying to figure out what mistake I'm making, but I can't pin it down further. I've tried this setup in both DFU mode and just letting it run. The 5v line on the FTDI board seems to power the device. Is the issue in the interface? The trick with the resistor feels like it could be the problem but I have no way to be sure with the available tools. Would this setup and command work if the debugger were properly connected, or is there an issue with my invocation or physical setup.
That's kind of what I figured. Unfortunately this was the only thing my boss had on hand, and he's already asking me for results. At a high level it should behave the same, but this appears not to be the case. Would this approach work if I connected an ST-Link to these pins and changed the invocation to reflect this. I wouldn't be surprised if the issue was in the debugger, I just want to make sure before I tell my boss. Also is it intended behavior to power the board off of the debugger's rails?
as for the why, I don't have much choice, my boss wanted some analysis doneby another engineer, so now I have to do this. I think he was trying to record a CAN signal without anything connected, and wasn't seeing any signals, which he thought might be a firmware issue, although I'm not sure. Now my boss wants the other engineer to be able to step through the code to try and understand this I think. But I'm the only person on the team who's done any work with embedded systems, so I was given the FTDI chip and told to get a gdb instance running. I agree, this probably isn't the best way to approach this. Literally any help anyone can give me would be huge though. I've been trying really hard to get some embedded engineering work on my team so I'm really trying not to return empty handed
Last edited by evarady on Wed Apr 21, 2021 2:29 am, edited 1 time in total.
There might be a discovery board, that's a really good idea, I'm not in office right now but I can check tomorrow.
I work at a small contractor in Honolulu of all places.
It's not my project so I"m a bit fuzzy on the details, but I think they're working on building simulations of the various car components and they want to connect the simulated car the the microRusEFI. This is more long term though, right now I think they're just trying to get the microRusEFI working. I think they expect some sort of periodic task to send CAN signals out on the big TE connector on the back even in the absence of any devices, so when they didn't see that they tried to modify the periodic task they thought was responsible for this CAN signal to blink a light, and when it didn't do that, I was handed this FTDI breakout and told to get a gdb server running so the other engineer could try and figure out what was going on.
Dashboard would only be transmitting if a specific dashboard is selected. It needs to know if you want to send BMW Mazda or VW. Did anyone configure which one it is?
While I hear that Honolulu is a bit weird I am assuming it's not so bad?
I managed to reach the other engineer who was working on this. I don't think he configured a dashboard. I have an oscilloscope, I could try to do this and probe the output. Are there instructions to do this? I'm not so familiar with the project, sorry if this is an obvious question.
Edit: I stand corrected, he used tunerstudio to set the dash to both miata and BMW
Ok, I've gotten a nucleo board at work, and it has an embedded STLink. Will there be issues connecting it to the microRiusEFI? My concern is that when I was using the ftdi breakout, its vdd sat at 5V and could power the microRusEFI target. However the actual STLink is at 3v3, and can't power the board. Do I need a level shifter? Or can I just connect the two boards.
awesome, I'll get the second cable and let you know how it goes. I really appreciate you taking the time to help me with this. I realize my questions are mostly obvious