sarnau / LoxLink

Loxone extension and tree device sample implementation for a STM32
http://www.sarnau.info
48 stars 24 forks source link

Segger Embedded Studio for Arm #9

Open chrisrock1984 opened 4 years ago

chrisrock1984 commented 4 years ago

Hallo,

Habe versucht das Crossstudio Projekt nach Segger zu portieren. Leider bekomme ich ne Menge Linker Errors. Liegt wahrscheinlich daran, dass Crossstudio Datein benötigt werden.

Hat irgendjemand diese Portierung bereits erledigt? Andere Alternative, die frei verfügbar ist? Ich würde gerne, nach Ablauf der Evaluation Phase weiter am Code herumbasteln.

Danke!!

KjellVerb commented 2 years ago

I basically gave up and added the following to main.cpp:

int debug_printf(const char *format, ...){
  return 0;
}
void debug_break(void){
  return;
}
challo2018 commented 2 years ago

Yes you can get it running with that. But then it is not possible to use debug outputs for debugging. That would be very helpful.

KjellVerb commented 2 years ago

I agree so if someone is able to fix it, I'm very curious to find the solution! I once had it working but then my SSD crashed and after reinstalling everything I never got debug working again. Luckily I had done most of my debug/development already, and with my ST-link v2 I can use breakpoints and watches which are good enough for debugging.

IoTSkills commented 2 years ago

Hello! Could you recommend a good and cheap debugger/programmer for Segger Embedded Studio? I want to upload this project to ST. Thanks

sarnau commented 2 years ago

I was lucky to find a Segger J-Link PRO on eBay a couple of years ago, which works great. I think on eBay you can find EDU versions for pretty cheap.

IoTSkills commented 2 years ago

I was lucky to find a Segger J-Link PRO on eBay a couple of years ago, which works great. I think on eBay you can find EDU versions for pretty cheap.

Hi! Thanks for the tip, in what environment should this project be used? What do you suggest?

sarnau commented 2 years ago

CrossStudio or SEGGER both work. I used CrossStudio, because it seems Loxone is using it as well – based on my analysis. SEGGER IDE is just a rebranded version. The licenses are a bit different. I think SEGGER has a free for hobbiest ones. CrossStudio requires a “dongle” (tied to an Ethernet MAC, so I bought a cheap USB Ethernet adapter and tie it to that one, so it is not bound to the actual hardware).

IoTSkills commented 2 years ago

Alapvetően feladtam, és hozzáadtam a következőket a main.cpp-hez:

int debug_printf(const char *format, ...){
  return 0;
}
void debug_break(void){
  return;
}

Do you know a solution for debug_printf so that the output can also be used? :)

sarnau commented 2 years ago

That depends on the IDE. SEGGER and CrossStudio doing it differently, you have to check their debugger support (try with an example project, like hello world)

challo2018 commented 2 years ago

i changed it for segger:

include

SEGGER_RTT_WriteString(0,"LED blinking orange\n");

KjellVerb commented 2 years ago

Nice, which debugger do you use for that?

challo2018 commented 2 years ago

@KjellVerb : SEGGER J-Link EDU MINI

KjellVerb commented 2 years ago

Thanks! I'll check to see if this also works with my ST-link V2 clone.

IoTSkills commented 2 years ago

@KjellVerb Please let me know if you've watched it, I'd be interested in the answer too :)

Thanks! I'll check to see if this also works with my ST-link V2 clone.

IoTSkills commented 2 years ago

Don't be sorry that it doesn't belong here. I managed to upload the code to my own device. loxone wants to update the firmware continuously. Can something be done with it so that the loxone does not want to update? Thanks

challo2018 commented 2 years ago

Check this: https://github.com/sarnau/LoxLink/issues/17

IoTSkills commented 2 years ago

@challo2018 thanks :)

Check this: #17

IoTSkills commented 2 years ago

@challo2018 Do you have a working project from this? The code compiles for me, but it doesn't work, the previous version remains and it says update failed.