further semihosting support

This commit is contained in:
gabriel
2024-04-30 08:48:44 +02:00
parent e83f7996bc
commit 9aaf428620
9 changed files with 57 additions and 32 deletions

View File

@@ -17,10 +17,10 @@ void write_hex(int fd, uint32_t hex);
void __wrap_exit(int code)
{
#if defined(SEMIHOSTING)
/*#if defined(SEMIHOSTING)
sh_exit();
return;
#endif
#endif*/
//volatile uint32_t* leds = (uint32_t*) (GPIO_BASE_ADDR + GPIO_OUT_OFFSET);
const char message[] = "\nProgam has exited with code:";
//*leds = (~(code));