linker-script-org-isr-fix

pull/1/head
Piotr Lewandowski 2023-06-24 22:30:08 +02:00
rodzic e10fa8c40d
commit 1762929fb0
4 zmienionych plików z 7 dodań i 4 usunięć

2
.vscode/tasks.json vendored
Wyświetl plik

@ -4,7 +4,7 @@
{
"label": "flash firmware",
"type": "shell",
"command": "openocd -f interface/cmsis-dap.cfg -f ./openocd_scripts/dp32g030.cfg -c 'halt' -c 'write_image ./build/src/par_runner/par_runner.bin 0' -c 'shutdown'",
"command": "openocd -f interface/cmsis-dap.cfg -f ./openocd_scripts/dp32g030.cfg -c 'reset halt' -c 'write_image ./build/src/par_runner/par_runner.bin 0' -c 'shutdown'",
"presentation": {
"reveal": "always",
"panel": "shared"

Wyświetl plik

@ -1,12 +1,14 @@
#include "system/system.hpp"
#include "hardware/hardware.hpp"
#include "registers.hpp"
Hardware::THardware Hw;
int main()
{
Hw.Power.EnableDbg();
// System::JumpToOrginalFw();
__BKPT();
System::JumpToOrginalFw();
while(1);
return 0;
}

Wyświetl plik

@ -28,7 +28,7 @@ SECTIONS
{
. = ALIGN(4);
__org_vectors_start = .;
*(.org_vectors)
KEEP(*(.org_vectors))
} > FLASH
.text :

Wyświetl plik

@ -31,4 +31,5 @@ struct TGpio
};
#define GPIO_BASE 0x400B0000
#define GPIO ((TGpio*)GPIO_BASE)
#define GPIO ((TGpio*)GPIO_BASE)
#define __BKPT(value) __asm volatile ("bkpt "#value)