Wow @kevingre
That is exactly what I needed! I even found the .LD file.
I knew the .bin file needed the flash ram location but had no idea how to find what it was or how to set it. I will be trying your solution, but really want to express how helpful your post has been.
... about 30 minutes later ...
So I managed to generate a .bin file. Managed to upload it to the Nano 33 BLE Sense, without obvious errors. It did not work, (Not that big a deal) but the real positive is that I did not brick my Nano. I managed to flash blink back on the nano and it worked again. Yeh!
P.S. I will next try a simple Nordic SDK example instead of the full OpenThread.io example I tried that did not work.
... 2 days later...
So I have updated my online docker that ran Openthread.io to also include the nordic-sdk.
This is a large file (few minutes to load) that runs on Gitpod, which needs a github login. Running complex installs in the browser is amazing.
Dashboard — Gitpod
The github is at GitHub - hpssjellis/my-gitpod-of-openthread it has a .gitpod.yml file which is like a bash automated program and a Dockerfile that does the installs.
The gitpod auto compiles both a starter openthread .hex file and a starter nordic-sdk perpheral blinky program. Finding the correct folders and how to run stuff is fairly confusing. Have a look in the .gitpod.yml file for ideas. I will try to make a video if I can get it working on the Nano 33 BLE Sense.
... next day ...
So excited that things were working and Nordic actually generates a .bin file instead of just a .hex file. This video was helpful Nordic nRF52840-Dongle 2.4GHz RF Development Board (Intro & Programming Examples) - YouTube
and I used his code
#include "boards.h"
int main() {
bsp_board_init(BSP_INIT_LEDS | BSP_INIT_BUTTONS);
while (true) {
if (bsp_board_button_state_get(BSP_BUTTON_0)) {
bsp_board_led_on(BSP_BOARD_LED_2);
} else {
bsp_board_led_off(BSP_BOARD_LED_2);
}
}
}
I loaded it on the Nano 33 BLE, and it works! I push the button and the orange LED goes on , push the button again and it goes off. Only one little detail, I forgot to change the memory address, LOL, (Actually I am really sad)
I bricked my new Nano!
Not a big issue, I am buying a lot more Nano's in a few days. I did start the following post for obvious reasons.
Nano 33 BLE Arduino as ISP Programmer
Side note: Has anyone purchased a Segger J-Link EDU mini - JTAG/SWD Debugger with positive results? https://www.segger.com/