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

add esp32 p4 stub and target code #147

Merged
merged 3 commits into from
Jul 18, 2024
Merged

add esp32 p4 stub and target code #147

merged 3 commits into from
Jul 18, 2024

Conversation

brianignacio5
Copy link
Collaborator

@brianignacio5 brianignacio5 commented Jul 11, 2024

Add ESP32 P4 support.

Test steps:

npm i
npm run build
cd examples/typescript
npm i
npm run dev

Open a browser and go to http://localhost:1234 to launch esptool-js website.

@brianignacio5 brianignacio5 requested a review from adwait-esp July 11, 2024 08:30
@brianignacio5 brianignacio5 self-assigned this Jul 11, 2024
Copy link

github-actions bot commented Jul 11, 2024

Download the artifacts for this pull request:

@brianignacio5
Copy link
Collaborator Author

PTAL @RushikeshPatange

@adwait-esp
Copy link
Collaborator

LGTM

src/esploader.ts Outdated
@@ -155,8 +155,7 @@ async function magic2Chip(magic: number): Promise<ROM | null> {
const { ESP8266ROM } = await import("./targets/esp8266.js");
return new ESP8266ROM();
}
case 0x0addbad0:
case 0x0: {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous change seemed right - Magic value for p4 chip seems to be - 0x0addbad0

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding them now

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adwait-esp which chip revision do you have? (You can check using esptool.py)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those values are listed in current esptool master. I've tested with Function EV Board but magic value was 0x7039ad9

@brianignacio5 brianignacio5 merged commit 71a6a29 into main Jul 18, 2024
1 check passed
@brianignacio5 brianignacio5 deleted the feature/esp32p4 branch July 18, 2024 08:49
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.

3 participants