Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix jg aurora a1 #27621

Closed

Conversation

itiserik
Copy link
Contributor

@itiserik itiserik commented Jan 4, 2025

Description

The public available JG aurora firmware at https://firmware.jgmakerwiki.com/ is quite old and uses the maple stack.
In an attempt to update the firmware for my A1 I found and solved some blocking issues.

Requirements

JG aurora A1

Benefits

Fixes hard fault on application start.
Fixes the ability to use the GPIOA port again (heaters and fan)
Save RAM and flash to disable unused USB
Provide EEPROM trough flash (just like the old firmware did)

Configurations

jgaurora default config

Related Issues

n.a.

Erik van Luijk added 3 commits January 4, 2025 12:49
The SysTick interrupt was enabled by the jgaurora bootloader and stays enabled when it has jumped to the application. This causes issues because the interrupt handling routine increments specific RAM locations.
When compiling the jgaurora A1 with a non-maple configuration this causes problems because this specific memory location is reused for GPIOA_BASE. Effectively it becomes unable to use GPIOA.
Another side effect is that the bootloader also puts some function pointers in RAM and will periodically call those functions. When this happens after datainit or zerobss (with enough memory to init/zero) it will result in a hard fault exception.
As JG aurora has no direct USB connection on the board. The USB stack can be disabled to save RAM and flash.
In order to use the JG aurora A1 without a SD card inserted FLASH_EEPROM_EMULATION needs to be enabled.
@itiserik itiserik closed this by deleting the head repository Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant