Comments (11)
I was able to open and compile the project! I wrote some instructions in my commit!
Did you use the VS-Code Cortex-Debug Extension? What version of GCC did you use? Can you share your openocd commands/files?
How did you compile the bootloader and application in one file or did you upload them seperate?`
Can you share your flashing procedure?
thanks,
Paul
from chameleonultra.
maybe that will help?
(altough unsure if they even use segger studio?)
https://www.segger.com/downloads/embedded-studio/EmbeddedStudio_Manual
from chameleonultra.
I'm use vscode + armgcc + openocd to develop.
from chameleonultra.
from chameleonultra.
I will find time later to write the deployment tutorial for the development environment into the markdown, and I have been busy dealing with the production of the chameleon Ultra recently.
from chameleonultra.
Good~~!!!
A、Yes, i'm using cortex-debug extension on vs, and jlink gdb tools(not openocd)
this is content for my launch.json file
{
"configurations": [
{
"cwd": "${workspaceFolder}",
"executable": "${workspaceRoot}/firmware/objects/bootloader.out",
"name": "Debug with JLink",
"request": "launch",
"type": "cortex-debug",
"runToEntryPoint": "main",
"showDevDebugOutput": "none",
"servertype": "jlink",
"device": "nrf52",
"interface": "swd",
"svdFile": "${workspaceRoot}/firmware/nrf52_sdk/modules/nrfx/mdk/nrf52.svd"
},
]
}
Edit your cortex-debug settings in vs settings.json, to define
"cortex-debug.armToolchainPath": "Your arm gcc toolchain path", // such as C:\\UserProgram\\arm_gcc\\none\\bin
"cortex-debug.JLinkGDBServerPath": "Your jlink gdb executable path", // such as C:\\Program Files (x86)\\SEGGER\\JLink\\JLinkGDBServerCL.exe
Note: you can replace bootloader.out to application.out to debug app.
B、I'm use armgcc-none to compile firmware for chameleonUltra, download from Official website
Download from Official Website For ARM
and it's version:
C、Use "nrfutil" merge boot and app firmware hex to one file(To install tool from NRF website)
// generate settings page, get a 'settings.hex'
nrfutil settings generate --family NRF52840 --application application.hex --application-version 1 --bootloader-version 1 --bl-settings-version 2 settings.hex
// merge boot and settings page to one file, get a 'bootloader_settings.hex'
mergehex --merge bootloader.hex settings.hex --output bootloader_settings.hex
// merge boot settings and app to one file, get a 'project.hex'
mergehex --merge bootloader_settings.hex application.hex softdevice.hex --output project.hex
Note: You can flash only application firmware to debug, or else the bootlaoder has crc check, your new app from jlink flash will error start and goto bootloader.
D、Flash firmware and Enjoy your dev.
0、Open terminal in projectRoot/firmware/[application ] or [bootloader]
1、Execute cmd make -j4
to compile [application ] or [bootloader]
2、Execute cmd make flash
to flash firmware(only one, if your device is new chip, you must to flash soft device!!!)
3、Execute cmd make flash_softdevice
to flash softdevice(Optional~~~)
Note: the make flash cmd will auto execute nrfjprog xxx xxxx
, If you are interested, you can read the official NRF documentation.
from chameleonultra.
from chameleonultra.
Thanks, I will close this issue when I can get it to run + written instructions!
from chameleonultra.
Where did you get the softdevice.hex file?
from chameleonultra.
Where did you get the softdevice.hex file?
See: {projectRoot}/nrf52_sdk/components/softdevice/s140/hex/s140_nrf52_7.2.0_softdevice.hex
from chameleonultra.
Everything clear and working, if possible please check my instructions for JLink (I have only STLINK)
Instructions in new Pull request #14 !
from chameleonultra.
Related Issues (20)
- API request fail, param error HOT 1
- Implement async messages HOT 2
- Issues with LF emulation or original ultra hardware, no issues on clone HOT 27
- Pass button press to apps HOT 1
- PSA: Silicone case dissolves the epoxy HOT 4
- How is the top epoxy cover of Chameleon Super made? Is the mold gluing method used? Send me the 3D file of the glue injection mold. Thank you HOT 1
- Component placement
- Staticnested results quite poor compared to pm3 implem HOT 6
- Support for Pyramid cards? HOT 1
- OpenHaystack Implementation
- The GUI don't save new card HOT 10
- Can data be changed by NFC interaction? HOT 2
- My equipment is not working for some reason HOT 11
- BLE pairing to iPhone does not work HOT 14
- [idea] AWID support
- Unable to emulate mifare classic 1k HOT 2
- [idea] Fido2 over nfc or usb HOT 5
- [idea] LibNFC support HOT 10
- Electra intercom HOT 6
- Reading Mifare security code blocks - zeroed key A
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chameleonultra.